mirror of
https://github.com/google/nomulus.git
synced 2025-05-02 04:57:51 +02:00
Update README.md (#1146)
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/1146) <!-- Reviewable:end -->
This commit is contained in:
parent
06e2f0dbf8
commit
104fc6a5f0
1 changed files with 9 additions and 9 deletions
18
db/README.md
18
db/README.md
|
@ -72,17 +72,17 @@ Below are the steps to submit a schema change:
|
||||||
You'll want to have a look at the diffs in the golden schema to verify that
|
You'll want to have a look at the diffs in the golden schema to verify that
|
||||||
all changes are intentional.
|
all changes are intentional.
|
||||||
|
|
||||||
5. Run ./nom_build :db:generateFlywayIndex to regenerate the Flyway index.
|
5. Run `./nom_build :db:generateFlywayIndex` to regenerate the Flyway index.
|
||||||
This is a file listing all of the current Flyway files. Its purpose is to
|
This is a file listing all of the current Flyway files. Its purpose is to
|
||||||
produce a merge conflict when more than one person adds a Flyway file with
|
produce a merge conflict when more than one person adds a Flyway file with
|
||||||
the same sequence number.
|
the same sequence number.
|
||||||
|
|
||||||
Relevant files (under db/src/main/resources/sql/schema/):
|
Relevant files (under `db/src/main/resources/sql/schema/`):
|
||||||
|
|
||||||
* nomulus.golden.sql is the schema dump (pg_dump for postgres) of the final
|
* `nomulus.golden.sql` is the schema dump (pg_dump for postgres) of the final
|
||||||
schema pushed by Flyway. This is mostly for informational, although it may
|
schema pushed by Flyway. This is mostly for informational, although it may
|
||||||
be used in tests.
|
be used in tests.
|
||||||
* db-schema.sql.generated is the schema generated from ORM classes by the
|
* `db-schema.sql.generated` is the schema generated from ORM classes by the
|
||||||
GenerateSqlSchema command in Nomulus tool. This reflects the ORM-layer's
|
GenerateSqlSchema command in Nomulus tool. This reflects the ORM-layer's
|
||||||
view of the schema.
|
view of the schema.
|
||||||
|
|
||||||
|
@ -94,16 +94,16 @@ will contain the new column while the generated one does not.
|
||||||
### Schema Push
|
### Schema Push
|
||||||
|
|
||||||
Currently Cloud SQL schema is released with the Nomulus server, and shares the
|
Currently Cloud SQL schema is released with the Nomulus server, and shares the
|
||||||
server release's tag (e.g., nomulus-20191101-RC00). Automatic schema push
|
server release's tag (e.g., `nomulus-20191101-RC00`). Automatic schema push
|
||||||
process (to apply new changes in a released schema to the databases) has not
|
process (to apply new changes in a released schema to the databases) has been
|
||||||
been set up yet, and new schema may be pushed manually on demand.
|
set up as part of the overall release pipeline.
|
||||||
|
|
||||||
Presubmit and continuous-integration tests are being implemented to ensure
|
Presubmit and continuous-integration tests are being implemented to ensure
|
||||||
server/schema compatibility. Before the tests are activated, please look for
|
server/schema compatibility. Before the tests are activated, please look for
|
||||||
breaking changes before deploying a schema.
|
breaking changes before deploying a schema.
|
||||||
|
|
||||||
Released schema may be deployed using Cloud Build. Use the root project
|
Released schema may be manually deployed using Cloud Build. Use the root
|
||||||
directory as working directory, run the following shell snippets:
|
project directory as working directory, run the following shell snippets:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Tags exist as folder names under gs://domain-registry-dev-deploy.
|
# Tags exist as folder names under gs://domain-registry-dev-deploy.
|
||||||
|
|
Loading…
Add table
Reference in a new issue