Ori Shalom
e18fac6930
feat: add context-aware Go migrations ( #534 )
2023-06-29 16:15:39 -04:00
Ori Shalom
7dcddde25a
feat: expose new functions for setting context ( #517 )
2023-06-16 09:34:33 -04:00
Michael Fridman
87592390b9
fix: use global table name in queries ( #515 )
2023-05-08 08:17:14 -04:00
Michael Fridman
c462979327
refactor: create a generic store and stub out dialect queries ( #477 )
2023-03-14 08:34:47 -04:00
Michael Fridman
b4af752f57
fix test race condition and remove verbose global in parser ( #457 )
2023-01-28 10:41:44 -05:00
Michael Fridman
32ad603fee
Add golangci-lint and fix errors ( #456 )
2023-01-27 08:30:31 -05:00
Michael Fridman
203277344b
feat: add support for `*sql.DB`-registered Go migration ( #450 )
2023-01-25 08:15:50 -05:00
Michael Fridman
2636c84dc8
refactor: move sql parser into internal package ( #444 )
2023-01-19 09:19:13 -05:00
Sasha Melentyev
73e53f9922
Changing Sprintf to Sprint if there is no formatting ( #417 )
2022-12-02 07:41:05 -05:00
Michael Fridman
28113a216c
Print duration of execution time of each migration ( #410 )
...
Co-authored-by: Michael Fridman <mfridman@MacBook-Air.local>
2022-10-21 09:25:16 -04:00
Michael Fridman
f3d569f61b
Remove pkg/errors in favor of std lib ( #373 )
2022-06-22 21:36:07 -04:00
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