Files
pichunt/prisma/migrations/20250804155319_change_auth_to_password/migration.sql
T
2025-08-04 19:34:50 +02:00

16 lines
429 B
SQL

/*
Warnings:
- You are about to drop the `UserLoginLinks` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropForeignKey
ALTER TABLE "public"."UserLoginLinks" DROP CONSTRAINT "UserLoginLinks_userId_fkey";
-- AlterTable
ALTER TABLE "public"."User" ADD COLUMN "password" TEXT NOT NULL DEFAULT '',
ALTER COLUMN "role" SET DEFAULT 'USER';
-- DropTable
DROP TABLE "public"."UserLoginLinks";