stacker.news/prisma/migrations/20220418173838_forward/migration.sql

6 lines
199 B
SQL

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