Consolidate migrations 023 to 066 into one baseline plus a minimal seed
066_schema.sql is generated from the live v66 schema (checked identical
to the old migrations' result: every object, every table's columns);
066_seed.sql holds only what pages need: the single rows, event scopes,
home sections, site pages and their sections, the Musicians tag. Sample
content (hero words, paths, stats, the Organization address) is no
longer seeded. Both share version 66, so a database at v66 skips them;
one below v66 is refused and has to be brought up by 33be618 first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
33be618331
commit
635dd21083
48 changed files with 763 additions and 3322 deletions
|
|
@ -84,6 +84,9 @@ export function tx(db, fn) {
|
|||
baseline was built by those older files and has to be brought
|
||||
up by a release that still has them; running the baseline over
|
||||
it would fail halfway on CREATE TABLE, so this refuses first.
|
||||
The baseline's seed shares its version (066_schema.sql, then
|
||||
066_seed.sql): `current` is read once, so an empty database
|
||||
runs both and one already at that version skips both.
|
||||
───────────────────────────────────────────────────────────── */
|
||||
|
||||
export function migrate(db, { log = console.log } = {}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue