Commit Graph

13 Commits (47e4c98a97cf981bba623f02354b50413089b080)

Author SHA1 Message Date
Vojtech Vitek (V-Teq) 47e4c98a97 Move lib/goose into top level pkg 2016-02-26 14:50:27 -05:00
Liam Staskawicz 381d1ac678 wip (not building): begin restructuring into separate cmd and lib packages, to allow external applications to make use of goose's internal functionality. part of #6. 2013-09-30 13:38:02 -07:00
clipperhouse e524060a89 Version needs to be int64, otherwise Go throws with overflow int 2013-09-30 08:08:48 -07:00
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 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