Commit Graph

8 Commits (4446df2ca666675fd2ac4ad8af821f0d1c39587e)

Author SHA1 Message Date
Liam Staskawicz 4446df2ca6 dbconf: split out separate DBDriver struct to encapsulate the info required for a given driver. as a bonus, we now import the correct package for Go migrations based on the driver - previously, we imported postgres only. 2013-04-07 14:24:03 -07:00
Chris Baynes de7ced58c6 Update postgres dependency. 2013-04-03 17:31:40 +02:00
Liam Staskawicz f89880da03 go migrations: much simpler and more robust way to execute migrations. go migrations are all 'package main', and the version is simply appended to the function name in order to distinguish potentially several migrations in the same 'package main' 2013-01-06 22:47:45 -08:00
Liam Staskawicz 5431538c39 refactor: move writeTemplateToFile() into new util.go 2013-01-06 09:22:06 -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