John Weldon
c7bacb831b
Test to demonstrate issue #45
...
Added a unit test to demonstrate the problem in issue #45
The introduced makeFiles() function could be used to simplify the other
tests too, but I didn't touch more than necessary for this commit.
2015-09-05 17:46:58 -07:00
Matthias Kadenbach
68a658aff4
Merge pull request #44 from faxal/master
...
Get default URL from environment variable MIGRATE_URL
2015-06-24 10:09:51 -07:00
fazal
d8df2cd1cc
Get default URL from environment variable MIGRATE_URL
2015-06-17 13:07:18 +05: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
Matthias Kadenbach
9bb037339f
Update README.md
2015-03-08 10:58:38 +01:00
Matthias Kadenbach
7dcd8fe1d7
Merge pull request #36 from cjwirth/sqlite3
...
Add driver for sqlite3
2015-03-08 10:57:11 +01:00
Caesar Wirth
8d39928220
Add driver for sqlite3
2015-03-08 11:29:20 +09:00
Matthias Kadenbach
cd2c561564
Merge pull request #32 from c4milo/patch-1
...
Adds sql-migrate as another alternative
2015-02-09 21:00:56 +01:00
Camilo Aguilar
0c9a8408c7
Adds sql-migrate as another alternative
2015-02-09 14:18:33 -05: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
Matthias Kadenbach
cac6e08b44
Merge pull request #30 from pateld982/master
...
Add authentication support for cassandra
2015-02-04 21:47:02 +01:00
Matthias Kadenbach
f12373eb83
Merge pull request #27 from ngauthier/proper-exit-codes
...
ok flag is misleading, it's really if channel is closed, so return okFlag
2015-02-04 21:40:26 +01:00
Matthias Kadenbach
3502e0252c
Merge pull request #28 from ngauthier/fix-err-handling-typo
...
fix check on err when using err2
2015-02-04 20:40:45 +01:00
Dpatel
ee6a71da4c
Add login support for cassandra
2015-01-27 17:40:46 -05:00
Nick Gauthier
1333184c7b
fix check on err when using err2
2015-01-15 12:44:51 -05:00
Nick Gauthier
ef6572b9aa
ok flag is misleading, it's really if channel is closed, so return okFlag
2015-01-15 12:44:18 -05:00
David Francoeur
820c58b7f2
Merge branch 'master' of github.com:mattes/migrate
2014-12-28 15:38:33 -05:00
David Francoeur
ab520d7b6b
Ensure that os signals are not relayed to the interrupt channel when the
...
function returns
2014-12-28 15:36:46 -05:00
mattes
2cf4b2c33e
rename errorFlag to okFlag to make it even more clearer #22
2014-12-19 12:10:32 -08:00
Matthias Kadenbach
bcba31af11
Merge pull request #23 from ngauthier/return-errors-from-pipes-and-exit
...
return ok bool instead of error bool
2014-12-19 12:06:46 -08:00
Nick Gauthier
f61157f6a6
return ok bool instead of error bool. fixes #22
2014-12-19 08:19:42 -05:00
mattes
48fe666dbe
Update Readme
2014-12-19 02:50:58 -08:00
mattes
05e520bd44
replace bool with errorFlag #22
2014-12-19 02:41:11 -08:00
mattes
3ce2dc92c2
fixing #22
2014-12-19 02:40:11 -08:00
Matthias Kadenbach
6b535262fd
Merge pull request #21 from divoxx/mysql_version_table_issue
...
WIP: Prevents MySQL driver to failing when version table alredy exists
2014-12-05 13:07:42 -08: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
Matthias Kadenbach
150ce9b524
Merge pull request #20 from balboah/master
...
Cassandra driver tweaks
2014-11-17 12:42:36 -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
Matthias Kadenbach
7ae5048cb3
Merge pull request #19 from balboah/master
...
Fix typo in printing migrations path
2014-11-05 12:12:51 -08:00
Johnny Bergström
357fbc15d9
Fix typo in printing migrations path
...
We want to print the value pointed to, not the pointer.
2014-11-05 12:19:22 +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
bbc885c280
update to version 1.2.0
2014-10-11 01:39:08 +02:00
mattes
cb9cddce8e
remove scheme mysql:// prefix in sql.Open
2014-10-11 01:37:00 +02:00
mattes
95068e6a03
Update Readme
2014-10-11 01:32:26 +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
e34a5d7a03
Update Readme
2014-10-11 01:27:58 +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