Commit Graph

12 Commits (a26643fb2bfd925ae85fb871c3475c9e44b999e2)

Author SHA1 Message Date
Vojtech Vitek a26643fb2b Fix migrations w/o TX, refactor 2017-06-20 16:30:29 -04:00
Vojtech Vitek aa28bb30d8 Fix build 2017-06-20 15:09:05 -04:00
Vojtech Vitek c579bcf2f9 Merge branch 'master' into optional-migrations 2017-06-20 15:04:58 -04:00
Vojtech Vitek 28a7ddbabe Create command reads .go files from FS
Fixes #54
2017-06-20 14:55:23 -04:00
Vojtech Vitek 11a1b26516 Create migration file with next version number
Fixes #25
2017-06-19 17:23:29 -04: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
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
Jamie Stackhouse 261b46c60f Update migration.go
golint pass on go migrations
2017-04-12 11:58:26 -03:00
Vojtech Vitek (V-Teq) 6804955eb2 Fix err 2016-10-03 19:36:16 -04:00
Vojtech Vitek (V-Teq) 9bf132172d Fix build 2016-10-03 19:34:37 -04:00
Vojtech Vitek (V-Teq) 643386c3a6 Refactor 2016-10-03 19:31:27 -04:00