From 1283314f776a0ba43be7d796e7e2243e31f860de Mon Sep 17 00:00:00 2001 From: "Alessandro (Ale) Segala" <43508+ItalyPaleAle@users.noreply.github.com> Date: Sun, 24 Aug 2025 05:34:29 -0700 Subject: [PATCH] fix: wrong column type for reauthentication tokens in Postgres (#869) --- .../postgres/20250814121300_requires_reauthentication.up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/resources/migrations/postgres/20250814121300_requires_reauthentication.up.sql b/backend/resources/migrations/postgres/20250814121300_requires_reauthentication.up.sql index 32cdf3d4..de34a9d2 100644 --- a/backend/resources/migrations/postgres/20250814121300_requires_reauthentication.up.sql +++ b/backend/resources/migrations/postgres/20250814121300_requires_reauthentication.up.sql @@ -5,7 +5,7 @@ CREATE TABLE reauthentication_tokens ( created_at TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, token TEXT NOT NULL UNIQUE, expires_at TIMESTAMPTZ NOT NULL, - user_id TEXT NOT NULL REFERENCES users ON DELETE CASCADE + user_id uuid NOT NULL REFERENCES users ON DELETE CASCADE ); CREATE INDEX idx_reauthentication_tokens_token ON reauthentication_tokens(token); \ No newline at end of file