Migrations

schemachange owns table structure — the one part of the Snowflake schema Terraform doesn't touch. See Snowflake resources & RBAC for that boundary.

Stock and Redbook each have their own migrations/ folder, their own change-history table, and their own deploy script — there's no shared migration state between them.

At a glance

Versioned filesV{n}__description.sql — run once, ever, never edited after merge
Repeatable filesR__description.sql — re-run whenever their checksum changes
Deploy toolschemachange, via each project's migrations/deploy-migrations.sh
History tablesOne per project — VEHICLE_STOCK_SCHEMA.SCHEMACHANGE_HISTORY, REDBOOK_SCHEMA.SCHEMACHANGE_HISTORY

Start here

Esc