fix: 补充升级缺失的数据库
This commit is contained in:
37
build/database/lite/upgrade/upg_ne_license.sql
Normal file
37
build/database/lite/upgrade/upg_ne_license.sql
Normal 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);
|
||||
Reference in New Issue
Block a user