Skip to content
Discussion options

You must be logged in to vote

As long as your migrations are generic and work on both databases, you don't have to do anything, because Flask-Migrate takes your SQLAlchemy URL and uses it to connect to your database. I do this for many of my projects, by the way.

So basically, do not use database specific types in your migrations, and do not issue database specific SQL, and then everything should work. If you do need database specific logic in your migration scripts, then you will have to manually implement logic for both engines, and that will work too.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rdctmeconomou
Comment options

Answer selected by rdctmeconomou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants