Commit graph

3 commits

Author SHA1 Message Date
Aaron Wood
5dce775dce fix: add transaction wrapping and SQL splitter documentation in migrate.ts
Each migration file now runs in a transaction - if any statement fails,
the entire file is rolled back and no _migrations record is written.
Also documents the naive semicolon-split constraint.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 00:01:58 -04:00
Aaron Wood
602dc3d098 fix: correct MIGRATIONS_DIR path in migrate.ts
Path was resolving to repo root instead of server/migrations/.
Changed from two '..' segments to one.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 23:59:55 -04:00
Aaron Wood
ed45a84e5a feat: add MariaDB schema migration and runner 2026-04-10 23:56:00 -04:00