Commit Graph

545 Commits (203277344b32c3451de63ed90c8598fb2260a951)

Author SHA1 Message Date
Nathan James Tindall f1958be35c respond to feedback (also cleans up tests) 2019-03-06 00:07:42 -05:00
Nathan James Tindall 4621f19b3c Normalize mysql dsn to always have parseTime=true 2019-03-06 00:01:17 -05:00
Vojtech Vitek f2dc36702f
Merge pull request #155 from pressly/go_modules
Go modules
2019-03-05 23:57:19 -05:00
Vojtech Vitek 4519e77103 make dist: Use vendor/ directory too 2019-03-05 23:52:37 -05:00
Vojtech Vitek f85fa0892b make vendor 2019-03-05 23:50:22 -05:00
Vojtech Vitek 603959adcb Add go.sum to 'make vendor' 2019-03-05 23:49:30 -05:00
Vojtech Vitek b17301dad4 make vendor; switch travis from Go modules to vendor/ dir 2019-03-05 23:47:24 -05:00
Vojtech Vitek a407efa898 Remove go build -i flag 2019-03-05 23:40:53 -05:00
Vojtech Vitek e1b59f5cd0 Fix tests & run them all in parallel 2019-03-05 23:03:25 -05:00
Vojtech Vitek 8c4336a9db Go modules: Track dependencies for cmd/goose main pkg 2019-03-05 22:37:30 -05:00
Vojtech Vitek 5dc9a26c62 Remove Gopkg.toml, hasta la vista golang/dep 2019-03-05 22:34:31 -05:00
Vojtech Vitek 2bb5c2b9e6 make dist: Enable Go modules 2019-03-05 22:31:28 -05:00
Vojtech Vitek 065f53ee1e .gitignore Go modules files 2019-03-05 22:29:18 -05:00
Vojtech Vitek 43b478bd51 Travis: Remove golang/dep & enable Go modules 2019-03-05 22:27:03 -05:00
Vojtech Vitek 346605b722
Merge pull request #154 from pressly/34
Improve migration templates
2019-03-05 22:26:26 -05:00
Vojtech Vitek 96f67a8bed Travis: Update to Go 1.12 2019-03-05 22:22:12 -05:00
Vojtech Vitek 7ee38eb53a goose create: Improve Go template, give the funcs meaninghful names 2019-03-05 22:11:19 -05:00
Vojtech Vitek 700850a450 Turns out we don't need lowerCamelCase() 2019-03-05 22:01:42 -05:00
Vojtech Vitek 81965805fd Remove else statements 2019-03-05 20:56:36 -05:00
Vojtech Vitek 73ac0e8470 Implement snake_case 2019-03-05 20:54:53 -05:00
Vojtech Vitek fa498e80b9 Implement lowerCamelCase() 2019-03-05 20:28:01 -05:00
Vojtech Vitek f35f8da02f Implement CamelCase via new state machine 2019-03-05 18:59:47 -05:00
Vojtech Vitek ed924a5874 Go template: Rename pkg to migrations, plural better describes the pkg 2019-03-05 16:32:44 -05:00
Vojtech Vitek 89ee209ac1 Improve SQL template for `goose create' #34 2019-03-05 16:29:17 -05:00
Vojtech Vitek acc7a55e78
Merge pull request #153 from pressly/91
Add plpgsql syntax unit test #91
2019-03-05 16:25:21 -05:00
Vojtech Vitek dd1fc11118 Add plpgsql syntax unit test #91 2019-03-05 16:20:45 -05:00
Vojtech Vitek f54a6e48b3
Merge pull request #151 from pressly/87
Refactor SQL parser
2019-03-05 15:58:05 -05:00
Vojtech Vitek 02bb13b385 Bump version to v2.7.0rc1 2019-03-05 15:54:00 -05:00
Vojtech Vitek b7b401d02b Merge branch 'master' into 87 2019-03-05 15:52:59 -05:00
Vojtech Vitek e4b9895547
Merge pull request #152 from pressly/releases
Add `goose --version' & build release binaries
2019-03-05 15:27:58 -05:00
Vojtech Vitek 6137172d9e Add `goose --version' #130 2019-03-05 15:24:30 -05:00
Vojtech Vitek 93b0afd88c Add `make dist' to build release binaries
Fixes #75
Fixes #96
Fixes #144
2019-03-05 15:10:11 -05:00
Vojtech Vitek c587f98298 Add test case for COPY FROM STDIN #138 2019-03-05 15:00:59 -05:00
Vojtech Vitek 213f48bec6 Add test case for MySQL change delimiter #127 2019-03-05 14:58:33 -05:00
Vojtech Vitek 3836c78d69 Fix SQL parser errors 2019-03-05 03:23:37 -05:00
Vojtech Vitek fff58a44df Fix SQL parser tests 2019-03-05 02:53:57 -05:00
Vojtech Vitek 14668d05d8 Fix some failing SQL migrations 2019-03-05 01:38:45 -05:00
Vojtech Vitek 3472cd6ee8 Embrace io.Reader 2019-03-05 01:14:34 -05:00
Vojtech Vitek 94c2f51496 Refactor; make the new SQL parser build 2019-03-05 01:12:32 -05:00
Vojtech Vitek 456f34d42d Kick off new SQL parser 2019-03-05 01:11:22 -05:00
Vojtech Vitek f81c971ff2 Make tests more readable 2019-03-04 21:28:36 -05:00
Vojtech Vitek e60424535d
Merge pull request #150 from pressly/76
Improve errors & remove log.Fatal() from goose pkg
2019-03-04 21:21:39 -05:00
Vojtech Vitek 3de24458e7 Print the SQL statement on error 2019-03-04 21:13:40 -05:00
Vojtech Vitek 1a52cca438 Remove log.Fatal() calls from the goose pkg
Fixes #76
2019-03-04 20:41:47 -05:00
Vojtech Vitek 9a68fa8479 Why would we create new DB table on goose status? 2019-03-04 19:58:00 -05:00
Vojtech Vitek ea492665ca Add missing error check 2019-03-04 19:42:35 -05:00
Vojtech Vitek ded1a716db
Merge pull request #149 from pressly/141
README: Remove obsolete log lines
2019-03-04 19:39:23 -05:00
Vojtech Vitek 0f13f74517 README: Remove obsolete log lines
Fixes #141
2019-03-04 19:38:33 -05:00
Vojtech Vitek d431110f17
Merge pull request #135 from tbaud0n/master
Add verbose option to print executed sql statements
2019-03-04 15:02:13 -05:00
Vojtech Vitek 9292c394c8
Merge pull request #93 from hexdigest/master
fix goose memory consumption on large migrations
2019-03-04 14:21:11 -05:00