diff --git a/scripts/0.0.1/data/1_update_user_data.sql b/scripts/0.0.1/data/1_update_user_data.sql deleted file mode 100644 index 13b0af55..00000000 --- a/scripts/0.0.1/data/1_update_user_data.sql +++ /dev/null @@ -1,4 +0,0 @@ --- ---------------------------- --- Records of user --- ---------------------------- -INSERT INTO "public"."user" VALUES (1, '管理员', 'SuperAdmin', 'e10adc3949ba59abbe56e057f20f883e', 1, 'f', NULL, NULL, NULL, TRUE); \ No newline at end of file diff --git a/scripts/0.0.1/data/1_update_user_dep_data.sql b/scripts/0.0.1/data/1_update_user_dep_data.sql new file mode 100644 index 00000000..c7f99bc1 --- /dev/null +++ b/scripts/0.0.1/data/1_update_user_dep_data.sql @@ -0,0 +1,8 @@ +-- ---------------------------- +-- Records of DEP +-- ---------------------------- +INSERT INTO "department" VALUES (1, '默认部门', NULL, false); +-- ---------------------------- +-- Records of user +-- ---------------------------- +INSERT INTO "user" VALUES (1, '管理员', 'SuperAdmin', 'e10adc3949ba59abbe56e057f20f883e', 1, 'f', NULL, NULL, NULL, TRUE); \ No newline at end of file diff --git a/scripts/0.0.1/data/工具脚本(无需执行)/dataIn.js b/scripts/0.0.1/data/工具脚本(无需执行)/dataIn.js index 0caf44a5..a8dc2654 100644 --- a/scripts/0.0.1/data/工具脚本(无需执行)/dataIn.js +++ b/scripts/0.0.1/data/工具脚本(无需执行)/dataIn.js @@ -24,27 +24,27 @@ try { await client.query('BEGIN') const fileList = [ - { - path: ['./data/道路/村道第三方.xls'], - n: '道路', - tableName: 'road', - defaultKey: ['level'], - defaultValue: ['村'], - }, - { - path: ['./data/道路/县道第三方.xls'], - n: '道路', - tableName: 'road', - defaultKey: ['level'], - defaultValue: ['县'], - }, - { - path: ['./data/道路/乡道第三方.xls'], - n: '道路', - tableName: 'road', - defaultKey: ['level'], - defaultValue: ['乡'], - }, + // { + // path: ['./data/道路/村道第三方.xls'], + // n: '道路', + // tableName: 'road', + // defaultKey: ['level'], + // defaultValue: ['村'], + // }, + // { + // path: ['./data/道路/县道第三方.xls'], + // n: '道路', + // tableName: 'road', + // defaultKey: ['level'], + // defaultValue: ['县'], + // }, + // { + // path: ['./data/道路/乡道第三方.xls'], + // n: '道路', + // tableName: 'road', + // defaultKey: ['level'], + // defaultValue: ['乡'], + // }, // { // path: (() => { // let p = [];