fix: migration 009 - change profile_id from VARCHAR(36) to UUID
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:
parent
ef81c46bc0
commit
39d676e5c8
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user