Skip to content
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

Warning about migrations altered after being run #18

Open
wbyoung opened this issue May 21, 2015 · 1 comment
Open

Warning about migrations altered after being run #18

wbyoung opened this issue May 21, 2015 · 1 comment

Comments

@wbyoung
Copy link
Owner

wbyoung commented May 21, 2015

This could be done by hashing migrations when they are run so we're able to warn the user about migrations that have been altered after they've been applied. Store the hash in the migration table & any time migrations are run, check that all previously run migrations still match their current values when read from the disk. This could be extended to ensure that when rolling back we prompt the user that this could potentially break and/or not reverse the migration as intended.

This would help for individuals new to migration systems (especially in teams) and seems like a nice thing to have.

wbyoung added a commit that referenced this issue May 21, 2015
@wbyoung
Copy link
Owner Author

wbyoung commented May 21, 2015

It would probably be worthwhile to store a hash of the migration with all whitespace removed so that whitespace changes in the migration would be allowed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant