stacker.news/prisma/migrations/20210921232401_user_bio/migration.sql

6 lines
192 B
SQL

-- AlterTable
ALTER TABLE "users" ADD COLUMN "bioId" INTEGER;
-- AddForeignKey
ALTER TABLE "users" ADD FOREIGN KEY ("bioId") REFERENCES "Item"("id") ON DELETE SET NULL ON UPDATE CASCADE;