Commit Graph

22 Commits (33487e40af7ae91cca46cef1f80bfb63c392e909)

Author SHA1 Message Date
Zeal Wierslee 33487e40af
Make NumericComponent errors more understandable (#334) 2022-04-29 10:22:52 -04:00
Michael Fridman c8aa123e31
Adds support to apply migrations without versioning (#291) 2021-12-13 00:37:44 -05:00
Vladimir Stolyarov 3ffdd78efc
Embed support: add 'base' filesystem to discover migrations. (#244)
This needed to use go 1.16 'embed' feature.
By default, migrations discovered from os filesystem.
This can be changed using `SetBaseFS` method.
2021-08-19 09:21:29 -04:00
Keiichi Hirobe 7218a8d9f2 fix comment of Migration.Source 2020-02-17 01:20:08 +09:00
Vojtech Vitek 3472cd6ee8 Embrace io.Reader 2019-03-05 01:14:34 -05:00
Vojtech Vitek 94c2f51496 Refactor; make the new SQL parser build 2019-03-05 01:12:32 -05:00
Vojtech Vitek 1a52cca438 Remove log.Fatal() calls from the goose pkg
Fixes #76
2019-03-04 20:41:47 -05:00
1vn 1dd31552aa delete row on db-down 2018-11-23 16:54:36 -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
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