89 Commits

Author SHA1 Message Date
dimag
914c38e379 - Fixed test with not-exported method identified as missing: unified the 2 errors into one
- Fixed error message formatting
- Ensuring uniqueness of the version field (added unique index)
2017-01-07 16:34:06 +02:00
dimag
6909594c0b Checking non-exported migration method 2017-01-07 16:33:10 +02:00
dimag
583921e8bf Added README.md 2017-01-07 16:33:10 +02:00
dimag
61ecf2c096 - Refactored project structure to be consistent with original project
- Added docker support
2017-01-07 16:33:10 +02:00
dimag
0eecb74230 Added explicit migration method signature validation 2017-01-07 16:30:40 +02:00
dimag
b7b75f3c59 - registering method receiver directly for the driver
- currently each driver contains only a single method receiver:
   - enforcing method receiver pre-registration on go methods driver initialization
   - Method receiver name can be removed from files format
- passing the DbName parameter inside the method receiver for the go methods driver
2017-01-07 16:30:40 +02:00
dimag
fe48ddfdcc - redefined mongo db driver to be autonomous and not depending on specific methods
- defined methods receivers registration by name and change the migration files format to include them
- added extensive testing
2017-01-07 16:30:40 +02:00
dimag
70b23c3f84 Relaxed constratint that method receiver has to be of Driver interface. 2017-01-07 16:30:40 +02:00
dimag
223908f9d2 - Reset all changes to the upstream branch
- Changed logic not to use custom filename parser:
  -Supporting up and down files only, no both direction files
  -Using method names as is
- Added complete test to the mongo db migration scenarios
2017-01-07 16:30:40 +02:00
dimag
1838852d4d Changes that interfere with the Migrate open source code:
- Added go methods migrator, mongo db template: different from the usual driver
model.
- Added support for bidirectional files (for go methods), appending _up or _down upon context
- Added DriverWithFilnameParser for providing custom filename parser functionality that knows to parse bi-directional file names.
2017-01-07 16:29:19 +02:00
dimag
175550643c changed import paths to point to dimag-jfrog 2017-01-07 16:24:14 +02:00
Russ Egan
da6c505f41 Avoid DDL when checking for versions table #134 2017-01-06 15:52:54 -05:00
Sam Willcocks
5773f75698
Add Ql driver
Adds a driver for the embedded Ql database (https://github.com/cznic/ql)
2017-01-05 15:09:41 +00:00
Matthias Kadenbach
cd15e67614 Merge pull request #104 from connctd/crate
Driver for the Crate.io database
2016-12-21 20:57:04 -08:00
Matthias Kadenbach
b4d9b6ae24 Merge pull request #59 from bfitzsimmons/patch-1
Fixes typos.
2016-12-21 20:44:14 -08:00
Matthias Kadenbach
e97cecb0cf Merge pull request #124 from dacamp/skip
Skip tests requiring a DB connection with the '-short' flag
2016-12-21 20:42:53 -08:00
Matthias Kadenbach
b94dd6fc29 Merge pull request #96 from meehow/patch-1
typo fixed
2016-12-21 20:32:19 -08:00
Matthias Kadenbach
7910a55d0e Merge pull request #103 from cgilling/better_cassandra_uri_errors
cassandra: add error checking for bad connection urls
2016-12-21 20:30:43 -08:00
Matthias Kadenbach
ae018f8ade Merge pull request #119 from trietphm/master
Add Cassandra url format example
2016-12-21 20:27:54 -08:00
Matthias Kadenbach
478fb42df5 Update README.md 2016-12-21 20:13:57 -08: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
Triet Pham
74b161fdb2 Add Cassandra url format 2016-08-31 10:20:16 +07:00
Sandile Keswa
aa4dc1252b Oops! Correcting a renaming error. 2016-07-25 13:25:45 -04:00
Sandile Keswa
0cd470ee98 Adopted @nlacey's suggestion. 2016-07-25 12:02:50 -04:00
Sandile Keswa
cba0cc9847 fixed the overflow 2016-07-23 15:04:11 -04:00
Sandile Keswa
42b45a6de8 added consistency as an option 2016-07-23 14:47:11 -04:00
Till Klocke
cd5f75d47c Splitting of sql is now more robust and better tested 2016-06-16 14:34:50 +02:00
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
Chris Gilling
b5ef068704 cassandra: add error checking for bad connection urls 2016-06-12 14:59:23 -07:00
meehow
f230ced201 typo fixed 2016-05-15 08:12:06 +02:00
Alex Barlow
12c19e08b7 Add support for Cassandra >= 3 with protocol version 4 2016-03-21 17:36:03 +00:00
Brant Fitzsimmons
ade683e8b5 Fixes typos. 2015-11-01 13:14:23 -05: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