Josh Fyne
|
15b7bf5fc7
|
Actually works now, re-added go migration template, updated cmd parser
|
2016-06-29 17:56:28 -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)
|
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 (V-Teq)
|
c78d864291
|
Register Go functions as complex Go migrations
|
2016-03-03 18:48:45 -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)
|
47e4c98a97
|
Move lib/goose into top level pkg
|
2016-02-26 14:50:27 -05:00 |
Liam Staskawicz
|
381d1ac678
|
wip (not building): begin restructuring into separate cmd and lib packages, to allow external applications to make use of goose's internal functionality. part of #6.
|
2013-09-30 13:38:02 -07:00 |
Liam Staskawicz
|
5dfd15ece2
|
ensureDBVersion(): clean up after the db version query. fixes issue #10.
|
2013-09-25 11:37:19 -07:00 |
Liam Staskawicz
|
bab8917da5
|
dialect: use insertVersionSql() to ensure txn.Exec() args are handled properly in each dialect
|
2013-07-08 23:37:30 -07:00 |
Liam Staskawicz
|
66fbe2d01a
|
dialect: introduce layer to implement SQL-specific queries for internal goose operations
|
2013-04-07 17:51:48 -07:00 |
Liam Staskawicz
|
4446df2ca6
|
dbconf: split out separate DBDriver struct to encapsulate the info required for a given driver. as a bonus, we now import the correct package for Go migrations based on the driver - previously, we imported postgres only.
|
2013-04-07 14:24:03 -07:00 |
Liam Staskawicz
|
161a0a1cc2
|
reorg: plumb dbconf through to consumers that need it for dialect-specific operations
|
2013-04-07 12:58:24 -07:00 |
Chris Baynes
|
de7ced58c6
|
Update postgres dependency.
|
2013-04-03 17:31:40 +02:00 |
Liam Staskawicz
|
3c6b6c35c4
|
use filepath rather than path to ensure we're dealing with filenames in an OS compatible way. fixes #2.
|
2013-02-24 23:06:12 -08:00 |
Abigail Walthall
|
527ee49c38
|
Fix goose_db_version table for postgres.
Tested with:
* mysql Ver 15.1 Distrib 5.5.28a-MariaDB
* psql (PostgreSQL) 9.2.2
|
2013-01-17 09:34:37 -05:00 |
Liam Staskawicz
|
430f2bf9d0
|
Breaking change: Merged in ghthor/goose/primary-key-bug (pull request #5: Fixed - timestamp Primary key)
|
2013-01-16 23:22:16 -08:00 |
Liam Staskawicz
|
b959795376
|
Merged in ghthor/goose/test-fix (pull request #7: Fixed the existing test's that verify the sorting order)
|
2013-01-16 23:02:27 -08:00 |
Abigail Walthall
|
71801fa6bf
|
Fixed the existing test's that verify the sorting order
|
2013-01-16 20:29:52 -05:00 |
Abigail Walthall
|
c1e1680dc8
|
Load the mymysql database driver
|
2013-01-16 17:29:03 -05:00 |
Abigail Walthall
|
7b2d93c72a
|
Order the results by the guaranteed unique `id` instead of the potentially non-unique `tstamp`
|
2013-01-16 17:25:03 -05:00 |
Abigail Walthall
|
b7fd3077d1
|
Fix Bug when finalizing the migration table when calling `goose up` for the first time
|
2013-01-16 15:38:45 -05:00 |
Liam Staskawicz
|
85a0c8b565
|
remove obsolete version comparison
|
2013-01-06 22:12:39 -08:00 |
Liam Staskawicz
|
edaa9e3049
|
migrate refactor: simplify MigrationMap struct by allowing each Migration to track its own Version
|
2013-01-06 22:12:17 -08:00 |
Liam Staskawicz
|
77a0382914
|
results: don't bother counting the number of sql statements. we don't have a good way of tracking it for go migrations, and it's not particularly helpful either
|
2013-01-04 19:39:36 -10:00 |
Liam Staskawicz
|
0b250b8511
|
ensure migration IDs are greater than zero
|
2013-01-04 19:24:40 -10:00 |
Liam Staskawicz
|
517e1701e2
|
breaking change: version id is now int64 to accommodate larger date-based version id schemes
|
2013-01-04 19:22:03 -10:00 |
Liam Staskawicz
|
c1320a5e81
|
rename only: DBVersion => MigrationRecord
|
2013-01-04 18:32:25 -10:00 |
Liam Staskawicz
|
4bec0b22ec
|
breaking change: add a column to the version table to record whether we migrated up or down. fixes the case in which we weren't correctly calculating the current version previously in some cases, and also allows us to maintain a more complete historic record of all migrations made.
|
2013-01-04 18:11:18 -10:00 |
Liam Staskawicz
|
ef4602b5e8
|
migrate: refactor sorting of migrations out of the collection routine
|
2012-12-25 12:50:30 -08:00 |
Liam Staskawicz
|
9fbce90a79
|
flags: improved option names
|
2012-12-24 12:12:31 -08:00 |
Liam Staskawicz
|
dc913a5569
|
reorg: move getDBVersion() into migrate to clarify that it's common functionality
|
2012-12-24 10:22:33 -08:00 |
Liam Staskawicz
|
8af5b84677
|
migrate: fix off-by-one comparison, and print correct versions
|
2012-12-23 17:59:36 -08:00 |
Liam Staskawicz
|
e3112d5a4f
|
migrate: validate that given migrations don't have ID 0
|
2012-12-23 17:51:49 -08:00 |
Liam Staskawicz
|
ce29ebdf7e
|
use filepath.Walk when collecting migrations as well
|
2012-12-23 16:59:22 -08:00 |
Liam Staskawicz
|
78a2b24d13
|
up: make use of filepath.Walk to simplify traversing migration files
|
2012-12-23 14:25:38 -08:00 |
Liam Staskawicz
|
bccf6afa62
|
reorg: breaking out functionality into separate subcommands
|
2012-12-23 14:01:45 -08:00 |
Liam Staskawicz
|
c28116e175
|
reorg: move source files to top level of repo to simplify `go install` usage.
|
2012-12-17 08:12:20 -08:00 |