Change hostServer column type from String to Int in server model and migration

This commit is contained in:
headlessdev 2025-04-18 12:11:12 +02:00
parent 82cee64860
commit 01470f5ce1
2 changed files with 10 additions and 1 deletions

View File

@ -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;

View File

@ -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?