stacker.news/prisma/migrations/20220720211644_item_uploads/migration.sql

12 lines
319 B
MySQL
Raw Normal View History

2022-07-21 22:55:05 +00:00
/*
Warnings:
- A unique constraint covering the columns `[itemId]` on the table `Upload` will be added. If there are existing duplicate values, this will fail.
*/
-- AlterTable
ALTER TABLE "Item" ADD COLUMN "uploadId" INTEGER;
-- CreateIndex
CREATE UNIQUE INDEX "Upload.itemId_unique" ON "Upload"("itemId");