mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-29 16:14:43 +00:00
Monitoring Settings API Routes
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `notificationText` on the `application_monitoring_notifications` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `notificationText` on the `server_monitoring_notifications` table. All the data in the column will be lost.
|
||||
- Added the required column `notificationLatency` to the `application_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationStatus` to the `application_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationTextLatency` to the `application_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationTextStatus` to the `application_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationCpu` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationDisk` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationGpu` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationMemory` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationStatus` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationTemperature` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationTextCpu` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationTextDisk` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationTextGpu` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationTextMemory` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationTextStatus` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `notificationTextTemperature` to the `server_monitoring_notifications` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "application_monitoring_notifications" DROP COLUMN "notificationText",
|
||||
ADD COLUMN "notificationLatency" BOOLEAN NOT NULL,
|
||||
ADD COLUMN "notificationStatus" BOOLEAN NOT NULL,
|
||||
ADD COLUMN "notificationTextLatency" TEXT NOT NULL,
|
||||
ADD COLUMN "notificationTextStatus" TEXT NOT NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "server_monitoring_notifications" DROP COLUMN "notificationText",
|
||||
ADD COLUMN "notificationCpu" BOOLEAN NOT NULL,
|
||||
ADD COLUMN "notificationDisk" BOOLEAN NOT NULL,
|
||||
ADD COLUMN "notificationGpu" BOOLEAN NOT NULL,
|
||||
ADD COLUMN "notificationMemory" BOOLEAN NOT NULL,
|
||||
ADD COLUMN "notificationStatus" BOOLEAN NOT NULL,
|
||||
ADD COLUMN "notificationTemperature" BOOLEAN NOT NULL,
|
||||
ADD COLUMN "notificationTextCpu" TEXT NOT NULL,
|
||||
ADD COLUMN "notificationTextDisk" TEXT NOT NULL,
|
||||
ADD COLUMN "notificationTextGpu" TEXT NOT NULL,
|
||||
ADD COLUMN "notificationTextMemory" TEXT NOT NULL,
|
||||
ADD COLUMN "notificationTextStatus" TEXT NOT NULL,
|
||||
ADD COLUMN "notificationTextTemperature" TEXT NOT NULL;
|
||||
12
prisma/migrations/20250525222820_fix/migration.sql
Normal file
12
prisma/migrations/20250525222820_fix/migration.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `notificationStatus` on the `application_monitoring_notifications` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `notificationStatus` on the `server_monitoring_notifications` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "application_monitoring_notifications" DROP COLUMN "notificationStatus";
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "server_monitoring_notifications" DROP COLUMN "notificationStatus";
|
||||
Reference in New Issue
Block a user