migration fix

This commit is contained in:
qugalet 2023-07-24 18:47:40 +03:00
parent 534b6c436d
commit b8e9d7d4c0

View file

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