From 65e9ed5ce6929013260cd2599f852b8fee282b2b Mon Sep 17 00:00:00 2001 From: amal Date: Mon, 13 Apr 2026 17:15:41 +0800 Subject: [PATCH] upd: connected api --- .../20260413085051_update_type_data/migration.sql | 12 ++++++++++++ prisma/schema.prisma | 6 +----- src/frontend/routes/bug-reports.tsx | 6 +++--- 3 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 prisma/migrations/20260413085051_update_type_data/migration.sql diff --git a/prisma/migrations/20260413085051_update_type_data/migration.sql b/prisma/migrations/20260413085051_update_type_data/migration.sql new file mode 100644 index 0000000..6253d66 --- /dev/null +++ b/prisma/migrations/20260413085051_update_type_data/migration.sql @@ -0,0 +1,12 @@ +/* + Warnings: + + - The `app` column on the `bug` table would be dropped and recreated. This will lead to data loss if there is data in the column. + +*/ +-- AlterTable +ALTER TABLE "bug" DROP COLUMN "app", +ADD COLUMN "app" TEXT; + +-- DropEnum +DROP TYPE "App"; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index ff103cb..64b5f82 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -15,10 +15,6 @@ enum Role { DEVELOPER } -enum App{ - desa_plus - hipmi -} enum BugSource{ QC @@ -90,7 +86,7 @@ model Log { model Bug { id String @id @default(uuid()) userId String? - app App + app String? affectedVersion String device String os String diff --git a/src/frontend/routes/bug-reports.tsx b/src/frontend/routes/bug-reports.tsx index 8cc4828..1a54b1e 100644 --- a/src/frontend/routes/bug-reports.tsx +++ b/src/frontend/routes/bug-reports.tsx @@ -185,7 +185,7 @@ function ListErrorsPage() {