mirror of
https://github.com/google/nomulus
synced 2026-01-03 11:45:39 +00:00
Edit a couple of nits in the db README (#291)
* Edit a couple of nits in the db README * Update README.md
This commit is contained in:
@@ -18,12 +18,12 @@ Below are the steps to submit a schema change:
|
|||||||
follow the V{id}__{description text}.sql, where {id} is a number that is
|
follow the V{id}__{description text}.sql, where {id} is a number that is
|
||||||
higher than all existing scripts in that folder. Also note that it is a
|
higher than all existing scripts in that folder. Also note that it is a
|
||||||
**double** underscore in the naming pattern.
|
**double** underscore in the naming pattern.
|
||||||
* Run :db:tests from the Gradle root project. The SchemaTest will fail because
|
* Run the `:db:test` task from the Gradle root project. The SchemaTest will
|
||||||
the new schema does not match the gold file.
|
fail because the new schema does not match the golden file.
|
||||||
* Copy db/build/resources/test/testcontainer/mount/dump.txt to the golden file
|
* Copy db/build/resources/test/testcontainer/mount/dump.txt to the golden file
|
||||||
(db/src/main/resources/sql/schema/nomulus.golden.sql). Diff it against the
|
(db/src/main/resources/sql/schema/nomulus.golden.sql). Diff it against the
|
||||||
old version and verify that all changes are expected.
|
old version and verify that all changes are expected.
|
||||||
* Retrun :db:tests. This time all tests should pass.
|
* Rerun the `:db:test` task. This time all tests should pass.
|
||||||
|
|
||||||
Relevant files (under db/src/main/resources/sql/schema/):
|
Relevant files (under db/src/main/resources/sql/schema/):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user