diff --git a/prisma/migrations/20250418101029_host_server_string_int/migration.sql b/prisma/migrations/20250418101029_host_server_string_int/migration.sql new file mode 100644 index 0000000..378b63f --- /dev/null +++ b/prisma/migrations/20250418101029_host_server_string_int/migration.sql @@ -0,0 +1,9 @@ +/* + Warnings: + + - The `hostServer` column on the `server` table would be dropped and recreated. This will lead to data loss if there is data in the column. + +*/ +-- AlterTable +ALTER TABLE "server" DROP COLUMN "hostServer", +ADD COLUMN "hostServer" INTEGER; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 69a56ad..3760f31 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -35,7 +35,7 @@ model uptime_history { model server { id Int @id @default(autoincrement()) host Boolean @default(false) - hostServer String? + hostServer Int? name String os String? ip String?