Skip to content

How would I run migrations from two directories? Or should I not be doing that... #2541

Answered by nk9
tahoeschrader asked this question in Q&A
Discussion options

You must be logged in to vote

Migrations are used for the DB schema, which should be the same on your local and production databases. Of course, the local version will be changed from time to time as you develop the site, but as soon as a new version is ready, you should push it so the production schema and the local schema are the same again.

Migrations are not a place to populate dummy data. A migration is a series of SQL files describing the changes needed to get to the next schema version. If you inserted dummy data using a migration file, then your next schema change would assume that the dummy data was there. You'd have to manually remove all the SQL files inserting the data, or remember to delete the dummy sect…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tahoeschrader
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