Commit Graph

9 Commits (bab8917da5243511ce53ef415bd5eb573d6014a6)

Author SHA1 Message Date
Liam Staskawicz bab8917da5 dialect: use insertVersionSql() to ensure txn.Exec() args are handled properly in each dialect 2013-07-08 23:37:30 -07:00
Liam Staskawicz f8e86e3745 migration: allow database/sql to do type conversion to avoid dialect differences 2013-06-30 11:38:24 -07:00
Liam Staskawicz c9a4615595 migration sql: error out if no annotations are found, rather than marking the migration as having run successfully. 2013-04-07 16:55:13 -07:00
Liam Staskawicz bb38ea2554 sql migration: diagnose scripts that have no Up/Down annotations. fixes #3 2013-04-07 12:17:07 -07:00
Liam Staskawicz 3c6b6c35c4 use filepath rather than path to ensure we're dealing with filenames in an OS compatible way. fixes #2. 2013-02-24 23:06:12 -08:00
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 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 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 c28116e175 reorg: move source files to top level of repo to simplify `go install` usage. 2012-12-17 08:12:20 -08:00