metadata engine

This commit is contained in:
DecDuck
2024-10-04 13:01:06 +10:00
parent 196f87c219
commit 22ac7f6b15
16 changed files with 604 additions and 12 deletions

View File

@ -0,0 +1,16 @@
/*
Warnings:
- A unique constraint covering the columns `[metadataSource,metadataId]` on the table `Developer` will be added. If there are existing duplicate values, this will fail.
- A unique constraint covering the columns `[metadataSource,metadataId]` on the table `Game` will be added. If there are existing duplicate values, this will fail.
- A unique constraint covering the columns `[metadataSource,metadataId]` on the table `Publisher` will be added. If there are existing duplicate values, this will fail.
*/
-- CreateIndex
CREATE UNIQUE INDEX "Developer_metadataSource_metadataId_key" ON "Developer"("metadataSource", "metadataId");
-- CreateIndex
CREATE UNIQUE INDEX "Game_metadataSource_metadataId_key" ON "Game"("metadataSource", "metadataId");
-- CreateIndex
CREATE UNIQUE INDEX "Publisher_metadataSource_metadataId_key" ON "Publisher"("metadataSource", "metadataId");

View File

@ -0,0 +1,12 @@
/*
Warnings:
- Added the required column `mWebsite` to the `Developer` table without a default value. This is not possible if the table is not empty.
- Added the required column `mWebsite` to the `Publisher` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Developer" ADD COLUMN "mWebsite" TEXT NOT NULL;
-- AlterTable
ALTER TABLE "Publisher" ADD COLUMN "mWebsite" TEXT NOT NULL;