feat: 网元参数配置数据支持版本区分功能,,适应mme版本配置

This commit is contained in:
TsMask
2025-10-17 11:06:27 +08:00
parent c325b89f6f
commit 7f7f4e2581
19 changed files with 924 additions and 351 deletions

View File

@@ -0,0 +1,46 @@
-- ----------------------------
-- Table structure for ne_info
-- ----------------------------
DROP TABLE IF EXISTS "ne_info";
CREATE TABLE "ne_info" (
"id" integer NOT NULL,
"ne_type" text(32) NOT NULL,
"ne_id" text(32) NOT NULL,
"rm_uid" text(40),
"ne_name" text(64),
"ne_version" text(12),
"schema" text(12),
"ip" text(128),
"port" integer(11),
"pv_flag" text(32),
"province" text(32),
"vendor_name" text(64),
"dn" text(255),
"ne_address" text(64),
"host_ids" text(64),
"status" integer(11),
"remark" text(255),
"create_by" text(50),
"create_time" integer(20),
"update_by" text(50),
"update_time" integer(20),
PRIMARY KEY ("id")
);
-- ----------------------------
-- Indexes structure for table ne_info
-- ----------------------------
CREATE UNIQUE INDEX "ux_netype_neid"
ON "ne_info" (
"ne_type" ASC,
"ne_id" ASC
);
-- ADD COLUMN
ALTER TABLE "ne_info" ADD COLUMN "ne_version" text(12);
ALTER TABLE "ne_info" ADD COLUMN "schema" text(12);
-- ----------------------------
-- Records of ne_info
-- ----------------------------
UPDATE "ne_info" SET "ne_version" = '2', "schema" = 'http' WHERE "ne_version" IS NULL OR "schema" IS NULL;