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.
Answered by
frankie567
Oct 23, 2022
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.
3 replies
Answer selected by
bert2002
-
also I have got same issue
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/