777 Commits

Author SHA1 Message Date
Michael Fridman
8ed5f6370b
Add the ability to apply missing (out-of-order) migrations (#280) 2021-10-24 14:49:24 -04:00
Mike Fridman
9f8813339a Update dependencies; go mod tidy and verify 2021-10-17 16:21:06 -04:00
Michael Fridman
48f48dc699
Add container-based database tests for postgres and mysql (#276) v3.2.0 2021-10-13 09:22:43 -04:00
Michael Fridman
97eae0915c
Add CI workflows to generate GitHub Releases and binaries on new tag push (#277) 2021-10-13 09:06:10 -04:00
Mike Fridman
f24b19cca8 Update readme with mysql multiStatements 2021-10-11 16:09:35 -04:00
Michael Fridman
0e770f837f
Add goose logo (#274) 2021-09-04 11:56:16 -04:00
Michael Gunkoff
872d9e9515
fixed a typo in the OpenDBWithDriver() description. (#253)
Co-authored-by: Michael Gunkoff <m.onishenko@qvant.ru>
2021-08-20 22:55:59 -04:00
Konstantin Grigorev
e976a731b4
fix clickhouse goose table name (#270) 2021-08-20 22:54:08 -04:00
Michael Fridman
d15e25ab59
Update readme to clarify supoprted go version v3.1.0 2021-08-20 22:38:49 -04: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
Michael Fridman
732e82d14f
Update github action go version: go1.17 (#268) 2021-08-16 18:09:28 -04:00
Michael Fridman
17a2045e0c
Set minimum supported version to go1.16 (#267) 2021-08-12 22:25:10 -04:00
Floyd Jones
6631aae111
updating readme and create command for v3 (#265) v3.0.1 2021-08-08 11:48:12 -04:00
Mike Fridman
6d62d8314e Update Readme badges and install command 2021-08-04 09:30:43 -04:00
Michael Fridman
ff32c04cfd
Adopt Go modules as /v3 (#261) v3.0.0 2021-08-04 09:16:42 -04:00
Michael Fridman
f4a495fe54
Add github actions and remove travis (#245) 2021-03-08 08:15:37 -05:00
Michael Fridman
7dd9c10b04
Merge pull request #215 from warrn/warrn/214
Option '-s' causes CREATE to use sequential versioning
v2.7.0
2020-12-08 11:42:14 -05:00
Vojtech Vitek
0fbe41dcd4
Merge pull request #227 from Matthiew/feature/new_version_pq
Update github.com/lib/pq from v1 to v1.1
2020-09-14 17:25:30 +02:00
mfaule
37648a7ab3 Update github.com/lib/pq from v1 to v1.1 2020-09-14 16:24:02 +02:00
Vojtech Vitek
ad369d945e
Merge pull request #224 from arvenil/patch-1
Fix: Do not require MySQL when --tags="no_mysql",
v2.7.0-rc5
2020-08-13 15:15:02 +02:00
Kamil Dziedzic
39041ad876
Fix: Do not require MySQL when --tags="no_mysql",
The `go build -tags='no_mysql' -i -o goose ./cmd/goose` doesn't work properly, still imports MySQL.

Deleted imports are already in `driver_mysql.go`, they shouldn't be in `driver_no_mysql.go`.

Fixes for me #223.
2020-08-12 22:52:34 +02:00
Warren Nelson
16a9d45b6e
Option '-s' causes CREATE to use sequential versioning 2020-05-19 01:46:20 -05:00
Vojtech Vitek
2769ad7b55
Merge pull request #211 from tristanfisher/trivial_typo_fix
fix trivial typo in CollectMigrations error string
2020-04-19 13:58:50 +02:00
Tristan Fisher
8c026ee7c1 does not exists -> does not exist 2020-04-18 22:47:35 -04:00
Vojtech Vitek
9ede98d097
Merge pull request #180 from Songmu/tls
add `--certfile` option to support TLS connection on mysql
2020-04-16 19:23:55 +02:00
Songmu
522080545b clear 'tls=value' from original dsn on mysql 2020-04-15 22:24:40 +09:00
Songmu
c6b57c23c5 Merge branch 'master' into tls 2020-04-13 19:24:31 +09:00
Songmu
c868713e99 fix option name 2020-04-13 19:21:12 +09:00
Vojtech Vitek
5ec9f603ae
Merge pull request #210 from pressly/VojtechVitek-patch-1
Fixes #209 (regression from f3abc85f): Add default -dir value
2020-04-13 12:04:19 +02:00
Vojtech Vitek
93314d4505
Fixes #209 (regression from f3abc85f): Add default -dir value 2020-04-13 12:03:10 +02:00
Vojtech Vitek
3058abc467
Merge pull request #208 from huynguyenh/feature/add-clickhouse-support
Add clickhouse support
2020-04-11 21:26:04 +02:00
Huy Nguyen
81d4b42ea4 add clickhouse support 2020-04-12 00:10:32 +07:00
Songmu
83d8342ad2 Merge branch 'master' into tls 2020-04-12 01:21:24 +09:00
Vojtech Vitek
5d8339c4a6
Merge pull request #181 from Songmu/env-dsn
support environment variable GOOSE_DRIVER and GOOSE_DBSTRING
2020-04-11 18:19:59 +02:00
Songmu
a5db7de44c using registerTLSConfig for MySQL only 2020-04-12 01:08:15 +09:00
Songmu
80f5bc709b rename option var name to certfile from sslCA 2020-04-12 00:46:58 +09:00
Vojtech Vitek
89caaf7829
Merge pull request #192 from msdinit/examples/close-db-connection
Close DB connection after migration is complete
2020-04-11 17:38:21 +02:00
Vojtech Vitek
2d75328550
Merge pull request #196 from caseycs/add-table-flag
allow to specify migrations table
2020-04-11 17:24:40 +02:00
Vojtech Vitek
33602bcbcb
Merge pull request #202 from KeiichiHirobe/fix-misleading-code
Fix misleading code/comment
2020-04-11 17:22:17 +02:00
Huy Nguyen
3e080edad3 add clickhouse driver 2020-04-11 00:52:35 +07:00
Huy Nguyen
954940e3ab add clickhouse support 2020-04-11 00:51:35 +07:00
Keiichi Hirobe
8b1f056e11 delete unused value:duplicateCheckOnce 2020-02-17 01:30:30 +09:00
Keiichi Hirobe
ff01d6bdb6 Glob not support **. Change from ** to * to avoid confusion 2020-02-17 01:27:37 +09:00
Keiichi Hirobe
7218a8d9f2 fix comment of Migration.Source 2020-02-17 01:20:08 +09:00
Ilia Kondrashov
f3abc85fac allow to specify migrations table 2019-12-14 19:44:40 +02:00
Oleksandr Muliar
790299c962 Use terser syntax 2019-11-08 16:38:31 +02:00
Oleksandr Muliar
2178cbe600 Close DB connection in main func as well 2019-11-08 13:37:06 +02:00
Oleksandr Muliar
6b904ddb6d Gracefully close DB connection after migration is complete 2019-11-08 13:34:57 +02:00
Vojtech Vitek
e42e49944b
Merge pull request #182 from adampie/master
Fixing broken link in README
2019-08-29 18:25:12 +02:00
Adam Pietrzycki
a67bdd09fb
Update README.md 2019-06-22 13:06:08 +01:00