-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto data migration #333
Comments
Definitely yes :D I saw the migrate-to-0.6.0 repo and thought "Oh no... not again!" :D If there is something more specific you need help with feel free to ask/provide a task. #automateallthethings |
This looks very useful: https://github.com/sequelize/umzug In case it's not what we are searching for we should maybe include the migrations in the main repository and add a version in database. This can used to stop runtime in case you jump between versions and automatic migrate in case a new minor version exists. This way the migration works smooth and we don't have to ship too much code in the main repository. More or less it's always the same base structure in the migration repos. So why source it out? |
@SISheogorath Hey, thanks for looking for us. It could help us add/remove columns or add/remove tables. |
Based on this issue https://github.com/sequelize/sequelize/issues/4417 |
And as @SISheogorath and I mentioned above. |
When first startup HackMD and postgreSQL didn't have any table schemas, It will cause some migration error.
Although sequelize migration fail. but this does not affect HackMD running. Maybe we'll solve this problem with this issue together. |
For those who want to try this one in Hacktober or afterward: A useful reference is: https://github.com/abelnation/sequelize-migration-hello |
It's a bit pain that if we need to migrate data (not schema).
The package we're using now (sequelize) might able to do this (correct me if wrong).
So we need to add some internal mechanism to auto detect version and run corresponding migration scripts.
The text was updated successfully, but these errors were encountered: