Commit Graph

19 Commits (7dcddde25a60909edc82028faa68815e6708ced0)

Author SHA1 Message Date
Ori Shalom 7dcddde25a
feat: expose new functions for setting context (#517) 2023-06-16 09:34:33 -04:00
Schparky 630ef77c33
DownTo returns error if no matching migration file is found (#314) 2022-02-21 18:36:57 -05:00
Michael Fridman c8aa123e31
Adds support to apply migrations without versioning (#291) 2021-12-13 00:37:44 -05:00
Maxim Krasilnikov 1cebce80c7 Added logger interface and SetLogger func for redefine package output 2018-04-30 12:30:13 +03:00
Jorrit Salverda 17520f5188 replace fmt.Print statements with log.Print 2017-09-05 14:43:32 +02:00
Nikola Kovacs 65a517e879 Allow down-to to roll back first version
Fixes #47
2017-06-09 11:31:42 +02:00
Nicholas Duffy abb2957c5d Update formatting per PR comments
Also rename `VersionId` to `VersionID`
2017-05-08 11:01:48 -06:00
Nicholas Duffy fc368fe618 Reformat code to adhere to gofmt standards 2017-05-07 07:02:54 -06:00
mmatczuk 1e8921d41c rename collectMigrations to CollectMigrations 2017-03-27 10:19:04 +02:00
Piotr Kozłowski da36030846 Support for migrating up/down to a specific version 2017-03-17 14:44:22 +01:00
Vojtech Vitek (V-Teq) 643386c3a6 Refactor 2016-10-03 19:31:27 -04:00
Vojtech Vitek (V-Teq) f49670b2b4 Fix go migration up 2016-09-29 19:30:23 -04:00
Vojtech Vitek (V-Teq) 602cd2b9c7 Fix up-by-one and down cmd return err 2016-06-20 15:56:01 -04:00
Vojtech Vitek (V-Teq) 2cccd9df36 Refactor goose pkg 2016-03-02 17:23:15 -05:00
Liam Staskawicz e770a07efe reorg: prefix command sources with 'cmd' for slightly clearer organization 2013-01-06 08:46:21 -08: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 dc913a5569 reorg: move getDBVersion() into migrate to clarify that it's common functionality 2012-12-24 10:22:33 -08:00
Liam Staskawicz fe14d0a1f5 flags: consolidate dbconf details to DBConf struct, reusable by any subcommands. 2012-12-24 10:09:15 -08:00
Liam Staskawicz 05fdb1ac5f down: add 'down' command to roll back the version by 1 2012-12-23 18:00:09 -08:00