From 088cb686043370144c0fcda1d5d4e0864f61a283 Mon Sep 17 00:00:00 2001 From: DecDuck Date: Fri, 4 Apr 2025 10:34:58 +1100 Subject: [PATCH] chore: apply schema changes to db --- .../migration.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 prisma/migrations/20250403233442_apply_store_changes/migration.sql diff --git a/prisma/migrations/20250403233442_apply_store_changes/migration.sql b/prisma/migrations/20250403233442_apply_store_changes/migration.sql new file mode 100644 index 0000000..2a71099 --- /dev/null +++ b/prisma/migrations/20250403233442_apply_store_changes/migration.sql @@ -0,0 +1,13 @@ +/* + Warnings: + + - Added the required column `expiresAt` to the `Session` table without a default value. This is not possible if the table is not empty. + - Added the required column `userId` to the `Session` table without a default value. This is not possible if the table is not empty. + +*/ +-- AlterTable +ALTER TABLE "Session" ADD COLUMN "expiresAt" TIMESTAMP(3) NOT NULL, +ADD COLUMN "userId" TEXT NOT NULL; + +-- AddForeignKey +ALTER TABLE "Session" ADD CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;