47 lines
1.2 KiB
SQL
47 lines
1.2 KiB
SQL
-- ----------------------------
|
|
-- 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;
|