sql: 更新数据库表

This commit is contained in:
TsMask
2025-07-15 18:53:04 +08:00
parent be7da57171
commit 45098970b6
38 changed files with 1193 additions and 195 deletions

View File

@@ -15,13 +15,13 @@ CREATE TABLE "alarm_event" (
"object_name" text(64),
"object_type" text(20),
"location_info" text(2048),
"alarm_status" text(10),
"alarm_status" text(64),
"specific_problem" text(255),
"specific_problem_id" text(100),
"add_info" text(2048),
"clear_type" integer(11),
"clear_type" text(64),
"clear_time" integer(20),
"clear_user" text(16),
"clear_user" text(64),
"timestamp" integer(20),
PRIMARY KEY ("id")
);
@@ -34,12 +34,11 @@ ON "alarm_event" (
"alarm_status" ASC,
"event_time" ASC
);
CREATE UNIQUE INDEX "uk_ti_aid_aseq"
CREATE UNIQUE INDEX "uk_ti_aid"
ON "alarm_event" (
"ne_type" ASC,
"ne_id" ASC,
"alarm_id" ASC,
"alarm_seq" ASC
"alarm_id" ASC
);
-- ----------------------------