feat: 添加kpi_c_report_nrf和kpi_report_nrf表的结构及索引
This commit is contained in:
30
build/database/lite/upgrade/upg_kpi_c_report_nrf.sql
Normal file
30
build/database/lite/upgrade/upg_kpi_c_report_nrf.sql
Normal file
@@ -0,0 +1,30 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for kpi_c_report_nrf
|
||||
-- ----------------------------
|
||||
CREATE TABLE IF NOT EXISTS "kpi_c_report_nrf" (
|
||||
"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_nrf
|
||||
-- ----------------------------
|
||||
CREATE INDEX IF NOT EXISTS "idx_c_nrf_uid_at"
|
||||
ON "kpi_c_report_nrf" (
|
||||
"rm_uid" ASC,
|
||||
"created_at" ASC
|
||||
);
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kpi_c_report_nrf
|
||||
-- ----------------------------
|
||||
30
build/database/lite/upgrade/upg_kpi_report_nrf.sql
Normal file
30
build/database/lite/upgrade/upg_kpi_report_nrf.sql
Normal file
@@ -0,0 +1,30 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for kpi_report_nrf
|
||||
-- ----------------------------
|
||||
CREATE TABLE IF NOT EXISTS "kpi_report_nrf" (
|
||||
"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_report_nrf
|
||||
-- ----------------------------
|
||||
CREATE INDEX IF NOT EXISTS "idx_nrf_uid_at"
|
||||
ON "kpi_report_nrf" (
|
||||
"rm_uid" ASC,
|
||||
"created_at" ASC
|
||||
);
|
||||
|
||||
-- ----------------------------
|
||||
-- Records of kpi_report_nrf
|
||||
-- ----------------------------
|
||||
Reference in New Issue
Block a user