Commit Graph

200 Commits (8a6c2299f076509e315ab3319594c711cde00bd3)

Author SHA1 Message Date
Josh Fyne 8a6c2299f0 Fixes the tests 2016-10-07 16:12:18 -04:00
Josh Fyne 42766096ee Fixes error on successful up 2016-10-07 15:52:55 -04:00
Vojtech Vitek cb330a2e11 Merge pull request from pressly/refactor
Refactor
2016-10-03 19:41:15 -04:00
Vojtech Vitek (V-Teq) 6804955eb2 Fix err 2016-10-03 19:36:16 -04:00
Vojtech Vitek (V-Teq) 9bf132172d Fix build 2016-10-03 19:34:37 -04:00
Vojtech Vitek (V-Teq) 643386c3a6 Refactor 2016-10-03 19:31:27 -04:00
Vojtech Vitek aad3e6a24e Merge pull request from pressly/fix_go_up
Fix go migration up
2016-09-29 19:41:40 -04:00
Vojtech Vitek (V-Teq) f49670b2b4 Fix go migration up 2016-09-29 19:30:23 -04:00
Vojtech Vitek (V-Teq) 96680a8221 Better version duplicate check 2016-08-15 15:29:29 -04:00
Vojtech Vitek (V-Teq) 6a2ef004b5 More verbose panic on duplicate migrations 2016-08-15 14:22:11 -04:00
Vojtech Vitek (V-Teq) 52af0e6a35 Panic on duplicate migration version 2016-08-15 14:11:46 -04:00
Vojtech Vitek caf14b8e35 Merge pull request from jfyne/patch-1
Fixes install instructions
2016-06-30 10:41:15 -04:00
Josh Fyne 3a4a94cc90 Fixes install instructions 2016-06-30 10:33:02 -04:00
Vojtech Vitek 4dec8a31fd Merge pull request from jfyne/create
Create command
2016-06-29 21:12:33 -04:00
Josh Fyne 15b7bf5fc7 Actually works now, re-added go migration template, updated cmd parser 2016-06-29 17:56:28 -04:00
Josh Fyne e4c7697123 Re-ordered create arguments, checked for missing create arguments 2016-06-29 15:40:13 -04:00
Josh Fyne db38a98723 dir string before extra args 2016-06-29 14:54:13 -04:00
Josh Fyne ba86be6db6 Readme fix 2016-06-29 14:29:16 -04:00
Josh Fyne 7b43a0193d Adding create command back in 2016-06-29 14:20:34 -04:00
Josh Fyne 3523b17cdc Remove misleading create documentation 2016-06-29 12:30:47 -04:00
Vojtech Vitek (V-Teq) 602cd2b9c7 Fix up-by-one and down cmd return err 2016-06-20 15:56:01 -04:00
Vojtech Vitek (V-Teq) 1a51ec2e96 Add up-by-one goose command 2016-06-20 15:24:25 -04:00
Vojtech Vitek (V-Teq) 48cee63cc9 Fix build 2016-03-08 16:22:11 -05:00
Vojtech Vitek (V-Teq) 9c5211d3d4 Fix goose status 2016-03-08 16:19:37 -05:00
Vojtech Vitek (V-Teq) 946d2ad074 Fix transaction on nil Go func migrations 2016-03-08 12:40:28 -05:00
Vojtech Vitek (V-Teq) ae64375f29 Remove go-sqlite3 dependency from goose pkg 2016-03-07 15:55:05 -05:00
Vojtech Vitek 96fd34eaa9 Merge pull request from pressly/go_migrations
Register Go functions as complex Go migrations
2016-03-03 19:21:52 -05:00
Vojtech Vitek (V-Teq) c78d864291 Register Go functions as complex Go migrations 2016-03-03 18:48:45 -05:00
Vojtech Vitek ece53000a6 Merge pull request from pressly/refactor
Refactor
2016-03-03 15:01:03 -05:00
Vojtech Vitek (V-Teq) 89f9a2f8d9 Add travis 2016-03-03 14:56:20 -05:00
Vojtech Vitek (V-Teq) 68fad0beab Update LICENSE 2016-03-03 14:53:29 -05:00
Vojtech Vitek (V-Teq) 70175058a4 Update README 2016-03-03 14:50:13 -05:00
Vojtech Vitek (V-Teq) 59f7a561cb Refactor commands 2016-03-03 14:46:04 -05:00
Vojtech Vitek (V-Teq) 2cccd9df36 Refactor goose pkg 2016-03-02 17:23:15 -05:00
Vojtech Vitek (V-Teq) 0eaa95867a README: Goals of this fork 2016-02-26 15:32:16 -05:00
Vojtech Vitek (V-Teq) 137f02bc89 Improve LICENSE readability 2016-02-26 15:10:12 -05:00
Vojtech Vitek (V-Teq) 47e4c98a97 Move lib/goose into top level pkg 2016-02-26 14:50:27 -05:00
Parker Moore 8488cc47d9 Merged in shuhaowu/goose/migration-on-db-obj (pull request )
Function to migrate specific database.
2015-01-15 15:40:39 -08:00
Shuhao Wu 1ff4053a43 Function to migrate specific database.
Fixes 
2015-01-15 09:16:44 -05:00
Parker Moore 9d1a22dde8 Merged in vinibaggio/goose/vinibaggio-raise-error-on-incomplete-buffer (pull request )
Add a warning on non-empty buffer.
2015-01-14 22:27:00 -08:00
Vinicius Baggio Fuentes 3952118555 Add a warning on non-empty buffer. 2015-01-14 14:55:06 -08:00
Parker Moore fcac4a3154 Merged in oinume/goose/mysql-support (pull request )
Support mysql driver
2015-01-14 14:07:39 -08:00
Kazuhiro Oinuma 60e5a5f618 Support mysql driver 2014-10-02 01:47:06 +09:00
Liam Staskawicz a72c5a598e Merged in rubenv/goose/readme-codeblocks (pull request )
Fix non-standard code blocks.
2014-09-08 10:14:02 -07:00
Ruben Vermeersch 0d0c245c18 Fix non-standard code blocks. 2014-09-07 22:03:46 +02:00
Liam Staskawicz d895b7d4e8 Merged in gusennan/goose (pull request )
Allow driver to be set from environment variable
2014-07-13 09:27:57 -07:00
Nathan Guerin 7bca6f6bd8 Allow driver to be set from environment variable
This changeset support for allowing the database driver to
be set from an environment variable. Added a unit test to confirm
behavior.  Resolves 
2014-07-03 00:09:22 +02:00
Liam Staskawicz 44b2850c86 readme: update thank you section 2014-06-25 16:46:22 -07:00
Nathan Guerin 91c768f7ca Simplify logic paths in two functions
This commit replaces the custom implementation of the sort.Reverse
function with golang's built in sort.Reverse function to reverse the
order of the migration scripts (descending sort). In the EnsureDbVersion
function it simplifies logic paths by reducing the number of conditions
checked before a new version is added to the "to skip" slice. In
function splitSQLStatements it changes the order of the conditions
checked because 1) It is not possible for statementEnded to be true and
ignoreSemicolons to be true at the same time because those variables are
set together in the same block and 2) ignoreSemicolons belongs together
with endsWithSemicolon line.

Also renamed script variable to scriptFile variable to indicate
scriptFile is a path, not a script in a string variable.
2014-06-25 11:30:08 +02:00
Liam Staskawicz f622414e94 readme: update thank yous, and clarify pgschema doc a bit 2014-06-05 15:36:07 -07:00