Gonzalo Lucero
9a49f8ec93
Update go get install instructions to use modules
...
Closes #106
2020-01-02 18:45:28 +13:00
Reuben Thomas-Davis
1e45bd774c
Add --wait flag ( #112 )
...
✨ When using dbmate as a container, since the base image is distroless, we can't do `dbmate up && dbmate wait`, which makes config a bit more cumbersome (e.g. in kubernetes an extra initContainer).
Closes #111
Closes #112
2020-01-02 18:16:16 +13:00
Adrian Macneil
98066fadaa
Stricter linting ( #113 )
2020-01-01 19:11:02 -10:00
thomasdziedzic-pd
810bddaea8
Update README.md ( #95 )
...
Update migrate repo to https://github.com/golang-migrate/migrate
2019-10-01 14:58:38 -07:00
Andrea Crotti
325624dbe6
Clarify that it simply uses SQL to define migrations
...
Closes #94
2019-09-26 09:18:21 -07:00
Adrian Macneil
e5ade066a2
v1.7.0 ( #93 )
2019-09-24 22:07:17 -07:00
Adrian Macneil
18ffa457d6
Automatically publish builds from Travis ( #92 )
2019-09-24 22:06:21 -07:00
Adrian Macneil
d988f526ed
Update dependencies ( #91 )
2019-09-20 08:00:44 +12:00
Adrian Macneil
b69a3d487a
Fix wait command for servers with no postgres database ( #90 )
...
Currently the `dbmate wait` command fails if the `postgres` system database does not exist (which is common on DigitalOcean, and perhaps other hosting providers).
This command is intended to verify that the postgres server is available, and not whether or not the user's database exists. Therefore, we will update this command to simply ignore the `database "foo" does not exist` error and treat this as the server being ready.
Fixes #78
2019-09-19 09:36:34 +12:00
Adrian Macneil
aa72a39a29
Cross-compile macOS and Windows builds ( #89 )
...
Adds support for cross-compiling macOS and Windows builds with cgo (using https://github.com/techknowlogick/xgo ).
Closes #41
2019-09-18 22:30:59 +12:00
Adrian Macneil
23d48e48aa
Fix docker build for latest golang images ( #88 )
2019-09-02 23:00:26 -04:00
Adrian Macneil
259332bf21
Update readme docker instructions
...
Closes #87
2019-09-01 21:11:31 -04:00
Shammah Chancellor
2c83de332c
Provide a reasonable error message to users ( #80 )
...
Currently, when the .env file cannot be parsed, the dbmate application
bombs with no explanation. This commit prints out the error.
2019-06-13 20:02:29 -07:00
Adrian Macneil
2b885a0aba
Create RELEASING.md
2019-05-27 15:29:11 -07:00
Adrian Macneil
20aa42ed1e
Remove year from copyright license
2019-05-27 15:18:13 -07:00
Adrian Macneil
5a8b38be13
v1.6.0 ( #79 )
2019-05-27 13:36:35 -07:00
Manuel Romei
3250277c26
Fix special chars passwords in MySQL Driver ( #76 )
...
When MySQL password included special chars such as exclamation point or @ (at), MySQL backend errored out (invalid password).
url.userinfo.String() (which gets called inside url.String()) returns %-encoded strings and MySQL interprets it as an actual password. Now the function percent-decodes it first before returning.
Closes #57
2019-05-26 10:41:54 -07:00
Ben Reinhart
c2c05ffb91
Fail statements precede up/down migration blocks ( #77 )
2019-05-25 12:39:21 -07:00
Adrian Macneil
87c22515a9
Remove brew tap from readme ( #73 )
...
Dbmate now lives in homebrew/core
2019-05-20 19:21:49 -07:00
Ben Reinhart
02c7bda8a9
Require presence of up block; optional space after -- ( #72 )
2019-05-20 16:37:20 -07:00
Adrian Macneil
a31e06b438
v1.5.0 ( #71 )
2019-05-19 20:08:14 -07:00
Adrian Macneil
8f7c32af47
Update dependencies ( #70 )
2019-05-19 19:28:01 -07:00
Adrian Macneil
e4d490aa7e
Go v1.12 ( #69 )
2019-05-19 18:52:45 -07:00
Ben Reinhart
7ac46ff0f3
Add support for options; transaction option ( #68 )
...
* Add support for options; transaction option
2019-05-16 19:39:47 -07:00
Adrian Macneil
7400451fba
Clean up dotfiles and docs ( #62 )
2018-12-01 22:59:42 -08:00
Adrian Macneil
b417f82e64
Update dependencies ( #61 )
2018-12-01 22:48:27 -08:00
Adrian Macneil
da3d9525cf
Go v1.11 ( #60 )
...
* Go v1.11
* [Go Modules](https://github.com/golang/go/wiki/Modules )
* [GolangCI-Lint](https://github.com/golangci/golangci-lint )
* [Distroless](https://github.com/GoogleContainerTools/distroless ) docker image
2018-12-01 22:28:47 -08:00
Adrian Macneil
abc544b368
v1.4.1 ( #51 )
2018-09-03 21:39:42 -07:00
Adrian Macneil
0eabb5dc87
Postgres: Specify public schema for schema_migrations table ( #52 )
2018-09-03 21:33:19 -07:00
Adam Sven Johnson
7603e83f0e
Postgres: Add path to schema_migrations insert statement ( #49 )
...
Since Postgres 9.6.8, at the top of the output of `pg_dump` it adds the line:
```sql
SELECT pg_catalog.set_config('search_path', '', false);
```
We must provide an absolute table reference to avoid errors when importing schema.sql.
2018-08-25 17:24:40 -07:00
Adrian Macneil
4710a35da1
Release v1.4.0 ( #42 )
2018-05-06 18:46:51 -07:00
Adrian Macneil
5ddcba7518
Go 1.10 ( #38 )
2018-04-15 20:48:22 -07:00
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