Commit graph

189 commits

Author SHA1 Message Date
Adrian Macneil
28ea62eef2
Use require.NoError where appropriate (#39) 2018-04-15 20:47:24 -07:00
Adrian Macneil
c5afa36962
Replace docker-compose healthchecks with wait command (#37) 2018-04-15 20:34:19 -07:00
Adrian Macneil
ee3162c34c
Add gometalinter (#36) 2018-04-15 19:59:56 -07:00
Adrian Macneil
cacf5de3ec
Add wait command (#35) 2018-04-15 18:37:57 -07:00
Adrian Macneil
6ba419a74b
Move cmd to project root for easier installs (#29) 2018-01-24 11:30:08 -08:00
Adrian Macneil
e03dec8a04 v1.3.0 2018-01-23 17:42:06 -08:00
Adrian Macneil
df119a76f3
Migrate to dep for dependency management (#26)
* Replace `Godeps` with `dep`
* Upgrade all dependencies
* Remove vendor source from git repository
2018-01-23 17:11:34 -08:00
Adrian Macneil
fbddb76b84
Add cgo build constraint for sqlite support (#25)
Required to upgrade https://github.com/mattn/go-sqlite3 which does not compile correctly with missing cgo.
2018-01-23 16:17:19 -08:00
Adrian Macneil
cc769e9605
Update README.md 2018-01-22 21:51:40 -08:00
Adrian Macneil
c2fc8b5441
Simplify Makefile and docker usage (#24) 2018-01-22 21:49:12 -08:00
Adrian Macneil
2b8b849626
Add schema dump documentation 2018-01-22 21:49:00 -08:00
Adrian Macneil
db78c71a6c
Update LICENSE 2018-01-22 21:12:12 -08:00
Adrian Macneil
d855ee1ada
Add dump command (#23)
Adds `dbmate dump` command to write the database schema to a file.

The intent is for this file to be checked in to the codebase, similar to Rails' `schema.rb` (or `structure.sql`) file. This allows developers to share a single file documenting the database schema, and makes it considerably easier to review PRs which add (or change) migrations.

The existing `up`, `migrate`, and `rollback` commands will automatically trigger a schema dump, unless `--no-dump-schema` is passed.

Closes https://github.com/amacneil/dbmate/issues/5
2018-01-22 20:38:40 -08:00
Adrian Macneil
54a9fbc859
Move code into pkg directory (#22) 2018-01-07 20:12:56 -08:00
Adrian Macneil
4e01c75eca
Add docker runtime image (#21)
Closes #17
2018-01-07 19:08:43 -08:00
Adrian Macneil
f150d6aeff
Remove i386 cross-compile binary (#20) 2018-01-07 13:15:57 -08:00
Adrian Macneil
6d5a22fce8
Upgrade to Go 1.9 (#19) 2018-01-07 12:52:10 -08:00
Adrian Macneil
12e798c691 Update README.md 2017-05-14 16:08:15 -07:00
Adrian Macneil
501c9caa62 Add comparison table to readme (#14) 2017-05-14 12:18:35 -07:00
Adrian Macneil
cb5cd35c4f Simplify utils.go 2017-05-14 12:10:45 -07:00
Adrian Macneil
9029bbbe3d Add default port for mysql connections (#13)
The pq driver already supports this natively, but the mysql driver does not. This commit adds a default port 3306 for mysql connections.
2017-05-04 20:58:39 -07:00
Adrian Macneil
e393f387b3 Separate cmd package for easier importing (#11) 2017-05-04 20:58:23 -07:00
Adrian Macneil
247d7296f8 Add docker-compose healthcheck for test dependencies (#12) 2017-04-23 20:46:27 -07:00
Adrian Macneil
c4fc848624 Update linux download instructions 2017-03-11 12:59:33 -08:00
Adrian Macneil
b51230b563 Add release version shield 2017-02-28 22:28:49 -08:00
Adrian Macneil
6bad7febaa v1.2.1 2017-02-28 21:54:37 -08:00
Adrian Macneil
93490b2f15 Add musl target for Alpine linux support (#8)
Building with `CGO_ENABLED=0` results in a binary which can run on Alpine linux (with musl libc), but it also disables SQLite support.

Adding an additional target allows people to decide this tradeoff for themselves.
2017-02-28 21:54:01 -08:00
Adrian Macneil
988471bba4 Go 1.8.0 (#7) 2017-02-28 20:36:38 -08:00
Adrian Macneil
91ccd2379b Ignore dbmate binary 2017-01-28 00:42:55 -08:00
Adrian Macneil
ef4565c176 List vendor includes separately 2017-01-27 23:49:06 -08:00
Adrian Macneil
5b0a2eeedd Bump license 2017-01-27 22:08:48 -08:00
Adrian Macneil
d97ed2be10 Move stubs to testdata directory 2016-08-20 10:40:02 -07:00
Adrian Macneil
7da72a308a Go v1.7.0 2016-08-20 10:02:42 -07:00
Adrian Macneil
309452450e v1.2.0 2016-08-15 23:18:13 -07:00
Adrian Macneil
dec6892128 Update references to urfave/cli 2016-08-15 23:14:13 -07:00
Adrian Macneil
6bbffde52c Fix order of application for migrations (#4) 2016-08-15 22:42:07 -07:00
Adrian Macneil
058bab453d v1.1.0 2016-08-07 23:31:17 -07:00
Adrian Macneil
54b58d850e Document down command 2016-08-07 23:28:30 -07:00
Adrian Macneil
b2ca8aad36 Add alias for new command 2016-08-07 23:25:35 -07:00
Divya Thakur
1fecc07f5c add down as alias for rollback 2016-08-07 23:21:25 -07:00
Adrian Macneil
31ad587414 Vendor dependencies (#3) 2016-08-07 23:19:39 -07:00
Adrian Macneil
df712a3e98 Merge pull request #2 from amacneil/fix-deprecation-warnings
Update CLI action signatures
2016-08-07 22:47:18 -07:00
Adrian Macneil
c0f0a5db8b Update CLI action signatures. Closes #1 2016-08-07 22:40:59 -07:00
Adrian Macneil
252cd4bdf1 Go 1.6.3 2016-08-07 22:39:19 -07:00
Adrian Macneil
cc92d8a98a v1.0.1 2016-05-21 22:35:04 -07:00
Adrian Macneil
62437993cd Fix deprecation warning 2016-05-21 22:33:42 -07:00
Adrian Macneil
af328ad341 v1.0.0 2016-05-21 20:01:56 -07:00
Adrian Macneil
08dd47d954 Create slimmer go binaries 2016-05-21 20:01:49 -07:00
Adrian Macneil
5b84f2b821 Go 1.6.2 2016-05-21 19:20:42 -07:00
Adrian Macneil
db140b60d7 Remove manual installation of go vet 2016-05-21 19:03:21 -07:00