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,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);