dbmate/pkg/dbmate
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
..
db.go Add dump command (#23) 2018-01-22 20:38:40 -08:00
db_test.go Add dump command (#23) 2018-01-22 20:38:40 -08:00
driver.go Add dump command (#23) 2018-01-22 20:38:40 -08:00
driver_test.go Move code into pkg directory (#22) 2018-01-07 20:12:56 -08:00
mysql.go Add dump command (#23) 2018-01-22 20:38:40 -08:00
mysql_test.go Add dump command (#23) 2018-01-22 20:38:40 -08:00
postgres.go Add dump command (#23) 2018-01-22 20:38:40 -08:00
postgres_test.go Add dump command (#23) 2018-01-22 20:38:40 -08:00
sqlite.go Add dump command (#23) 2018-01-22 20:38:40 -08:00
sqlite_test.go Add dump command (#23) 2018-01-22 20:38:40 -08:00
utils.go Add dump command (#23) 2018-01-22 20:38:40 -08:00
utils_test.go Add dump command (#23) 2018-01-22 20:38:40 -08:00
version.go Move code into pkg directory (#22) 2018-01-07 20:12:56 -08:00