fix(migrations): make V5/V6 idempotent with IF NOT EXISTS
Some checks failed
CI / Unit & Component Tests (push) Has been cancelled
CI / Backend Unit Tests (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

Avoids Flyway errors when columns already exist in the DB due to
migration history mismatches from parallel feature branches.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-03-19 22:14:44 +01:00
parent 041bbdc2e6
commit 6e6663376d
2 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
ALTER TABLE persons ADD COLUMN notes TEXT;
ALTER TABLE persons ADD COLUMN IF NOT EXISTS notes TEXT;

View File

@@ -1,2 +1,2 @@
ALTER TABLE persons ADD COLUMN birth_year INTEGER;
ALTER TABLE persons ADD COLUMN death_year INTEGER;
ALTER TABLE persons ADD COLUMN IF NOT EXISTS birth_year INTEGER;
ALTER TABLE persons ADD COLUMN IF NOT EXISTS death_year INTEGER;