prisma: adjusts for mysql and postgres

This commit is contained in:
Davidson Gomes
2024-08-09 07:58:33 -03:00
parent 840f9c6f57
commit 678f2c2b5d
33 changed files with 842 additions and 48 deletions

View File

@@ -0,0 +1,12 @@
/*
Warnings:
- A unique constraint covering the columns `[name]` on the table `OpenaiCreds` will be added. If there are existing duplicate values, this will fail.
*/
-- AlterTable
ALTER TABLE "OpenaiCreds" ADD COLUMN "name" VARCHAR(255),
ALTER COLUMN "apiKey" DROP NOT NULL;
-- CreateIndex
CREATE UNIQUE INDEX "OpenaiCreds_name_key" ON "OpenaiCreds"("name");