mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 01:54:43 +00:00
Merge branch 'main' into frontend/brewery-feature
This commit is contained in:
@@ -498,12 +498,16 @@ For the table-by-table schema and the custom SQL error code scheme, see
|
||||
```
|
||||
scripts/
|
||||
└── 01-schema/
|
||||
└── schema.sql # full table/index/constraint definitions
|
||||
├── 01-UserAccount.sql
|
||||
├── 02-Photo.sql
|
||||
├── ...
|
||||
└── 16-BeerPostComment.sql # one script per CREATE TABLE
|
||||
```
|
||||
|
||||
Currently the whole schema is a single versioned script. As the schema evolves,
|
||||
new numbered scripts get added alongside it rather than editing `schema.sql` in
|
||||
place, so DbUp's already-applied tracking stays valid.
|
||||
Each table has its own script, numbered so a table's foreign keys always point
|
||||
at an earlier-numbered script. As the schema evolves, new numbered scripts get
|
||||
added rather than editing an existing one in place, so DbUp's already-applied
|
||||
tracking stays valid.
|
||||
|
||||
### Data seeding
|
||||
|
||||
|
||||
Reference in New Issue
Block a user