How to keep migrations table up to date? #85
Replies: 1 comment 1 reply
-
|
The goal with this package is to run this on your local environment, not a production environment, to be able to get an existing database down into migrations. To do this, it would be expected that you've either exported the database structure (and maybe data) from production, and have it on your local environment as a starting point for further development. To get these migrations to not be picked up by your production deployments (aka OR, you can update your migration file stub to only create if the table doesn't already exist, and then you can just run
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, thanks for the great package.
I see you've talked about running this after every change etc., which seems like a great idea to keep the migrations up to date, but how would my production website, (or any migration table) not see these as all new migrations since the timestamp in the filename will be new each time they run, and won't be found in the migrations table.
I thought maybe just remove the IndexedTimestamp in
LMG_TABLE_NAMING_SCHEMEbut then the files won't run in order. It seems untenable to manually update the migration table everytime code is deployed.How would one manage this?
Beta Was this translation helpful? Give feedback.
All reactions