2
0
Files
bot/packages/db/prisma/migrations/20211223141944_add_public_id/migration.sql
Baptiste Arnaud 9a78a341d2 🦴 Add share page backbone
2021-12-23 15:20:21 +01:00

19 lines
655 B
SQL

/*
Warnings:
- A unique constraint covering the columns `[publicId]` on the table `PublicTypebot` will be added. If there are existing duplicate values, this will fail.
- A unique constraint covering the columns `[publicId]` on the table `Typebot` will be added. If there are existing duplicate values, this will fail.
*/
-- AlterTable
ALTER TABLE "PublicTypebot" ADD COLUMN "publicId" TEXT;
-- AlterTable
ALTER TABLE "Typebot" ADD COLUMN "publicId" TEXT;
-- CreateIndex
CREATE UNIQUE INDEX "PublicTypebot_publicId_key" ON "PublicTypebot"("publicId");
-- CreateIndex
CREATE UNIQUE INDEX "Typebot_publicId_key" ON "Typebot"("publicId");