fix: 补充升级缺失的数据库

This commit is contained in:
TsMask
2025-05-20 11:29:13 +08:00
parent c836be5fea
commit f011fb5153
11 changed files with 288 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
-- ----------------------------
-- Table structure for kpi_c_report_ausf
-- ----------------------------
CREATE TABLE IF NOT EXISTS "kpi_c_report_ausf" (
"id" integer NOT NULL,
"ne_type" text(16),
"ne_name" text(64),
"rm_uid" text(64),
"date" text(10) NOT NULL,
"start_time" text(10),
"end_time" text(10),
"index" integer(11) NOT NULL,
"granularity" integer(11),
"kpi_values" text,
"created_at" integer(20),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table kpi_c_report_ausf
-- ----------------------------
CREATE INDEX IF NOT EXISTS "idx_c_ausf_uid_at"
ON "kpi_c_report_ausf" (
"rm_uid" ASC,
"created_at" ASC
);
-- ----------------------------
-- Records of kpi_c_report_ausf
-- ----------------------------

View File

@@ -0,0 +1,30 @@
-- ----------------------------
-- Table structure for kpi_c_report_pcf
-- ----------------------------
CREATE TABLE IF NOT EXISTS "kpi_c_report_pcf" (
"id" integer NOT NULL,
"ne_type" text(16),
"ne_name" text(64),
"rm_uid" text(64),
"date" text(10) NOT NULL,
"start_time" text(10),
"end_time" text(10),
"index" integer(11) NOT NULL,
"granularity" integer(11),
"kpi_values" text,
"created_at" integer(20),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table kpi_c_report_pcf
-- ----------------------------
CREATE INDEX IF NOT EXISTS "idx_c_pcf_uid_at"
ON "kpi_c_report_pcf" (
"rm_uid" ASC,
"created_at" ASC
);
-- ----------------------------
-- Records of kpi_c_report_pcf
-- ----------------------------

View File

@@ -0,0 +1,37 @@
-- ----------------------------
-- Table structure for ne_license
-- ----------------------------
CREATE TABLE IF NOT EXISTS "ne_license" (
"id" integer NOT NULL,
"ne_type" text(32) NOT NULL,
"ne_id" text(32) NOT NULL,
"activation_request_code" text(255) NOT NULL,
"license_path" text(255),
"capability" integer,
"serial_num" text(32),
"expiry_date" text(32),
"status" text(32),
"remark" text(255),
"create_by" text(50),
"create_time" integer,
"update_by" text(50),
"update_time" integer,
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table ne_license
-- ----------------------------
CREATE UNIQUE INDEX IF NOT EXISTS "uk_lic_type_id"
ON "ne_license" (
"ne_type" ASC,
"ne_id" ASC
);
-- ADD COLUMN
ALTER TABLE ne_license ADD COLUMN capability integer;
-- ----------------------------
-- Records of ne_license
-- ----------------------------
INSERT OR IGNORE INTO "ne_license" VALUES (1, 'OMC', '001', '', '', 0, '', '', '0', '', 'system', 1713928436971, '', 0);