mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 03:57:51 +02:00
Add anti-deadlock instructions to DB update README (#1552)
This commit is contained in:
parent
c1ba725d3d
commit
13e2b15a9d
1 changed files with 6 additions and 0 deletions
|
@ -55,6 +55,12 @@ following steps:
|
|||
one. The generated SQL file from the previous step should help. New create
|
||||
table statements can be used as is, whereas alter table statements should be
|
||||
written to change any existing tables.
|
||||
|
||||
Note that each incremental file MUST be limited to changes to a single
|
||||
table (otherwise it may hit deadlock when applying on sandbox/production
|
||||
where it'll be competing against live traffic that may also be locking said
|
||||
tables but in a different order). It's OK to include these separate Flyway
|
||||
scripts in a single PR.
|
||||
|
||||
This script should be stored in a new file in the
|
||||
`db/src/main/resources/sql/flyway` folder using the naming pattern
|
||||
|
|
Loading…
Add table
Reference in a new issue