From 4dbf6d774b2cf238d0566f44ee820f9dcec5cde7 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sun, 16 Mar 2025 14:12:02 +0800 Subject: [PATCH] chore(prisma): apply migration to remove id field from EditorLanguageConfig model --- .../migration.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 prisma/migrations/20250316061109_remove_id_from_editor_language_config/migration.sql diff --git a/prisma/migrations/20250316061109_remove_id_from_editor_language_config/migration.sql b/prisma/migrations/20250316061109_remove_id_from_editor_language_config/migration.sql new file mode 100644 index 0000000..cc13580 --- /dev/null +++ b/prisma/migrations/20250316061109_remove_id_from_editor_language_config/migration.sql @@ -0,0 +1,14 @@ +/* + Warnings: + + - The primary key for the `EditorLanguageConfig` table will be changed. If it partially fails, the table could be left without primary key constraint. + - You are about to drop the column `id` on the `EditorLanguageConfig` table. All the data in the column will be lost. + - A unique constraint covering the columns `[language]` on the table `EditorLanguageConfig` will be added. If there are existing duplicate values, this will fail. + +*/ +-- AlterTable +ALTER TABLE "EditorLanguageConfig" DROP CONSTRAINT "EditorLanguageConfig_pkey", +DROP COLUMN "id"; + +-- CreateIndex +CREATE UNIQUE INDEX "EditorLanguageConfig_language_key" ON "EditorLanguageConfig"("language");