From b8e9d7d4c0df034128f5f8b0ebff7d7481761c5c Mon Sep 17 00:00:00 2001 From: qugalet Date: Mon, 24 Jul 2023 18:47:40 +0300 Subject: [PATCH] migration fix --- prisma/migrations/20230724154656_ids/migration.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 prisma/migrations/20230724154656_ids/migration.sql diff --git a/prisma/migrations/20230724154656_ids/migration.sql b/prisma/migrations/20230724154656_ids/migration.sql new file mode 100644 index 0000000..49f90d9 --- /dev/null +++ b/prisma/migrations/20230724154656_ids/migration.sql @@ -0,0 +1,11 @@ +/* + Warnings: + + - A unique constraint covering the columns `[id]` on the table `Post` will be added. If there are existing duplicate values, this will fail. + +*/ +-- AlterTable +ALTER TABLE "Post" ADD COLUMN "id" SERIAL NOT NULL; + +-- CreateIndex +CREATE UNIQUE INDEX "Post_id_key" ON "Post"("id");