Add art types and categories

This commit is contained in:
2025-07-20 10:07:09 +02:00
parent b2c77ec9e0
commit 92081828f0
20 changed files with 989 additions and 103 deletions

View File

@ -0,0 +1,22 @@
/*
Warnings:
- A unique constraint covering the columns `[name]` on the table `PortfolioCategory` will be added. If there are existing duplicate values, this will fail.
- A unique constraint covering the columns `[name]` on the table `PortfolioTag` will be added. If there are existing duplicate values, this will fail.
- Made the column `name` on table `PortfolioCategory` required. This step will fail if there are existing NULL values in that column.
- Made the column `name` on table `PortfolioTag` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "PortfolioCategory" ADD COLUMN "description" TEXT,
ALTER COLUMN "name" SET NOT NULL;
-- AlterTable
ALTER TABLE "PortfolioTag" ADD COLUMN "description" TEXT,
ALTER COLUMN "name" SET NOT NULL;
-- CreateIndex
CREATE UNIQUE INDEX "PortfolioCategory_name_key" ON "PortfolioCategory"("name");
-- CreateIndex
CREATE UNIQUE INDEX "PortfolioTag_name_key" ON "PortfolioTag"("name");