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
John K. Luebs
16769960ce
Replace TEXT type with TIMESTAMP in sqlite migration table
...
Although TIMESTAMP specifies NUMERIC affinity, since datetime() is
a string the actual type will always be TEXT.
sqlite never enforces type, so this is a non-issue.
As documented here: https://github.com/mattn/go-sqlite3/issues/42 the
column must be TIMESTAMP for Time type scan.
2014-03-17 18:12:53 -04:00
Liam Staskawicz
53ce70e6f3
ReadMe: update thanks
2014-03-14 14:12:00 -07:00
Liam Staskawicz
8ad1755926
Merged in lukehutton/goose/add-cmd-version (pull request #30 )
...
Add command "goose version" to retrieve the current version for the DB
2014-03-14 14:10:53 -07:00
Luke Hutton
fff1cda8bd
Make command name more specific and consistent output formatting
2014-03-14 14:00:22 -07:00
Luke Hutton
09600ab4d7
Add command "goose version" to retrieve the current version for the DB
2014-03-14 13:30:23 -07:00
Liam Staskawicz
a9882a2ed7
Merged in technosophos/goose (pull request #28 )
...
Minor formatting in the README.md.
2014-03-11 12:25:39 -07:00
Matt Butcher
ac3c774890
Minor formatting in the README.md.
2014-03-11 13:09:09 -06:00
Liam Staskawicz
e868d71621
readme: update thanks
2014-02-23 22:13:49 -08:00
Liam Staskawicz
ff8c5c2a42
Merged in jkl1337/goose/sqlite3 (pull request #27 )
...
Add core sqlite3 support using mattn/go-sqlite3
2014-02-23 22:12:06 -08:00
John K. Luebs
b333124f96
Add sqlite3 to dialectByName
2014-02-23 20:32:37 -05:00
John K. Luebs
eac4a3744d
Add core sqlite3 support using mattn/go-sqlite3
2014-02-23 20:18:11 -05:00
Liam Staskawicz
215fc52614
readme: update heroku example to work as written
2014-02-22 16:30:23 -08:00
Liam Staskawicz
c7df92cbac
ReadMe: add documentation for the argument to create an sql migration
2014-01-07 16:34:43 -08:00
Liam Staskawicz
8b0e5cc603
readme: update import path in heroku instructions
2013-10-08 16:35:09 -07:00
Liam Staskawicz
80293b668f
thanks: update
2013-10-01 14:34:28 -07:00
Liam Staskawicz
02bbe7aec8
re-org: unexport MigrationSlice and MigrationMap
...
MigrationSlice -> migrationSorter and MigrationMap goes away. We can return just a slice of Migrations from CollectMigrations()
2013-10-01 14:16:35 -07:00
Liam Staskawicz
f3e80f6773
migration_sql: fix minor issues reported by go vet
2013-10-01 13:49:48 -07:00
Liam Staskawicz
1ecf08bd20
re-org: unexport dialectByName()
2013-10-01 13:26:47 -07:00