Merge branch 'main-v2' into lite-ba

This commit is contained in:
TsMask
2025-10-20 18:11:52 +08:00
29 changed files with 1021 additions and 412 deletions

File diff suppressed because one or more lines are too long

View File

@@ -8,6 +8,8 @@ CREATE TABLE "ne_info" (
"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,
"pv_flag" text(32),

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;