migrate
migrate copied to clipboard
Missing down migrations puts schema in bad state
missing x.down for x.up files leaves values in the schema_migrations relation. Then migrate up and down incorrectly determine the current schema version.
Are you using the postgres driver?
This has been fixed in v3 with full test coverage on all these scenarios. see https://github.com/mattes/migrate/blob/v3.0-prev/migrate_test.go#L17
I am going to release a release candidate in the next days. Would you mind testing again then?
Yes I am. I will be happy to test.
Cool! Thank you! Will keep this open and ping you here again. Just to confirm, postgres or which database were you using?
$ postgres --version postgres (PostgreSQL) 9.6.1
@anacrolix, I just pushed https://github.com/mattes/migrate/releases/tag/v3.0.0-rc0
Want to give it a try? Super interested in your feedback, too.