DB schema not created with additional fields #1102
-
Describe the bugThe To Reproduce
at startup we create the tables
but the new column
Expected behaviorI would expect the Configuration
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Did your table was created before you added the column? Is so, it's expected: If you need a proper migration system for your SQL database, you should have a look at Alembic: https://alembic.sqlalchemy.org/en/latest/ |
Beta Was this translation helpful? Give feedback.
-
also I have got same issue
|
Beta Was this translation helpful? Give feedback.
Did your table was created before you added the column? Is so, it's expected:
create_db_and_tables
is not able to modify existing tables. Try to start from an empty database and it should correctly create all the columns.If you need a proper migration system for your SQL database, you should have a look at Alembic: https://alembic.sqlalchemy.org/en/latest/