Skip to content

Commit 1d7703d

Browse files
committed
chore(prisma): add remember period changes migrations sql for prisma
1 parent 353403b commit 1d7703d

File tree

1 file changed

+15
-0
lines changed
  • packages/prisma/migrations/20250607113637_update_reminder_period_enum

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
Warnings:
3+
4+
- Changed the type of `remember_period` on the `subscriptions` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
5+
6+
*/
7+
-- CreateEnum
8+
CREATE TYPE "RememberPeriod" AS ENUM ('SAME_DAY', 'THREE_DAYS', 'SEVEN_DAYS', 'FOURTEEN_DAYS', 'THIRTY_DAYS', 'NINETY_DAYS');
9+
10+
-- AlterTable
11+
ALTER TABLE "subscriptions" DROP COLUMN "remember_period",
12+
ADD COLUMN "remember_period" "RememberPeriod" NOT NULL;
13+
14+
-- DropEnum
15+
DROP TYPE "RememberPeriodType";

0 commit comments

Comments
 (0)