Files
test/prisma/migrations/20251106074314_fix_session_token/migration.sql
T
2025-11-06 16:40:32 +03:00

15 lines
641 B
SQL

/*
Warnings:
- You are about to drop the column `ipAddress` on the `Session` table. All the data in the column will be lost.
- You are about to drop the column `token` on the `Session` table. All the data in the column will be lost.
- You are about to drop the column `userAgent` on the `Session` table. All the data in the column will be lost.
- Made the column `sessionToken` on table `Session` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "Session" DROP COLUMN "ipAddress",
DROP COLUMN "token",
DROP COLUMN "userAgent",
ALTER COLUMN "sessionToken" SET NOT NULL;