Browse Source

更新sql脚本

test
smallchill 6 years ago
parent
commit
511358d480
  1. 8
      doc/sql/mysql/bladex-saber-mysql.sql
  2. 8
      doc/sql/mysql/bladex-sword-mysql.sql
  3. 142
      doc/sql/oracle/bladex-saber-oracle.sql
  4. 140
      doc/sql/oracle/bladex-sword-oracle.sql
  5. 8
      doc/sql/postgresql/bladex-saber-postgresql.sql
  6. 8
      doc/sql/postgresql/bladex-sword-postgresql.sql
  7. 75
      doc/sql/update/mysql-update-2.0.6~2.0.7.sql
  8. 16
      doc/sql/update/mysql-update-2.0.7~2.0.8.sql
  9. 97
      doc/sql/update/oracle-update-2.0.6~2.0.7.sql
  10. 17
      doc/sql/update/oracle-update-2.0.7~2.0.8.sql
  11. 103
      doc/sql/update/postgresql-update-2.0.6~2.0.7.sql
  12. 16
      doc/sql/update/postgresql-update-2.0.7~2.0.8.sql

8
doc/sql/mysql/bladex-saber-mysql.sql

File diff suppressed because one or more lines are too long

8
doc/sql/mysql/bladex-sword-mysql.sql

File diff suppressed because one or more lines are too long

142
doc/sql/oracle/bladex-saber-oracle.sql

