class Hero(SQLModel, table=True):
id: int = Field(primary_key=True)
name: str
age: int = Field(default=None)
status:str
I created the table using SQLModel.metadata.create_all(engine)
, when I changed the type of status to str
and run the create_all()
method again the type of status did not change in the database. Is there any way to migrate the database like Django or flask-migrate?
flask-migrate
, iirc). – Bourgogne