mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2026-02-02 09:25:07 +01:00
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
This commit is contained in:
parent
54a9fbc859
commit
d855ee1ada
15 changed files with 578 additions and 34 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
/dist
|
||||
.DS_Store
|
||||
/dist
|
||||
/testdata/db/schema.sql
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue