fix: migration 009 - change profile_id from VARCHAR(36) to UUID
All checks were successful
Deploy Development / deploy (push) Successful in 43s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 14s

Profile IDs are UUID type in the profiles table, not VARCHAR.
This was causing foreign key constraint error on migration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Lars 2026-03-22 08:22:58 +01:00
parent ef81c46bc0
commit 39d676e5c8

View File

@ -4,7 +4,7 @@
CREATE TABLE IF NOT EXISTS sleep_log ( CREATE TABLE IF NOT EXISTS sleep_log (
id SERIAL PRIMARY KEY, id SERIAL PRIMARY KEY,
profile_id VARCHAR(36) NOT NULL REFERENCES profiles(id) ON DELETE CASCADE, profile_id UUID NOT NULL REFERENCES profiles(id) ON DELETE CASCADE,
date DATE NOT NULL, date DATE NOT NULL,
bedtime TIME, bedtime TIME,
wake_time TIME, wake_time TIME,