@ -38,7 +38,7 @@ CREATE TABLE "BLADE_CLIENT" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) NOT NULL ,
"IS_DELETED" NUMBER(11) NOT NULL
"IS_DELETED" NUMBER(11) NOT NULL
)
TABLESPACE "BLADEX"
LOGGING
@ -46,8 +46,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -101,7 +101,7 @@ CREATE TABLE "BLADE_CODE" (
"WRAP_MODE" NUMBER(11),
"API_PATH" NCLOB ,
"WEB_PATH" NCLOB ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -109,8 +109,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -137,7 +137,7 @@ COMMENT ON TABLE "BLADE_CODE" IS '代码生成表';
-- ----------------------------
-- Records of BLADE_CODE
-- ----------------------------
INSERT INTO "BLADE_CODE" VALUES ('1123598812738675201', '1161483357481541634', 'blade-demo', '通知公告', 'BLADE_NOTICE', 'blade_', 'id', 'org.springblade.desktop', '1', '1', 'D:\Develop\WorkSpace\Git\SpringBlade\blade-ops\blade-develop', 'D:\Develop\WorkSpace\Git\Sword', '0');
INSERT INTO "BLADE_CODE" VALUES ('1123598812738675201', '1161483357481541634', 'blade-demo', '通知公告', 'BLADE_NOTICE', 'blade_', 'ID', 'org.springblade.desktop', '1', '1', 'D:\Develop\WorkSpace\Git\SpringBlade\blade-ops\blade-develop', 'D:\Develop\WorkSpace\Git\Sword', '0');
COMMIT;
-- ----------------------------
@ -158,7 +158,7 @@ CREATE TABLE "BLADE_DATASOURCE" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -166,8 +166,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -214,7 +214,7 @@ CREATE TABLE "BLADE_DEPT" (
"FULL_NAME" NVARCHAR2(45) ,
"SORT" NUMBER(11) ,
"REMARK" NVARCHAR2(255) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -222,8 +222,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -264,7 +264,7 @@ CREATE TABLE "BLADE_DICT" (
"DICT_VALUE" NVARCHAR2(255) ,
"SORT" NUMBER(11) ,
"REMARK" NVARCHAR2(255) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -272,8 +272,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -361,7 +361,7 @@ CREATE TABLE "BLADE_LOG_API" (
"PARAMS" NCLOB ,
"TIME" NVARCHAR2(64) ,
"CREATE_BY" NVARCHAR2(64) ,
"CREATE_TIME" DATE
"CREATE_TIME" DATE
)
TABLESPACE "BLADEX"
LOGGING
@ -369,8 +369,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -422,7 +422,7 @@ CREATE TABLE "BLADE_LOG_ERROR" (
"METHOD_NAME" NVARCHAR2(255) ,
"PARAMS" NCLOB ,
"CREATE_BY" NVARCHAR2(64) ,
"CREATE_TIME" DATE
"CREATE_TIME" DATE
)
TABLESPACE "BLADEX"
LOGGING
@ -430,8 +430,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -480,7 +480,7 @@ CREATE TABLE "BLADE_LOG_USUAL" (
"USER_AGENT" NVARCHAR2(1000) ,
"PARAMS" NCLOB ,
"CREATE_BY" NVARCHAR2(64) ,
"CREATE_TIME" DATE
"CREATE_TIME" DATE
)
TABLESPACE "BLADEX"
LOGGING
@ -488,8 +488,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -532,7 +532,7 @@ CREATE TABLE "BLADE_MENU" (
"ACTION" NUMBER(11) ,
"IS_OPEN" NUMBER(11) ,
"REMARK" NVARCHAR2(255) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -540,8 +540,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -688,6 +688,10 @@ INSERT INTO "BLADE_MENU" VALUES ('1161272593873321992', '1161272593873321991', '
INSERT INTO "BLADE_MENU" VALUES ('1161272593873321993', '1161272593873321991', 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', '2', '2', '2', '2', NULL, '0');
INSERT INTO "BLADE_MENU" VALUES ('1161272593873321994', '1161272593873321991', 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', '3', '2', '3', '3', NULL, '0');
INSERT INTO "BLADE_MENU" VALUES ('1161272593873321995', '1161272593873321991', 'datasource_view', '查看', 'view', '/tool/datasource/view', 'file-text', '4', '2', '2', '2', NULL, '0');
INSERT INTO "BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1164733121140551682', '1123598815738675217', 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', 3, 1, 0, 2, '', 0);
INSERT INTO "BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1164733349637844993', '1123598815738675217', 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', 4, 1, 0, 2, '', 0);
COMMIT;
-- ----------------------------
@ -707,7 +711,7 @@ CREATE TABLE "BLADE_NOTICE" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -715,8 +719,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -767,7 +771,7 @@ CREATE TABLE "BLADE_OSS" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -775,8 +779,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -825,7 +829,7 @@ CREATE TABLE "BLADE_PARAM" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -833,8 +837,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -883,7 +887,7 @@ CREATE TABLE "BLADE_PROCESS_LEAVE" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -891,8 +895,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -929,7 +933,7 @@ CREATE TABLE "BLADE_ROLE" (
"ROLE_NAME" NVARCHAR2(255) ,
"SORT" NUMBER(11) ,
"ROLE_ALIAS" NVARCHAR2(255) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -937,8 +941,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -973,7 +977,7 @@ COMMIT;
CREATE TABLE "BLADE_ROLE_MENU" (
"ID" NUMBER(20) NOT NULL ,
"MENU_ID" NUMBER(20) ,
"ROLE_ID" NUMBER(20)
"ROLE_ID" NUMBER(20)
)
TABLESPACE "BLADEX"
LOGGING
@ -981,8 +985,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1216,6 +1220,10 @@ INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322992', '116127259387332199
INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322993', '1161272593873321993', '1123598816738675201');
INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322994', '1161272593873321994', '1123598816738675201');
INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322995', '1161272593873321995', '1123598816738675201');
INSERT INTO "BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID)
VALUES ('1161272593873322996', '1164733121140551682', '1123598816738675201');
INSERT INTO "BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID)
VALUES ('1161272593873322997', '1164733349637844993', '1123598816738675201');
COMMIT;
-- ----------------------------
@ -1226,7 +1234,7 @@ CREATE TABLE "BLADE_ROLE_SCOPE" (
"ID" NUMBER(20) NOT NULL ,
"SCOPE_CATEGORY" NUMBER(11) ,
"SCOPE_ID" NUMBER(20) ,
"ROLE_ID" NUMBER(20)
"ROLE_ID" NUMBER(20)
)
TABLESPACE "BLADEX"
LOGGING
@ -1234,8 +1242,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1268,7 +1276,7 @@ CREATE TABLE "BLADE_SCOPE_API" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -1276,8 +1284,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1323,7 +1331,7 @@ CREATE TABLE "BLADE_SCOPE_DATA" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -1331,8 +1339,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1377,7 +1385,7 @@ CREATE TABLE "BLADE_TENANT" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -1385,8 +1393,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1433,7 +1441,7 @@ CREATE TABLE "BLADE_TOP_MENU" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -1441,8 +1449,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1473,7 +1481,7 @@ COMMENT ON TABLE "BLADE_TOP_MENU" IS '顶部菜单表';
CREATE TABLE "BLADE_TOP_MENU_SETTING" (
"ID" NUMBER(20) NOT NULL ,
"TOP_MENU_ID" NUMBER(20) ,
"MENU_ID" NUMBER(20)
"MENU_ID" NUMBER(20)
)
TABLESPACE "BLADEX"
LOGGING
@ -1481,8 +1489,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1520,7 +1528,7 @@ CREATE TABLE "BLADE_USER" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -1528,8 +1536,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT

140
doc/sql/oracle/bladex-sword-oracle.sql

@ -38,7 +38,7 @@ CREATE TABLE "BLADE_CLIENT" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) NOT NULL ,
"IS_DELETED" NUMBER(11) NOT NULL
"IS_DELETED" NUMBER(11) NOT NULL
)
TABLESPACE "BLADEX"
LOGGING
@ -46,8 +46,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -109,8 +109,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -137,7 +137,7 @@ COMMENT ON TABLE "BLADE_CODE" IS '代码生成表';
-- ----------------------------
-- Records of BLADE_CODE
-- ----------------------------
INSERT INTO "BLADE_CODE" VALUES ('1123598812738675201', '1161483357481541634', 'blade-demo', '通知公告', 'BLADE_NOTICE', 'blade_', 'id', 'org.springblade.desktop', '1', '1', 'D:\Develop\WorkSpace\Git\SpringBlade\blade-ops\blade-develop', 'D:\Develop\WorkSpace\Git\Sword', '0');
INSERT INTO "BLADE_CODE" VALUES ('1123598812738675201', '1161483357481541634', 'blade-demo', '通知公告', 'BLADE_NOTICE', 'blade_', 'ID', 'org.springblade.desktop', '1', '1', 'D:\Develop\WorkSpace\Git\SpringBlade\blade-ops\blade-develop', 'D:\Develop\WorkSpace\Git\Sword', '0');
COMMIT;
-- ----------------------------
@ -158,7 +158,7 @@ CREATE TABLE "BLADE_DATASOURCE" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -166,8 +166,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -214,7 +214,7 @@ CREATE TABLE "BLADE_DEPT" (
"FULL_NAME" NVARCHAR2(45) ,
"SORT" NUMBER(11) ,
"REMARK" NVARCHAR2(255) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -222,8 +222,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -264,7 +264,7 @@ CREATE TABLE "BLADE_DICT" (
"DICT_VALUE" NVARCHAR2(255) ,
"SORT" NUMBER(11) ,
"REMARK" NVARCHAR2(255) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -272,8 +272,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -361,7 +361,7 @@ CREATE TABLE "BLADE_LOG_API" (
"PARAMS" NCLOB ,
"TIME" NVARCHAR2(64) ,
"CREATE_BY" NVARCHAR2(64) ,
"CREATE_TIME" DATE
"CREATE_TIME" DATE
)
TABLESPACE "BLADEX"
LOGGING
@ -369,8 +369,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -422,7 +422,7 @@ CREATE TABLE "BLADE_LOG_ERROR" (
"METHOD_NAME" NVARCHAR2(255) ,
"PARAMS" NCLOB ,
"CREATE_BY" NVARCHAR2(64) ,
"CREATE_TIME" DATE
"CREATE_TIME" DATE
)
TABLESPACE "BLADEX"
LOGGING
@ -430,8 +430,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -480,7 +480,7 @@ CREATE TABLE "BLADE_LOG_USUAL" (
"USER_AGENT" NVARCHAR2(1000) ,
"PARAMS" NCLOB ,
"CREATE_BY" NVARCHAR2(64) ,
"CREATE_TIME" DATE
"CREATE_TIME" DATE
)
TABLESPACE "BLADEX"
LOGGING
@ -488,8 +488,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -532,7 +532,7 @@ CREATE TABLE "BLADE_MENU" (
"ACTION" NUMBER(11) ,
"IS_OPEN" NUMBER(11) ,
"REMARK" NVARCHAR2(255) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -540,8 +540,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -688,6 +688,10 @@ INSERT INTO "BLADE_MENU" VALUES ('1161272593873321992', '1161272593873321991', '
INSERT INTO "BLADE_MENU" VALUES ('1161272593873321993', '1161272593873321991', 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', '2', '2', '2', '2', NULL, '0');
INSERT INTO "BLADE_MENU" VALUES ('1161272593873321994', '1161272593873321991', 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', '3', '2', '3', '3', NULL, '0');
INSERT INTO "BLADE_MENU" VALUES ('1161272593873321995', '1161272593873321991', 'datasource_view', '查看', 'view', '/tool/datasource/view', 'file-text', '4', '2', '2', '2', NULL, '0');
INSERT INTO "BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1164733121140551682', '1123598815738675217', 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', 3, 1, 0, 2, '', 0);
INSERT INTO "BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1164733349637844993', '1123598815738675217', 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', 4, 1, 0, 2, '', 0);
COMMIT;
-- ----------------------------
@ -707,7 +711,7 @@ CREATE TABLE "BLADE_NOTICE" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -715,8 +719,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -767,7 +771,7 @@ CREATE TABLE "BLADE_OSS" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -775,8 +779,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -825,7 +829,7 @@ CREATE TABLE "BLADE_PARAM" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -833,8 +837,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -883,7 +887,7 @@ CREATE TABLE "BLADE_PROCESS_LEAVE" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -891,8 +895,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -929,7 +933,7 @@ CREATE TABLE "BLADE_ROLE" (
"ROLE_NAME" NVARCHAR2(255) ,
"SORT" NUMBER(11) ,
"ROLE_ALIAS" NVARCHAR2(255) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -937,8 +941,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -973,7 +977,7 @@ COMMIT;
CREATE TABLE "BLADE_ROLE_MENU" (
"ID" NUMBER(20) NOT NULL ,
"MENU_ID" NUMBER(20) ,
"ROLE_ID" NUMBER(20)
"ROLE_ID" NUMBER(20)
)
TABLESPACE "BLADEX"
LOGGING
@ -981,8 +985,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1216,6 +1220,10 @@ INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322992', '116127259387332199
INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322993', '1161272593873321993', '1123598816738675201');
INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322994', '1161272593873321994', '1123598816738675201');
INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322995', '1161272593873321995', '1123598816738675201');
INSERT INTO "BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID)
VALUES ('1161272593873322996', '1164733121140551682', '1123598816738675201');
INSERT INTO "BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID)
VALUES ('1161272593873322997', '1164733349637844993', '1123598816738675201');
COMMIT;
-- ----------------------------
@ -1226,7 +1234,7 @@ CREATE TABLE "BLADE_ROLE_SCOPE" (
"ID" NUMBER(20) NOT NULL ,
"SCOPE_CATEGORY" NUMBER(11) ,
"SCOPE_ID" NUMBER(20) ,
"ROLE_ID" NUMBER(20)
"ROLE_ID" NUMBER(20)
)
TABLESPACE "BLADEX"
LOGGING
@ -1234,8 +1242,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1268,7 +1276,7 @@ CREATE TABLE "BLADE_SCOPE_API" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -1276,8 +1284,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1323,7 +1331,7 @@ CREATE TABLE "BLADE_SCOPE_DATA" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -1331,8 +1339,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1377,7 +1385,7 @@ CREATE TABLE "BLADE_TENANT" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -1385,8 +1393,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1433,7 +1441,7 @@ CREATE TABLE "BLADE_TOP_MENU" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -1441,8 +1449,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1473,7 +1481,7 @@ COMMENT ON TABLE "BLADE_TOP_MENU" IS '顶部菜单表';
CREATE TABLE "BLADE_TOP_MENU_SETTING" (
"ID" NUMBER(20) NOT NULL ,
"TOP_MENU_ID" NUMBER(20) ,
"MENU_ID" NUMBER(20)
"MENU_ID" NUMBER(20)
)
TABLESPACE "BLADEX"
LOGGING
@ -1481,8 +1489,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT
@ -1520,7 +1528,7 @@ CREATE TABLE "BLADE_USER" (
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
LOGGING
@ -1528,8 +1536,8 @@ NOCOMPRESS
PCTFREE 10
INITRANS 1
STORAGE (
INITIAL 65536
NEXT 1048576
INITIAL 65536
NEXT 1048576
MINEXTENTS 1
MAXEXTENTS 2147483645
BUFFER_POOL DEFAULT

8
doc/sql/postgresql/bladex-saber-postgresql.sql

@ -560,6 +560,10 @@ INSERT INTO "blade_menu" VALUES (1161272593873321992, 1161272593873321991, 'data
INSERT INTO "blade_menu" VALUES (1161272593873321993, 1161272593873321991, 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', 2, 2, 2, 2, NULL, 0);
INSERT INTO "blade_menu" VALUES (1161272593873321994, 1161272593873321991, 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', 3, 2, 3, 3, NULL, 0);
INSERT INTO "blade_menu" VALUES (1161272593873321995, 1161272593873321991, 'datasource_view', '查看', 'view', '/tool/datasource/view', 'file-text', 4, 2, 2, 2, NULL, 0);
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1164733121140551682', '1123598815738675217', 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', 3, 1, 0, 2, '', 0);
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1164733349637844993', '1123598815738675217', 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', 4, 1, 0, 2, '', 0);
COMMIT;
-- ----------------------------
@ -1003,6 +1007,10 @@ INSERT INTO "blade_role_menu" VALUES (1161272593873322992, 1161272593873321992,
INSERT INTO "blade_role_menu" VALUES (1161272593873322993, 1161272593873321993, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272593873322994, 1161272593873321994, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272593873322995, 1161272593873321995, 1123598816738675201);
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272593873322996', '1164733121140551682', '1123598816738675201');
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272593873322997', '1164733349637844993', '1123598816738675201');
COMMIT;
-- ----------------------------

8
doc/sql/postgresql/bladex-sword-postgresql.sql

@ -560,6 +560,10 @@ INSERT INTO "blade_menu" VALUES (1161272593873321992, 1161272593873321991, 'data
INSERT INTO "blade_menu" VALUES (1161272593873321993, 1161272593873321991, 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', 2, 2, 2, 2, NULL, 0);
INSERT INTO "blade_menu" VALUES (1161272593873321994, 1161272593873321991, 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', 3, 2, 3, 3, NULL, 0);
INSERT INTO "blade_menu" VALUES (1161272593873321995, 1161272593873321991, 'datasource_view', '查看', 'view', '/tool/datasource/view', 'file-text', 4, 2, 2, 2, NULL, 0);
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1164733121140551682', '1123598815738675217', 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', 3, 1, 0, 2, '', 0);
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1164733349637844993', '1123598815738675217', 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', 4, 1, 0, 2, '', 0);
COMMIT;
-- ----------------------------
@ -1003,6 +1007,10 @@ INSERT INTO "blade_role_menu" VALUES (1161272593873322992, 1161272593873321992,
INSERT INTO "blade_role_menu" VALUES (1161272593873322993, 1161272593873321993, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272593873322994, 1161272593873321994, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272593873322995, 1161272593873321995, 1123598816738675201);
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272593873322996', '1164733121140551682', '1123598816738675201');
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272593873322997', '1164733349637844993', '1123598816738675201');
COMMIT;
-- ----------------------------

75
doc/sql/update/mysql-update-2.0.6~2.0.7.sql

@ -1,75 +0,0 @@
-- ----------------------------
-- 用户表增加头像字段
-- ----------------------------
ALTER TABLE `blade_user`
ADD COLUMN `avatar` varchar(500) NULL COMMENT '头像' AFTER `real_name`;
-- ----------------------------
-- 创建数据源配置表
-- ----------------------------
CREATE TABLE `blade_datasource` (
`id` bigint(64) NOT NULL COMMENT '主键',
`name` varchar(100) NULL COMMENT '名称',
`driver_class` varchar(100) NULL COMMENT '驱动类',
`url` varchar(500) NULL COMMENT '连接地址',
`username` varchar(50) NULL COMMENT '用户名',
`password` varchar(50) NULL COMMENT '密码',
`remark` varchar(255) NULL COMMENT '备注',
`create_user` bigint(64) NULL DEFAULT NULL COMMENT '创建人',
`create_dept` bigint(64) NULL DEFAULT NULL COMMENT '创建部门',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_user` bigint(64) NULL DEFAULT NULL COMMENT '修改人',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间',
`status` int(2) NULL DEFAULT NULL COMMENT '状态',
`is_deleted` int(2) NULL DEFAULT NULL COMMENT '是否已删除',
PRIMARY KEY (`id`)
) COMMENT = '数据源配置表' ;
-- ----------------------------
-- 插入数据源默认数据
-- ----------------------------
INSERT INTO `blade_datasource`(`id`, `name`, `driver_class`, `url`, `username`, `password`, `remark`, `create_user`, `create_dept`, `create_time`, `update_user`, `update_time`, `status`, `is_deleted`) VALUES (1161483357481541634, 'mysql', 'com.mysql.cj.jdbc.Driver', 'jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true', 'root', 'root', 'mysql', 1123598821738675201, 1123598813738675201, '2019-08-14 11:43:06', 1123598821738675201, '2019-08-14 11:43:06', 1, 0);
INSERT INTO `blade_datasource`(`id`, `name`, `driver_class`, `url`, `username`, `password`, `remark`, `create_user`, `create_dept`, `create_time`, `update_user`, `update_time`, `status`, `is_deleted`) VALUES (1161483504353484802, 'postgresql', 'org.postgresql.Driver', 'jdbc:postgresql://127.0.0.1:5432/bladex', 'postgres', '123456', 'postgresql', 1123598821738675201, 1123598813738675201, '2019-08-14 11:43:41', 1123598821738675201, '2019-08-14 11:43:41', 1, 0);
INSERT INTO `blade_datasource`(`id`, `name`, `driver_class`, `url`, `username`, `password`, `remark`, `create_user`, `create_dept`, `create_time`, `update_user`, `update_time`, `status`, `is_deleted`) VALUES (1161483594023510018, 'oracle', 'oracle.jdbc.OracleDriver', 'jdbc:oracle:thin:@127.0.0.1:49161:orcl', 'BLADEX', 'bladex', 'oracle', 1123598821738675201, 1123598813738675201, '2019-08-14 11:44:03', 1123598821738675201, '2019-08-14 11:44:03', 1, 0);
-- ----------------------------
-- 插入数据源菜单数据
-- ----------------------------
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1161272593873321991', '1123598815738675217', 'datasource', '数据源管理', 'menu', '/tool/datasource', 'iconfont icon-caidanguanli', 2, 1, 0, 1, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1161272593873321992', '1161272593873321991', 'datasource_add', '新增', 'add', '/tool/datasource/add', 'plus', 1, 2, 1, 1, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1161272593873321993', '1161272593873321991', 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', 2, 2, 2, 2, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1161272593873321994', '1161272593873321991', 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', 3, 2, 3, 3, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1161272593873321995', '1161272593873321991', 'datasource_view', '查看', 'view', '/tool/datasource/view', 'file-text', 4, 2, 2, 2, NULL, 0);
-- ----------------------------
-- 插入数据源角色权限数据
-- ----------------------------
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272593873322991', '1161272593873321991', '1123598816738675201');
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272593873322992', '1161272593873321992', '1123598816738675201');
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272593873322993', '1161272593873321993', '1123598816738675201');
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272593873322994', '1161272593873321994', '1123598816738675201');
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272593873322995', '1161272593873321995', '1123598816738675201');
-- ----------------------------
-- 代码生成表增加数据源字段
-- ----------------------------
ALTER TABLE `blade_code`
ADD COLUMN `datasource_id` bigint(64) NULL COMMENT '数据源主键' AFTER `id`,
ADD COLUMN `base_mode` int(2) NULL COMMENT '基础业务模式' AFTER `package_name`,
ADD COLUMN `wrap_mode` int(2) NULL COMMENT '包装器模式' AFTER `base_mode`;
-- ----------------------------
-- 代码生成记录增加数据源字段
-- ----------------------------
UPDATE `blade_code` SET `datasource_id` = 1161483357481541634, `base_mode` = 1, `wrap_mode` = 1 WHERE `id` = 1123598812738675201;

16
doc/sql/update/mysql-update-2.0.7~2.0.8.sql

@ -0,0 +1,16 @@
-- ----------------------------
-- 插入菜单数据
-- ----------------------------
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1164733121140551682', '1123598815738675217', 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', 3, 1, 0, 2, '', 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1164733349637844993', '1123598815738675217', 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', 4, 1, 0, 2, '', 0);
-- ----------------------------
-- 插入数据源角色权限数据
-- ----------------------------
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272593873322996', '1164733121140551682', '1123598816738675201');
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272593873322997', '1164733349637844993', '1123598816738675201');

97
doc/sql/update/oracle-update-2.0.6~2.0.7.sql

@ -1,97 +0,0 @@
ALTER TABLE "BLADEX"."BLADE_USER"
ADD ("AVATAR" VARCHAR2(500) );
COMMENT ON COLUMN "BLADEX"."BLADE_USER"."AVATAR" IS '头像'
CREATE TABLE "BLADE_DATASOURCE" (
"ID" NUMBER(20) NOT NULL ,
"NAME" NVARCHAR2(100) ,
"DRIVER_CLASS" NVARCHAR2(100) ,
"URL" NVARCHAR2(500) ,
"USERNAME" NVARCHAR2(45) ,
"PASSWORD" NVARCHAR2(45) ,
"REMARK" NVARCHAR2(500) ,
"CREATE_USER" NUMBER(20) ,
"CREATE_DEPT" NUMBER(20) ,
"CREATE_TIME" DATE ,
"UPDATE_USER" NUMBER(20) ,
"UPDATE_TIME" DATE ,
"STATUS" NUMBER(11) ,
"IS_DELETED" NUMBER(11),
PRIMARY KEY ("ID")
);
COMMENT ON COLUMN "BLADE_DATASOURCE"."ID" IS '主键';
COMMENT ON COLUMN "BLADE_DATASOURCE"."NAME" IS '名称';
COMMENT ON COLUMN "BLADE_DATASOURCE"."DRIVER_CLASS" IS '驱动类';
COMMENT ON COLUMN "BLADE_DATASOURCE"."URL" IS '链接地址';
COMMENT ON COLUMN "BLADE_DATASOURCE"."USERNAME" IS '用户名';
COMMENT ON COLUMN "BLADE_DATASOURCE"."PASSWORD" IS '密码';
COMMENT ON COLUMN "BLADE_DATASOURCE"."REMARK" IS '备注';
COMMENT ON COLUMN "BLADE_DATASOURCE"."CREATE_USER" IS '创建人';
COMMENT ON COLUMN "BLADE_DATASOURCE"."CREATE_DEPT" IS '创建部门';
COMMENT ON COLUMN "BLADE_DATASOURCE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "BLADE_DATASOURCE"."UPDATE_USER" IS '修改人';
COMMENT ON COLUMN "BLADE_DATASOURCE"."UPDATE_TIME" IS '修改时间';
COMMENT ON COLUMN "BLADE_DATASOURCE"."STATUS" IS '状态';
COMMENT ON COLUMN "BLADE_DATASOURCE"."IS_DELETED" IS '是否已删除';
COMMENT ON TABLE "BLADE_DATASOURCE" IS '数据源配置表';
-- ----------------------------
-- 插入数据源默认数据
-- ----------------------------
INSERT INTO "BLADEX"."BLADE_DATASOURCE"("ID", "NAME", "DRIVER_CLASS", "URL", "USERNAME", "PASSWORD", "REMARK", "CREATE_USER", "CREATE_DEPT", "CREATE_TIME", "UPDATE_USER", "UPDATE_TIME", "STATUS", "IS_DELETED")
VALUES (1161483357481541634, 'mysql', 'com.mysql.cj.jdbc.Driver', 'jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true', 'root', 'root', 'mysql', 1123598821738675201, 1123598813738675201, TO_DATE('2019-08-14 11:43:06', 'SYYYY-MM-DD HH24:MI:SS'), 1123598821738675201, TO_DATE('2019-08-14 11:43:06', 'SYYYY-MM-DD HH24:MI:SS'), 1, 0);
INSERT INTO "BLADEX"."BLADE_DATASOURCE"("ID", "NAME", "DRIVER_CLASS", "URL", "USERNAME", "PASSWORD", "REMARK", "CREATE_USER", "CREATE_DEPT", "CREATE_TIME", "UPDATE_USER", "UPDATE_TIME", "STATUS", "IS_DELETED")
VALUES (1161483504353484802, 'postgresql', 'org.postgresql.Driver', 'jdbc:postgresql://127.0.0.1:5432/bladex', 'postgres', '123456', 'postgresql', 1123598821738675201, 1123598813738675201, TO_DATE('2019-08-14 11:43:41', 'SYYYY-MM-DD HH24:MI:SS'), 1123598821738675201, TO_DATE('2019-08-14 11:43:41', 'SYYYY-MM-DD HH24:MI:SS'), 1, 0);
INSERT INTO "BLADEX"."BLADE_DATASOURCE"("ID", "NAME", "DRIVER_CLASS", "URL", "USERNAME", "PASSWORD", "REMARK", "CREATE_USER", "CREATE_DEPT", "CREATE_TIME", "UPDATE_USER", "UPDATE_TIME", "STATUS", "IS_DELETED")
VALUES (1161483594023510018, 'oracle', 'oracle.jdbc.OracleDriver', 'jdbc:oracle:thin:@127.0.0.1:49161:orcl', 'BLADEX', 'bladex', 'oracle', 1123598821738675201, 1123598813738675201, TO_DATE('2019-08-14 11:44:03', 'SYYYY-MM-DD HH24:MI:SS'), 1123598821738675201, TO_DATE('2019-08-14 11:44:03', 'SYYYY-MM-DD HH24:MI:SS'), 1, 0);
-- ----------------------------
-- 插入数据源菜单数据
-- ----------------------------
INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1161272593873321991', '1123598815738675217', 'datasource', '数据源管理', 'menu', '/tool/datasource', 'iconfont icon-caidanguanli', 2, 1, 0, 1, NULL, 0);
INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1161272593873321992', '1161272593873321991', 'datasource_add', '新增', 'add', '/tool/datasource/add', 'plus', 1, 2, 1, 1, NULL, 0);
INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1161272593873321993', '1161272593873321991', 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', 2, 2, 2, 2, NULL, 0);
INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1161272593873321994', '1161272593873321991', 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', 3, 2, 3, 3, NULL, 0);
INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1161272593873321995', '1161272593873321991', 'datasource_view', '查看', 'view', '/tool/datasource/view', 'file-text', 4, 2, 2, 2, NULL, 0);
-- ----------------------------
-- 插入数据源角色权限数据
-- ----------------------------
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID)
VALUES ('1161272593873322991', '1161272593873321991', '1123598816738675201');
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID)
VALUES ('1161272593873322992', '1161272593873321992', '1123598816738675201');
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID)
VALUES ('1161272593873322993', '1161272593873321993', '1123598816738675201');
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID)
VALUES ('1161272593873322994', '1161272593873321994', '1123598816738675201');
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID)
VALUES ('1161272593873322995', '1161272593873321995', '1123598816738675201');
-- ----------------------------
-- 代码生成表增加数据源字段
-- ----------------------------
ALTER TABLE "BLADEX"."BLADE_CODE"
ADD ("DATASOURCE_ID" NUMBER(20) )
ADD ("BASE_MODE" NUMBER(11) )
ADD ("WRAP_MODE" NUMBER(11) );
COMMENT ON COLUMN "BLADE_CODE"."DATASOURCE_ID" IS '数据源主键';
COMMENT ON COLUMN "BLADE_CODE"."BASE_MODE" IS '基础业务模式';
COMMENT ON COLUMN "BLADE_CODE"."WRAP_MODE" IS '包装器模式';
-- ----------------------------
-- 代码生成记录增加数据源字段
-- ----------------------------
UPDATE "BLADEX"."BLADE_CODE" SET "DATASOURCE_ID" = 1161483357481541634, "BASE_MODE" = 1, "WRAP_MODE" = 1 WHERE "ID" = 1123598812738675201;

17
doc/sql/update/oracle-update-2.0.7~2.0.8.sql

@ -0,0 +1,17 @@
-- ----------------------------
-- 插入菜单数据
-- ----------------------------
INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1164733121140551682', '1123598815738675217', 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', 3, 1, 0, 2, '', 0);
INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1164733349637844993', '1123598815738675217', 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', 4, 1, 0, 2, '', 0);
-- ----------------------------
-- 插入数据源角色权限数据
-- ----------------------------
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID)
VALUES ('1161272593873322996', '1164733121140551682', '1123598816738675201');
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID)
VALUES ('1161272593873322997', '1164733349637844993', '1123598816738675201');

103
doc/sql/update/postgresql-update-2.0.6~2.0.7.sql

@ -1,103 +0,0 @@
-- ----------------------------
-- 用户表增加头像字段
-- ----------------------------
ALTER TABLE "public"."blade_user"
ADD COLUMN "avatar" varchar(500);
COMMENT ON COLUMN "public"."blade_user"."avatar" IS '头像';
-- ----------------------------
-- 创建数据源配置表
-- ----------------------------
DROP TABLE IF EXISTS "blade_datasource";
CREATE TABLE "blade_datasource" (
"id" int8 NOT NULL,
"name" varchar(100) COLLATE "pg_catalog"."default",
"driver_class" varchar(100) COLLATE "pg_catalog"."default",
"url" varchar(500) COLLATE "pg_catalog"."default",
"username" varchar(45) COLLATE "pg_catalog"."default",
"password" varchar(45) COLLATE "pg_catalog"."default",
"remark" varchar(500) COLLATE "pg_catalog"."default",
"create_user" int8,
"create_dept" int8,
"create_time" timestamp(6),
"update_user" int8,
"update_time" timestamp(6),
"status" int4,
"is_deleted" int4
)
;
COMMENT ON COLUMN "blade_datasource"."id" IS '主键';
COMMENT ON COLUMN "blade_datasource"."name" IS '名称';
COMMENT ON COLUMN "blade_datasource"."driver_class" IS '驱动类';
COMMENT ON COLUMN "blade_datasource"."url" IS '链接地址';
COMMENT ON COLUMN "blade_datasource"."username" IS '用户名';
COMMENT ON COLUMN "blade_datasource"."password" IS '密码';
COMMENT ON COLUMN "blade_datasource"."remark" IS '备注';
COMMENT ON COLUMN "blade_datasource"."create_user" IS '创建人';
COMMENT ON COLUMN "blade_datasource"."create_dept" IS '创建部门';
COMMENT ON COLUMN "blade_datasource"."create_time" IS '创建时间';
COMMENT ON COLUMN "blade_datasource"."update_user" IS '修改人';
COMMENT ON COLUMN "blade_datasource"."update_time" IS '修改时间';
COMMENT ON COLUMN "blade_datasource"."status" IS '状态';
COMMENT ON COLUMN "blade_datasource"."is_deleted" IS '是否已删除';
COMMENT ON TABLE "blade_datasource" IS '数据源配置表';
-- ----------------------------
-- 插入数据源默认数据
-- ----------------------------
INSERT INTO "blade_datasource"("id", "name", "driver_class", "url", "username", "password", "remark", "create_user", "create_dept", "create_time", "update_user", "update_time", "status", "is_deleted") VALUES (1161483357481541634, 'mysql', 'com.mysql.cj.jdbc.Driver', 'jdbc:mysql://localhost:3306/bladex?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true', 'root', 'root', 'mysql', 1123598821738675201, 1123598813738675201, '2019-08-14 11:43:06', 1123598821738675201, '2019-08-14 11:43:06', 1, 0);
INSERT INTO "blade_datasource"("id", "name", "driver_class", "url", "username", "password", "remark", "create_user", "create_dept", "create_time", "update_user", "update_time", "status", "is_deleted") VALUES (1161483504353484802, 'postgresql', 'org.postgresql.Driver', 'jdbc:postgresql://127.0.0.1:5432/bladex', 'postgres', '123456', 'postgresql', 1123598821738675201, 1123598813738675201, '2019-08-14 11:43:41', 1123598821738675201, '2019-08-14 11:43:41', 1, 0);
INSERT INTO "blade_datasource"("id", "name", "driver_class", "url", "username", "password", "remark", "create_user", "create_dept", "create_time", "update_user", "update_time", "status", "is_deleted") VALUES (1161483594023510018, 'oracle', 'oracle.jdbc.OracleDriver', 'jdbc:oracle:thin:@127.0.0.1:49161:orcl', 'BLADEX', 'bladex', 'oracle', 1123598821738675201, 1123598813738675201, '2019-08-14 11:44:03', 1123598821738675201, '2019-08-14 11:44:03', 1, 0);
-- ----------------------------
-- 设置主键
-- ----------------------------
ALTER TABLE "blade_datasource" ADD CONSTRAINT "blade_datasource_pkey" PRIMARY KEY ("id");
-- ----------------------------
-- 插入数据源菜单数据
-- ----------------------------
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1161272593873321991', '1123598815738675217', 'datasource', '数据源管理', 'menu', '/tool/datasource', 'iconfont icon-caidanguanli', 2, 1, 0, 1, NULL, 0);
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1161272593873321992', '1161272593873321991', 'datasource_add', '新增', 'add', '/tool/datasource/add', 'plus', 1, 2, 1, 1, NULL, 0);
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1161272593873321993', '1161272593873321991', 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', 2, 2, 2, 2, NULL, 0);
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1161272593873321994', '1161272593873321991', 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', 3, 2, 3, 3, NULL, 0);
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1161272593873321995', '1161272593873321991', 'datasource_view', '查看', 'view', '/tool/datasource/view', 'file-text', 4, 2, 2, 2, NULL, 0);
-- ----------------------------
-- 插入数据源角色权限数据
-- ----------------------------
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272593873322991', '1161272593873321991', '1123598816738675201');
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272593873322992', '1161272593873321992', '1123598816738675201');
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272593873322993', '1161272593873321993', '1123598816738675201');
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272593873322994', '1161272593873321994', '1123598816738675201');
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272593873322995', '1161272593873321995', '1123598816738675201');
-- ----------------------------
-- 代码生成表增加数据源字段
-- ----------------------------
ALTER TABLE "public"."blade_code"
ADD COLUMN "datasource_id" int8,
ADD COLUMN "base_mode" int2,
ADD COLUMN "wrap_mode" int2;
COMMENT ON COLUMN "public"."blade_code"."datasource_id" IS '数据源主键';
COMMENT ON COLUMN "public"."blade_code"."base_mode" IS '基础业务模式';
COMMENT ON COLUMN "public"."blade_code"."wrap_mode" IS '包装器模式';
-- ----------------------------
-- 代码生成记录增加数据源字段
-- ----------------------------
UPDATE "blade_code" SET "datasource_id" = 1161483357481541634, "base_mode" = 1, "wrap_mode" = 1 WHERE "id" = 1123598812738675201;

16
doc/sql/update/postgresql-update-2.0.7~2.0.8.sql

@ -0,0 +1,16 @@
-- ----------------------------
-- 插入菜单数据
-- ----------------------------
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1164733121140551682', '1123598815738675217', 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', 3, 1, 0, 2, '', 0);
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1164733349637844993', '1123598815738675217', 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', 4, 1, 0, 2, '', 0);
-- ----------------------------
-- 插入数据源角色权限数据
-- ----------------------------
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272593873322996', '1164733121140551682', '1123598816738675201');
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272593873322997', '1164733349637844993', '1123598816738675201');
Loading…
Cancel
Save