Commit Graph

59 Commits

Author SHA1 Message Date
Till Klocke 6612806e06 Crate driver was using wrong url scheme. The migrate CLI never had a chance to select the correct driver 2016-06-16 13:47:21 +02:00
Till Klocke a7fa9eb3fb Added README.md for Crate driver 2016-06-16 13:08:04 +02:00
Till Klocke 907d8cd935 Added driver for crate.io database 2016-06-16 13:03:01 +02:00
Alex Barlow 12c19e08b7 Add support for Cassandra >= 3 with protocol version 4 2016-03-21 17:36:03 +00:00
Philippe Lafoucrière 9754378aa5 Move the registry to driver package
We can't test driver.New methods because of circular imports.
That's probably why the initial code had a map[string]interface{} as
registry: it removes a dependency import.
I prefer the remove the registry and have a registry returning a real
Driver. It will ease the development later.
2015-10-22 16:29:26 -04:00
Philippe Lafoucrière 080f49baf4 Fix error message 2015-10-18 22:30:51 -04:00
Philippe Lafoucrière 2957444991 Fix test with optionated drivers 2015-10-15 12:49:43 -04:00
Philippe Lafoucrière 0c7f7b79e0 Merge branch 'master' of https://github.com/mattes/migrate into dont-load-all-drivers-43 2015-10-14 20:35:35 -04:00
buddhamagnet 7a0e24ebf3 add tests for driver registration 2015-09-15 23:08:29 +01:00
buddhamagnet 02c5fc24d3 streamline driver code 2015-09-15 22:56:29 +01:00
Dave Jeffrey 0741616d2e Don't load in all drivers by default #40
Requires activating drivers with a _ style import, e.g.
import "_ github.com/mattes/migrate/driver/postgres"
2015-06-11 11:11:28 +01:00
Caesar Wirth 8d39928220 Add driver for sqlite3 2015-03-08 11:29:20 +09:00
mattes e72d592ef5 add dot 2015-02-04 21:49:59 +01:00
mattes bf81444464 add pateld982 to readme 2015-02-04 21:49:15 +01:00
Dpatel ee6a71da4c Add login support for cassandra 2015-01-27 17:40:46 -05:00
Rodrigo Kochenburger 94efc48c49 Don't stop when a mysql warning happens 2014-12-04 14:33:52 -08:00
Rodrigo Kochenburger 6bce23e36a Don't consider warnings as errors 2014-12-04 13:59:40 -08:00
Rodrigo Kochenburger c94461932f Prevents MySQL driver to failing when version table alredy exists
The MySQL driver is using `CREATE TABLE IF NOT EXISTS`, which causes
the MySQL database to raise warnings. The golang driver collects
the warnings and return a composite object (mysql.MySQLWarnings) as
an error that needs to be properly handled.

This change stops the driver from failing in case there are only
warnings.
2014-12-04 13:49:26 -08:00
Johnny Bergström 84ea5f6842 Update Cassandra authors
Adding myself :)
2014-11-17 12:56:51 +01:00
Johnny Bergström 5f1ca5dadc Multiple statements per migration file
Makes it possible to run several queries in each file.
2014-11-17 11:54:21 +01:00
Johnny Bergström d5f5eb65a6 Refactor version tracking
Make sure to rollback the version number in case we couldn't apply the changes.
Some deduplication of code.
2014-11-17 11:42:19 +01:00
mattes c1f0a1a044 fix mysql 2014-10-17 11:50:39 -07:00
mattes 5b6715333f fix mysql tests 2014-10-17 11:39:01 -07:00
mattes 7b1a07fa97 mysql scheme fix 2014-10-17 11:34:43 -07:00
mattes cb9cddce8e remove scheme mysql:// prefix in sql.Open 2014-10-11 01:37:00 +02:00
mattes 664bce394b Update Readme 2014-10-11 01:31:38 +02:00
mattes d6eb6c4959 Update Readme 2014-10-11 01:29:01 +02:00
mattes 8d261405e0 oups, forgot to remove char again 2014-10-11 01:22:16 +02:00
mattes 24dff377cc fix mysql tests 2014-10-11 01:22:16 +02:00
mattes ff8020a6a6 fix wrong string 2014-10-11 01:22:16 +02:00
mattes cc23e29eef split sql statements by ; 2014-10-11 01:22:15 +02:00
mattes 2faaebc76a experimental implementation 2014-10-11 01:22:15 +02:00
mattes 8496f2a8a2 initial 2014-10-11 01:22:15 +02:00
fronik a0afdc3038 Return one row with last version from postgres 2014-09-30 20:53:49 +04:00
mattes c8a4eeed99 add me as author to postgres driver 2014-09-16 18:05:11 +02:00
mattes 0593bd037e Update Readme 2014-08-27 11:30:42 +02:00
mattes 53ee5dca38 update readme and add new readme to cassandra driver 2014-08-27 11:25:42 +02:00
Paul Bergeron cad776681e Remove extraneous error handle 2014-08-26 20:26:46 -07:00
Paul Bergeron 988db1b4de Only set inital version if there is an error on getting it the first time 2014-08-26 20:24:42 -07:00
Paul Bergeron a191c8bf36 Fix issue where version wouldn't correctly populate 2014-08-26 20:19:51 -07:00
Paul Bergeron c7e6d54365 Use counter for migration version information instead of rows 2014-08-26 19:43:58 -07:00
Paul Bergeron ca8cd2c56b Fix import paths to reflect upstream 2014-08-26 18:48:46 -07:00
Paul Bergeron dac7100cf3 Add support for Cassandra to migration drivers 2014-08-26 18:46:41 -07:00
mattes 0cc80701a7 add Close() func #7 2014-08-25 17:44:45 +02:00
mattes 37422d109d get rid of backticks 2014-08-25 16:49:25 +02:00
mattes e245a4664c rename signal to interrupt and cleanup 2014-08-13 23:15:32 +02:00
mattes 69df0f6de7 add EnableSignals() and DisableSignals() and roll back some api design changes 2014-08-13 23:00:27 +02:00
mattes dad5b36dbb pass file instead of files to migrate and implement soft shutdown 2014-08-13 22:45:23 +02:00
mattes cb82ec44c0 update tests 2014-08-13 16:58:08 +02:00
mattes 765597def2 update test 2014-08-13 14:34:40 +02:00