Skip table creation for initial migration? | Adding flask-migrate to existing project #516
Unanswered
thilojaeggi
asked this question in
Q&A
Replies: 1 comment 4 replies
-
You don't need to modify your migration scripts for this. Just ask your users to run this command to register their databases as up to date:
|
Beta Was this translation helpful? Give feedback.
4 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
So, my current project is already out there in a docker image without using Flask-Migrate.
What I've done now is:
Now I have the first migrate which creates all the tables, but the users already have these tables so this fails, subsequently the following migration will fail as well/never get ran.
What I've now done is this workaround, but I wanted to ask if there's a better approach:
this works perfectly fine, because of this I also changed the docker entry point to be this:
Beta Was this translation helpful? Give feedback.
All reactions