19 Commits

Author SHA1 Message Date
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
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
2957444991 Fix test with optionated drivers 2015-10-15 12:49:43 -04: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
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
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