From c9b6ce8f60325e98180983887ebd83d091bc83d4 Mon Sep 17 00:00:00 2001 From: Interitio Date: Thu, 4 Sep 2025 01:08:32 +1000 Subject: [PATCH] fix: Typo in community schema. --- data/profiles.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/profiles.sql b/data/profiles.sql index 62b36de..665d65e 100644 --- a/data/profiles.sql +++ b/data/profiles.sql @@ -41,7 +41,7 @@ CREATE UNIQUE INDEX profiles_twitch_userid ON profiles_twitch (userid); CREATE TABLE communities( communityid INTEGER PRIMARY KEY GENERATED ALWAYS AS IDENTITY, - migrated INTEGER REFERENCES user_profiles (profileid) ON DELETE CASCADE ON UPDATE CASCADE, + migrated INTEGER REFERENCES communities (communityid) ON DELETE CASCADE ON UPDATE CASCADE, created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), last_seen TIMESTAMPTZ NOT NULL DEFAULT NOW(), _timestamp TIMESTAMPTZ NOT NULL DEFAULT NOW()