From 3e4b396bfeb5fec8de73974f8b833f58967178ae Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Tue, 18 Mar 2025 11:46:11 +0800 Subject: [PATCH] chore(prisma): add migration for language server protocol enum --- .../migration.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 prisma/migrations/20250318034516_add_language_server_protocol_enum/migration.sql diff --git a/prisma/migrations/20250318034516_add_language_server_protocol_enum/migration.sql b/prisma/migrations/20250318034516_add_language_server_protocol_enum/migration.sql new file mode 100644 index 0000000..9135c04 --- /dev/null +++ b/prisma/migrations/20250318034516_add_language_server_protocol_enum/migration.sql @@ -0,0 +1,12 @@ +/* + Warnings: + + - Changed the type of `protocol` on the `LanguageServerConfig` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required. + +*/ +-- CreateEnum +CREATE TYPE "LanguageServerProtocol" AS ENUM ('ws', 'wss'); + +-- AlterTable +ALTER TABLE "LanguageServerConfig" DROP COLUMN "protocol", +ADD COLUMN "protocol" "LanguageServerProtocol" NOT NULL;