text: /*
    Warnings:
  
    - The primary key for the `user` table will be changed. If it partially fails, the table could be left without primary key constraint.
    - You are about to drop the column `userId` on the `user` table. All the data in the column will be lost.
    - The required column `id` was added to the `user` table with a prisma-level default value. This is not possible if the table is not empty. Please add this column as optional, then populate it before making it required.
  
  */
  -- DropForeignKey
  ALTER TABLE "comment" DROP CONSTRAINT "comment_author_id_fkey";
  
  -- DropForeignKey
  ALTER TABLE "post" DROP CONSTRAINT "post_author_id_fkey";
  
  -- AlterTable
  ALTER TABLE "user" DROP CONSTRAINT "user_pkey",
  DROP COLUMN "userId",
  ADD COLUMN     "id" TEXT NOT NULL,
  ADD CONSTRAINT "user_pkey" PRIMARY KEY ("id");
  
  -- AddForeignKey
  ALTER TABLE "comment" ADD CONSTRAINT "comment_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "user"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "post" ADD CONSTRAINT "post_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "user"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  