2
0
Files
bot/packages/db/prisma/migrations/20211227145917_add_stripe_id/migration.sql
2021-12-27 15:59:32 +01:00

23 lines
669 B
SQL

/*
Warnings:
- A unique constraint covering the columns `[stripeId]` on the table `User` will be added. If there are existing duplicate values, this will fail.
*/
-- AlterEnum
-- This migration adds more than one value to an enum.
-- With PostgreSQL versions 11 and earlier, this is not possible
-- in a single migration. This can be worked around by creating
-- multiple migrations, each migration adding only one value to
-- the enum.
ALTER TYPE "Plan" ADD VALUE 'LIFETIME';
ALTER TYPE "Plan" ADD VALUE 'OFFERED';
-- AlterTable
ALTER TABLE "User" ADD COLUMN "stripeId" TEXT;
-- CreateIndex
CREATE UNIQUE INDEX "User_stripeId_key" ON "User"("stripeId");