Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Warn when migration script has changed #10

Open
jpoehls opened this issue Aug 21, 2010 · 2 comments
Open

Warn when migration script has changed #10

jpoehls opened this issue Aug 21, 2010 · 2 comments
Labels

Comments

@jpoehls
Copy link
Owner

jpoehls commented Aug 21, 2010

A big pothole with migrations is when someone changes a migration script after it has already been run. Can we find someway to warn/break when this happens? RoundhouseE DB has some logic to check for this. (http://www.google.com/url?sa=D&q=http%3A%2F%2Fferventcoder.com%2Farchive%2F2009%2F11%2F13%2Froundhouse-db-migration-action-shots.aspx)

@kieranbenton
Copy link
Contributor

We are using DotNetMigrations in anger now and we don't really have a satisfactory answer to this yet - if you have any experience to offer I'd love to discuss it.

@jpoehls
Copy link
Owner Author

jpoehls commented Jul 19, 2011

Currently the only advice I can offer here is discipline. If you have checked-in a migration script, don't change it. Ever. If you follow that rule then all should be well.

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

No branches or pull requests

2 participants