Commit Graph

14 Commits (77a038291446f9154efe6e69a044f0cc9e3fd186)

Author SHA1 Message Date
Liam Staskawicz 77a0382914 results: don't bother counting the number of sql statements. we don't have a good way of tracking it for go migrations, and it's not particularly helpful either 2013-01-04 19:39:36 -10:00
Liam Staskawicz 0b250b8511 ensure migration IDs are greater than zero 2013-01-04 19:24:40 -10:00
Liam Staskawicz 517e1701e2 breaking change: version id is now int64 to accommodate larger date-based version id schemes 2013-01-04 19:22:03 -10:00
Liam Staskawicz c1320a5e81 rename only: DBVersion => MigrationRecord 2013-01-04 18:32:25 -10:00
Liam Staskawicz 4bec0b22ec breaking change: add a column to the version table to record whether we migrated up or down. fixes the case in which we weren't correctly calculating the current version previously in some cases, and also allows us to maintain a more complete historic record of all migrations made. 2013-01-04 18:11:18 -10:00
Liam Staskawicz ef4602b5e8 migrate: refactor sorting of migrations out of the collection routine 2012-12-25 12:50:30 -08:00
Liam Staskawicz 9fbce90a79 flags: improved option names 2012-12-24 12:12:31 -08:00
Liam Staskawicz dc913a5569 reorg: move getDBVersion() into migrate to clarify that it's common functionality 2012-12-24 10:22:33 -08:00
Liam Staskawicz 8af5b84677 migrate: fix off-by-one comparison, and print correct versions 2012-12-23 17:59:36 -08:00
Liam Staskawicz e3112d5a4f migrate: validate that given migrations don't have ID 0 2012-12-23 17:51:49 -08:00
Liam Staskawicz ce29ebdf7e use filepath.Walk when collecting migrations as well 2012-12-23 16:59:22 -08:00
Liam Staskawicz 78a2b24d13 up: make use of filepath.Walk to simplify traversing migration files 2012-12-23 14:25:38 -08:00
Liam Staskawicz bccf6afa62 reorg: breaking out functionality into separate subcommands 2012-12-23 14:01:45 -08:00
Liam Staskawicz c28116e175 reorg: move source files to top level of repo to simplify `go install` usage. 2012-12-17 08:12:20 -08:00