stacker.news/prisma/migrations/20220516144530_profile_photo/migration.sql

6 lines
198 B
MySQL
Raw Normal View History

2022-05-16 20:51:22 +00:00
-- AlterTable
ALTER TABLE "users" ADD COLUMN "photoId" INTEGER;
-- AddForeignKey
ALTER TABLE "users" ADD FOREIGN KEY ("photoId") REFERENCES "Upload"("id") ON DELETE SET NULL ON UPDATE CASCADE;