Commit graph

13 commits

Author SHA1 Message Date
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
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
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
e03dec8a04 v1.3.0 2018-01-23 17:42:06 -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
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