Commit Graph

6 Commits (45eeb19d7d952531c3102add91cad61f1d02a410)

Author SHA1 Message Date
Vojtech Vitek 9012a455c2 Fix tests 2017-06-20 16:38:00 -04:00
Vojtech Vitek 09b1a1b116 Fix test 2017-06-20 15:23:12 -04:00
Nicholas Duffy fa8806ecfd Add support for optional migrations.
See the discussion in https://github.com/pressly/goose/issues/7.
Credit goes to @dkotson for his gist here: https://github.com/pressly/goose/issues/7#issuecomment-241613482

I've just added that patch to this repository and change the transaction comment to `-- +goose NO TRANSACTIONS`.

- Checks the migration file for `-- +goose NO TRANSACTIONS`
- Based upon that line, either runs the up/down SQL with or without transactions
- Add test to check for transactions
- Update README

Closes #7.
2017-05-06 09:41:44 -06:00
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
Liam Staskawicz cb801ded9c sql migrations: add new annotation to accommodate SQL statements that may have semicolons within them, such as functions. some basic tests as well. fixes #4 2013-09-27 14:24:37 -07:00