Commit Graph

190 Commits (52af0e6a357b39bdf51219affbeefc7d908fdb5e)

Author SHA1 Message Date
Vojtech Vitek (V-Teq) 52af0e6a35 Panic on duplicate migration version 2016-08-15 14:11:46 -04:00
Vojtech Vitek caf14b8e35 Merge pull request #6 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 #5 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 #2 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 #1 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 #35)
Function to migrate specific database.
2015-01-15 15:40:39 -08:00
Shuhao Wu 1ff4053a43 Function to migrate specific database.
Fixes #28
2015-01-15 09:16:44 -05:00
Parker Moore 9d1a22dde8 Merged in vinibaggio/goose/vinibaggio-raise-error-on-incomplete-buffer (pull request #45)
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 #43)
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 #41)
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 #38)
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 #31
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
Liam Staskawicz 404e324155 Merge remote-tracking branch 'Fozz/fixing_pathing_bug' 2014-06-05 15:28:02 -07:00
Liam Staskawicz 9a61ce5e3f migrate: consolidate usage of FinalizeMigration
was previously duplicated in migration_go and migration_sql
2014-06-05 15:21:39 -07:00
Liam Staskawicz 2c03705655 migration_go: encode/decode the existing DBConf so it can be used in the generated code.
Allows us to re-use library code that accepts a DBConf as a param.
2014-06-05 15:20:56 -07:00
Liam Staskawicz 665f78cc28 dialect: define interface routines such that they do not rely on the compiler’s ability to dereference a pointer receiver in all cases.
supports in progress ability to gob (un)marshal DBConf
2014-06-05 15:19:38 -07:00
Brendan Fosberry 80dc0ba7ad Handling case here walkerr is raised and info is nil 2014-06-05 14:42:20 -05:00
Liam Staskawicz 3e7dc7cfd3 migrate: consolidate db openings to use OpenDBFromDBConf() 2014-06-05 11:45:59 -07:00
Liam Staskawicz f2a7d821af dbconf: provide new helper to open and configure a DB based on a given DBConf 2014-06-05 10:09:26 -07:00
Kevin Gorjan 206ca342c5 Added -pgschema option for Postgres 2014-06-05 09:57:43 -07:00
Liam Staskawicz e885648f5a ReadMe: pointer to `goose create` as a reminder of how to create both Go and SQL migrations. fixes issue #24 2014-04-01 11:08:47 -07:00
Liam Staskawicz b9dc9c12b8 Merged in jkl1337/goose/sqlite3 (pull request #31)
Replace TEXT type with TIMESTAMP in sqlite migration table
2014-03-26 07:35:07 -07:00