step 3: Make UUID columns NOT NULL

- Add migration 000008: Add NOT NULL constraints to UUID columns
- This completes the dual-write phase

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-06-01 22:40:38 +02:00
parent 0f552282f3
commit 898876fbf8
2 changed files with 14 additions and 0 deletions
@@ -0,0 +1,7 @@
-- Rollback: Make UUID columns nullable again
-- Make UUID nullable on soundtrack
ALTER TABLE soundtrack ALTER COLUMN uuid DROP NOT NULL;
-- Make UUID nullable on song
ALTER TABLE song ALTER COLUMN uuid DROP NOT NULL;
@@ -0,0 +1,7 @@
-- Migration: Make UUID columns NOT NULL
-- Make UUID required on soundtrack
ALTER TABLE soundtrack ALTER COLUMN uuid SET NOT NULL;
-- Make UUID required on song
ALTER TABLE song ALTER COLUMN uuid SET NOT NULL;