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() {