Schema migrations and reflect_table #1407
Unanswered
lukasz-madon
asked this question in
Usage Questions
Replies: 2 comments 1 reply
-
Hi, Well the main drawback of reflect table is that you need to have a db available, meaning you can't use alembic in offline mode, ie to generate sql files to apply to the db by some other mean. Other than that I would think it should be safe if you use only alembic to modify the schema of the db |
Beta Was this translation helpful? Give feedback.
0 replies
-
I guess you also lose typechecking - reflection can make conversion implicit. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There are a few examples of migrations in the documentation and tutorials. There seems to be two ways of doing migrations
table()
There 3rd option would be to use
reflect_table
Is reflection OK to use in this case? What are the pros and cons? Can
reflect_table
bit me with without explicit typing?Beta Was this translation helpful? Give feedback.
All reactions