53 Commits

Author SHA1 Message Date
Dale Hui
481bf0fb03 Run tests so that coverage profiles don't need to be manually concatenated
Addresses: https://github.com/golang-migrate/migrate/issues/2
2019-06-20 23:07:47 -07:00
Kasparas Galdikas
7c76166697 Github Enterprise support (#234)
* exported Github struct fields and ReadDirectory method

* github ee implementation, tests and docs

* build fixes

* Github Enterprise API endpoint based on docs

* addressing PR comments

* code review

* make linter happy

* parseBool() takes fallback

* pr comments

* tweaks to Config{}
2019-06-16 12:48:01 -07:00
Thomas Lokshall
293bfec844 rename mssql driver to sqlserver 2019-05-24 15:16:12 +02:00
nathan-c
50e972912d Merge remote-tracking branch 'evosure/mssql' 2019-05-18 14:39:55 +01:00
Dale Hui
66510b82c4 Remove official support for Firebird
- In the future, support for Firebird should also include v2.5
2019-04-26 19:04:05 -07:00
Dale Hui
6e2056f5b4 Include firebird db driver in default builds 2019-04-05 23:25:57 -07:00
Bence Patyi
144aaaa986 Gitlab source (#184)
* New Gitlab source

* fix: use net package to build url string

* add: gitlab source to Makefile and Dockerfile
2019-03-10 18:38:23 -07:00
Brian Wigginton
9b551a1c10 initial mssql support 2019-02-15 16:12:57 -06:00
DBobrov
bcd4f6e7dd added mongodb driver 2019-01-01 11:14:27 +03:00
Viacheslav Poturaev
5f88d4bf22 Copy cli main package under migrate directory, keep deprecated original main package for backwards compatibility, fixes #70 2018-11-21 09:01:35 +01:00
Dale Hui
97eb0d191b Fix broken GenerateAdvisoryLockId() test
- Add it to the test suite to ensure that it doesn't break again
2018-07-24 17:55:58 -07:00
Dale Hui
6bb3e494e5 Disable CGO to build binaries statically on the building platform
- Previously, only cross-compiled binaries were built statically
    - Addresses: https://github.com/golang-migrate/migrate/issues/45
2018-07-14 13:31:59 -07:00
Sam Whited
7562e9ad5d source/vfs: add virtual file system source
Fixes #56
2018-06-17 19:35:13 -05:00
Dale Hui
dfa9fc05cb Use correct build contraints (must be alphanumeric)
Fixes: https://github.com/golang-migrate/migrate/issues/52
2018-06-12 16:18:27 +08:00
Dale Hui
87f3e4a910 Build binaries statically
Addresses: https://github.com/golang-migrate/migrate/issues/45
2018-06-04 19:27:37 +08:00
Dale Hui
4407720b95 Remove "deps" target from Makefile 2018-05-31 14:57:38 -07:00
Dale Hui
15611d4559 Fix cli builds
- Removed sqlite3 support from binaries
        - It was never working anyways: https://github.com/mattes/migrate/issues/244
    - Don't use cgo as is requires a cross-compiler to build for other platforms
        - cgo was originally added for this reason: https://github.com/mattes/migrate/pull/238#issuecomment-306291988
2018-01-20 23:59:36 -08:00
Dale Hui
d542e144dc Manually fetch github.com/kshvakov/clickhouse 2018-01-20 10:30:57 -08:00
Dale Hui
53606261bf Make coverage directory configurable 2018-01-19 20:32:15 -08:00
Dale Hui
50d049d5f5 Only use coverage profiles from test runs to create combined coverage profile.
- Prevent issue where the combined coverage profile is combined with itself
2018-01-19 18:04:46 -08:00
Dale Hui
59f3f6d6c2 Increase test timeout from default 10m to 20m since some tests are slow as molasses in January
- Example build being killed by Go's test binary: https://travis-ci.org/golang-migrate/migrate/jobs/331027558
2018-01-19 15:42:02 -08:00
Kirill Shvakov
1f62e3f142 Merge branch 'master' into master 2017-07-08 13:50:51 +03:00
Taylor Wrobel
1d8a881941 Add CockroachDB Support
Adds support for CockroachDB.  Cockroach uses the postges wire
protocol and has a large amount of common SQL functionality shared
with Postgres, so much of the postgres code was able to be copied
and modified.

Since the protocol is used in determining the driver, and the
Postgres protocol is also used by Cockroach, new connect string
prefixes were added: cockroach:// cockroachdb:// and
crdb-postgres://.  These fake protocol strings are replaced in
the connect function with the correct `postgres://` protocol.

TODO: Tests needed (Cockroach has a docker image, so this shouldn't
be too hard)
2017-07-07 23:12:07 -07:00
kshvakov
1440a070c3 Add WithInstance 2017-06-21 17:06:04 +03:00
Matthias Kadenbach
5e049b9fb7 enable cgo 2017-06-14 21:59:11 +02:00
Jolan Malassigne
89879968bb add cassandra driver and function to retrieve networkSettings to get port bound to 9042 2017-06-05 11:03:49 +01:00
maxvw
386ce008d9 adapted the sqlite driver for v3 (#165) 2017-06-05 11:02:51 +01:00
Christian Klotz
748ae8f06a Add Spanner driver
Support for Google Cloud Spanner, closes #172. Includes example migrations ported over from the PostgreSQL driver.

In all examples provided by Google I’ve come across, camel-case is used for table names, columns, etc. Hence the examples use this naming convention.
2017-06-04 21:13:49 +01:00
Matthias Kadenbach
0d9689ab9f
go get update 2017-05-17 19:37:36 -07:00
Matthias Kadenbach
e696a861ba
fix makefile 2017-05-17 19:26:24 -07:00
Matthias Kadenbach
801e84d4d2
fix make deps 2017-05-17 19:21:48 -07:00
Matthias Kadenbach
ff7e060269
remove ql 2017-05-17 19:16:08 -07:00
Matthias Kadenbach
d4d20346f2
build cli with all source and database drivers 2017-05-17 19:10:45 -07:00
Matthias Kadenbach
a6fe4b73b3
update makefile 2017-04-25 11:59:52 -07:00
Matthias Kadenbach
be1ba9204a
add mysql driver, add ENV to docker containers 2017-02-28 15:10:56 -08:00
Matthias Kadenbach
ec5c0ac3e0
fix version string 2017-02-23 10:36:33 -08:00
Matthias Kadenbach
3feee5958a
updated postgres driver, add database.Error struct 2017-02-14 23:12:16 -08:00
Matthias Kadenbach
209c056258
add database lock timeouts in migrate and in tests 2017-02-11 19:15:54 -08:00
Matthias Kadenbach
cd6e62049c
Update documentation 2017-02-11 11:13:27 -08:00
Matthias Kadenbach
03d8d3233f fix line break in makefile 2017-02-09 12:03:03 -08:00
Matthias Kadenbach
5c6a21b014 add make docs 2017-02-09 11:59:49 -08:00
Matthias Kadenbach
3965df69d5 fix indent in makefile 2017-02-08 20:13:17 -08:00
Matthias Kadenbach
f47436e158 add make release 2017-02-08 19:54:50 -08:00
Matthias Kadenbach
7979fdb832 add list-external-deps 2017-02-08 19:34:53 -08:00
Matthias Kadenbach
e6163082d7 add restore-import-paths and rewrite-import-paths 2017-02-08 18:01:01 -08:00
Matthias Kadenbach
fe1b5c06eb add go coverage 2017-02-08 16:17:04 -08:00
Matthias Kadenbach
297a4227ef fixing travis 2017-02-08 01:49:57 -08:00
Matthias Kadenbach
ee384ed8cc initial version 3.0.0 preview
hard work
2017-02-07 22:01:29 -08:00
David Campbell
d290bf9460 - docker command should remain 'go-test' 2016-10-23 15:11:04 -07:00
David Campbell
9a558eed89 Skip tests requiring a DB connection with the '-short' flag
- go-test target for local testing
2016-10-23 15:01:12 -07:00