go-migrate/testdata
Jon Calhoun eee25e8d27 Implemented the Rollback feature.
In most dev/testing environments it is nice to have a way to reset/rollback
the entire database. This commit adds this feature in the most basic form;
when Rollback() is called, it will rollback ALL migrations that have run
leaving the database is a mostly pristine state.

There are a few potential issues here. For starters, devs may not always
want all migrations to be rolled back. The only current fix is to course
in this case is to create a migrator that only contains migrations they
want rolled back.

Another potential issue is that any migration that doesn't provide a
Rollback function will not be rolled back, but there also won't be any
errors. A message is printed out when this happens to help avoid some
confusion, but I could see this still causing issues. I'm not 100% sure
what the best long term solution is, but feel the current version is
good enough to move forward since it satisfies my needs.
2020-05-29 13:11:01 -04:00
..
widgets.down.sql Implemented the Rollback feature. 2020-05-29 13:11:01 -04:00
widgets.sql Initial commit with the lib version of my personal migration tool 2020-05-28 13:06:53 -04:00