Kuma/prisma/migrations/20260827171854_waitlist_users_only/migration.sql

15 lines
620 B
SQL

/*
Warnings:
- You are about to drop the column `guestEmail` on the `CourseWaitlistEntry` table. All the data in the column will be lost.
- You are about to drop the column `guestName` on the `CourseWaitlistEntry` table. All the data in the column will be lost.
- Made the column `userId` on table `CourseWaitlistEntry` required. This step will fail if there are existing NULL values in that column.
*/
-- DropIndex
DROP INDEX "CourseWaitlistEntry_courseId_guestEmail_key";
-- AlterTable
ALTER TABLE "CourseWaitlistEntry" DROP COLUMN "guestEmail",
DROP COLUMN "guestName",
ALTER COLUMN "userId" SET NOT NULL;