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

upgrade MP to track which migrations have been run #3

Open
apinstein opened this issue Apr 20, 2010 · 0 comments
Open

upgrade MP to track which migrations have been run #3

apinstein opened this issue Apr 20, 2010 · 0 comments

Comments

@apinstein
Copy link
Owner

instead of just storing the "head" version in the mp_version table, start recording each migration that's been run.

Update mp to calculate "head" by max(version).

Update mp, before running migrations (up or down), do a consistency check. This means making sure that all migrations from the first to the "head" [ie max(version)] available in migrations/* have actually been run prior to doing any migrations. If not, spit out a warning showing which migrations haven't run, suggesting to resequence them.

Update up to insert version.
Update down to remove version.
Update clean to remove all versions.

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

No branches or pull requests

1 participant