mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-12 15:52:39 +10:00
14 lines
580 B
SQL
14 lines
580 B
SQL
/*
|
|
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;
|