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");