init: init proj
This commit is contained in:
150
script/sql/update/postgres/update_5.0-5.1.sql
Normal file
150
script/sql/update/postgres/update_5.0-5.1.sql
Normal file
@@ -0,0 +1,150 @@
|
||||
ALTER TABLE gen_table ADD data_name varchar(200) default ''::varchar;
|
||||
|
||||
COMMENT ON COLUMN gen_table.data_name IS '数据源名称';
|
||||
|
||||
UPDATE sys_menu SET path = 'powerjob', component = 'monitor/powerjob/index', perms = 'monitor:powerjob:list', remark = 'powerjob控制台菜单' WHERE menu_id = 120;
|
||||
|
||||
-- ----------------------------
|
||||
-- 第三方平台授权表
|
||||
-- ----------------------------
|
||||
create table sys_social
|
||||
(
|
||||
id int8 not null,
|
||||
user_id int8 not null,
|
||||
tenant_id varchar(20) default null::varchar,
|
||||
auth_id varchar(255) not null,
|
||||
source varchar(255) not null,
|
||||
open_id varchar(255) default null::varchar,
|
||||
user_name varchar(30) not null,
|
||||
nick_name varchar(30) default ''::varchar,
|
||||
email varchar(255) default ''::varchar,
|
||||
avatar varchar(500) default ''::varchar,
|
||||
access_token varchar(255) not null,
|
||||
expire_in int8 default null,
|
||||
refresh_token varchar(255) default null::varchar,
|
||||
access_code varchar(255) default null::varchar,
|
||||
union_id varchar(255) default null::varchar,
|
||||
scope varchar(255) default null::varchar,
|
||||
token_type varchar(255) default null::varchar,
|
||||
id_token varchar(255) default null::varchar,
|
||||
mac_algorithm varchar(255) default null::varchar,
|
||||
mac_key varchar(255) default null::varchar,
|
||||
code varchar(255) default null::varchar,
|
||||
oauth_token varchar(255) default null::varchar,
|
||||
oauth_token_secret varchar(255) default null::varchar,
|
||||
create_dept int8,
|
||||
create_by int8,
|
||||
create_time timestamp,
|
||||
update_by int8,
|
||||
update_time timestamp,
|
||||
del_flag char default '0'::bpchar,
|
||||
constraint "pk_sys_social" primary key (id)
|
||||
);
|
||||
|
||||
comment on table sys_social is '社会化关系表';
|
||||
comment on column sys_social.id is '主键';
|
||||
comment on column sys_social.user_id is '用户ID';
|
||||
comment on column sys_social.tenant_id is '租户id';
|
||||
comment on column sys_social.auth_id is '平台+平台唯一id';
|
||||
comment on column sys_social.source is '用户来源';
|
||||
comment on column sys_social.open_id is '平台编号唯一id';
|
||||
comment on column sys_social.user_name is '登录账号';
|
||||
comment on column sys_social.nick_name is '用户昵称';
|
||||
comment on column sys_social.email is '用户邮箱';
|
||||
comment on column sys_social.avatar is '头像地址';
|
||||
comment on column sys_social.access_token is '用户的授权令牌';
|
||||
comment on column sys_social.expire_in is '用户的授权令牌的有效期,部分平台可能没有';
|
||||
comment on column sys_social.refresh_token is '刷新令牌,部分平台可能没有';
|
||||
comment on column sys_social.access_code is '平台的授权信息,部分平台可能没有';
|
||||
comment on column sys_social.union_id is '用户的 unionid';
|
||||
comment on column sys_social.scope is '授予的权限,部分平台可能没有';
|
||||
comment on column sys_social.token_type is '个别平台的授权信息,部分平台可能没有';
|
||||
comment on column sys_social.id_token is 'id token,部分平台可能没有';
|
||||
comment on column sys_social.mac_algorithm is '小米平台用户的附带属性,部分平台可能没有';
|
||||
comment on column sys_social.mac_key is '小米平台用户的附带属性,部分平台可能没有';
|
||||
comment on column sys_social.code is '用户的授权code,部分平台可能没有';
|
||||
comment on column sys_social.oauth_token is 'Twitter平台用户的附带属性,部分平台可能没有';
|
||||
comment on column sys_social.oauth_token_secret is 'Twitter平台用户的附带属性,部分平台可能没有';
|
||||
comment on column sys_social.create_dept is '创建部门';
|
||||
comment on column sys_social.create_by is '创建者';
|
||||
comment on column sys_social.create_time is '创建时间';
|
||||
comment on column sys_social.update_by is '更新者';
|
||||
comment on column sys_social.update_time is '更新时间';
|
||||
comment on column sys_social.del_flag is '删除标志(0代表存在 2代表删除)';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 系统授权表
|
||||
-- ----------------------------
|
||||
drop table if exists sys_client;
|
||||
create table sys_client (
|
||||
id int8,
|
||||
client_id varchar(64) default ''::varchar,
|
||||
client_key varchar(32) default ''::varchar,
|
||||
client_secret varchar(255) default ''::varchar,
|
||||
grant_type varchar(255) default ''::varchar,
|
||||
device_type varchar(32) default ''::varchar,
|
||||
active_timeout int4 default 1800,
|
||||
timeout int4 default 604800,
|
||||
status char(1) default '0'::bpchar,
|
||||
del_flag char(1) default '0'::bpchar,
|
||||
create_dept int8,
|
||||
create_by int8,
|
||||
create_time timestamp,
|
||||
update_by int8,
|
||||
update_time timestamp,
|
||||
constraint sys_client_pk primary key (id)
|
||||
);
|
||||
|
||||
comment on table sys_client is '系统授权表';
|
||||
comment on column sys_client.id is '主键';
|
||||
comment on column sys_client.client_id is '客户端id';
|
||||
comment on column sys_client.client_key is '客户端key';
|
||||
comment on column sys_client.client_secret is '客户端秘钥';
|
||||
comment on column sys_client.grant_type is '授权类型';
|
||||
comment on column sys_client.device_type is '设备类型';
|
||||
comment on column sys_client.active_timeout is 'token活跃超时时间';
|
||||
comment on column sys_client.timeout is 'token固定超时';
|
||||
comment on column sys_client.status is '状态(0正常 1停用)';
|
||||
comment on column sys_client.del_flag is '删除标志(0代表存在 2代表删除)';
|
||||
comment on column sys_client.create_dept is '创建部门';
|
||||
comment on column sys_client.create_by is '创建者';
|
||||
comment on column sys_client.create_time is '创建时间';
|
||||
comment on column sys_client.update_by is '更新者';
|
||||
comment on column sys_client.update_time is '更新时间';
|
||||
|
||||
insert into sys_client values (1, 'e5cd7e4891bf95d1d19206ce24a7b32e', 'pc', 'pc123', 'password,social', 'pc', 1800, 604800, 0, 0, 103, 1, now(), 1, now());
|
||||
insert into sys_client values (2, '428a8310cd442757ae699df5d894f051', 'app', 'app123', 'password,sms,social', 'android', 1800, 604800, 0, 0, 103, 1, now(), 1, now());
|
||||
|
||||
insert into sys_dict_type values(11, '000000', '授权类型', 'sys_grant_type', '0', 103, 1, now(), null, null, '认证授权类型');
|
||||
insert into sys_dict_type values(12, '000000', '设备类型', 'sys_device_type', '0', 103, 1, now(), null, null, '客户端设备类型');
|
||||
|
||||
insert into sys_dict_data values(30, '000000', 0, '密码认证', 'password', 'sys_grant_type', '', 'default', 'N', '0', 103, 1, now(), null, null, '密码认证');
|
||||
insert into sys_dict_data values(31, '000000', 0, '短信认证', 'sms', 'sys_grant_type', '', 'default', 'N', '0', 103, 1, now(), null, null, '短信认证');
|
||||
insert into sys_dict_data values(32, '000000', 0, '邮件认证', 'email', 'sys_grant_type', '', 'default', 'N', '0', 103, 1, now(), null, null, '邮件认证');
|
||||
insert into sys_dict_data values(33, '000000', 0, '小程序认证', 'xcx', 'sys_grant_type', '', 'default', 'N', '0', 103, 1, now(), null, null, '小程序认证');
|
||||
insert into sys_dict_data values(34, '000000', 0, '三方登录认证', 'social', 'sys_grant_type', '', 'default', 'N', '0', 103, 1, now(), null, null, '三方登录认证');
|
||||
insert into sys_dict_data values(35, '000000', 0, 'PC', 'pc', 'sys_device_type', '', 'default', 'N', '0', 103, 1, now(), null, null, 'PC');
|
||||
insert into sys_dict_data values(36, '000000', 0, '安卓', 'android', 'sys_device_type', '', 'default', 'N', '0', 103, 1, now(), null, null, '安卓');
|
||||
insert into sys_dict_data values(37, '000000', 0, 'iOS', 'ios', 'sys_device_type', '', 'default', 'N', '0', 103, 1, now(), null, null, 'iOS');
|
||||
insert into sys_dict_data values(38, '000000', 0, '小程序', 'xcx', 'sys_device_type', '', 'default', 'N', '0', 103, 1, now(), null, null, '小程序');
|
||||
|
||||
-- 二级菜单
|
||||
insert into sys_menu values('123', '客户端管理', '1', '11', 'client', 'system/client/index', '', '1', '0', 'C', '0', '0', 'system:client:list', 'international', 103, 1, now(), null, null, '客户端管理菜单');
|
||||
-- 客户端管理按钮
|
||||
insert into sys_menu values('1061', '客户端管理查询', '123', '1', '#', '', '', '1', '0', 'F', '0', '0', 'system:client:query', '#', 103, 1, now(), null, null, '');
|
||||
insert into sys_menu values('1062', '客户端管理新增', '123', '2', '#', '', '', '1', '0', 'F', '0', '0', 'system:client:add', '#', 103, 1, now(), null, null, '');
|
||||
insert into sys_menu values('1063', '客户端管理修改', '123', '3', '#', '', '', '1', '0', 'F', '0', '0', 'system:client:edit', '#', 103, 1, now(), null, null, '');
|
||||
insert into sys_menu values('1064', '客户端管理删除', '123', '4', '#', '', '', '1', '0', 'F', '0', '0', 'system:client:remove', '#', 103, 1, now(), null, null, '');
|
||||
insert into sys_menu values('1065', '客户端管理导出', '123', '5', '#', '', '', '1', '0', 'F', '0', '0', 'system:client:export', '#', 103, 1, now(), null, null, '');
|
||||
|
||||
-- 角色菜单权限
|
||||
insert into sys_role_menu values ('2', '1061');
|
||||
insert into sys_role_menu values ('2', '1062');
|
||||
insert into sys_role_menu values ('2', '1063');
|
||||
insert into sys_role_menu values ('2', '1064');
|
||||
insert into sys_role_menu values ('2', '1065');
|
||||
|
||||
|
||||
update sys_dept set leader = null;
|
||||
ALTER TABLE sys_dept ALTER COLUMN leader TYPE int8;
|
||||
5
script/sql/update/postgres/update_5.1.0-5.1.1.sql
Normal file
5
script/sql/update/postgres/update_5.1.0-5.1.1.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE sys_logininfor ADD client_key varchar(32) default ''::varchar;
|
||||
COMMENT ON COLUMN sys_logininfor.client_key IS '客户端';
|
||||
|
||||
ALTER TABLE sys_logininfor ADD device_type varchar(32) default ''::varchar;
|
||||
COMMENT ON COLUMN sys_logininfor.device_type IS '设备类型';
|
||||
5
script/sql/update/postgres/update_5.1.1-5.1.2.sql
Normal file
5
script/sql/update/postgres/update_5.1.1-5.1.2.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
delete from sys_menu where menu_id in (1604, 1605);
|
||||
insert into sys_menu values('1620', '配置列表', '118', '5', '#', '', '', '1', '0', 'F', '0', '0', 'system:ossConfig:list', '#', 103, 1, now(), null, null, '');
|
||||
insert into sys_menu values('1621', '配置添加', '118', '6', '#', '', '', '1', '0', 'F', '0', '0', 'system:ossConfig:add', '#', 103, 1, now(), null, null, '');
|
||||
insert into sys_menu values('1622', '配置编辑', '118', '6', '#', '', '', '1', '0', 'F', '0', '0', 'system:ossConfig:edit', '#', 103, 1, now(), null, null, '');
|
||||
insert into sys_menu values('1623', '配置删除', '118', '6', '#', '', '', '1', '0', 'F', '0', '0', 'system:ossConfig:remove', '#', 103, 1, now(), null, null, '');
|
||||
9
script/sql/update/postgres/update_5.1.2-5.2.0.sql
Normal file
9
script/sql/update/postgres/update_5.1.2-5.2.0.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
ALTER TABLE sys_dept ADD COLUMN dept_category varchar(100) default null::varchar;
|
||||
COMMENT ON COLUMN sys_dept.dept_category IS '客户端';
|
||||
ALTER TABLE sys_post ADD COLUMN dept_id int8 NOT NULL;
|
||||
COMMENT ON COLUMN sys_post.dept_id IS '部门id';
|
||||
ALTER TABLE sys_post ADD COLUMN post_category varchar(100) default null::varchar;
|
||||
COMMENT ON COLUMN sys_post.post_category IS '岗位类别编码';
|
||||
UPDATE sys_post SET dept_id = 100;
|
||||
UPDATE sys_post SET dept_id = 103 where post_id = 1;
|
||||
UPDATE sys_menu SET menu_name = 'SnailJob控制台', path = 'snailjob', component = 'monitor/snailjob/index', perms = 'monitor:snailjob:list', remark = 'SnailJob控制台菜单' WHERE menu_id = 120;
|
||||
7
script/sql/update/postgres/update_5.3.0-5.3.1.sql
Normal file
7
script/sql/update/postgres/update_5.3.0-5.3.1.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE flow_node DROP COLUMN skip_any_node;
|
||||
ALTER TABLE flow_node ADD COLUMN ext varchar(500);
|
||||
COMMENT ON COLUMN flow_node.ext IS '扩展属性';
|
||||
CREATE INDEX user_associated_idx ON FLOW_USER USING btree (associated);
|
||||
|
||||
ALTER TABLE sys_oss ADD COLUMN ext1 varchar(500));
|
||||
COMMENT ON COLUMN sys_oss.ext1 IS '扩展属性';
|
||||
18
script/sql/update/postgres/update_5.3.1-5.4.0.sql
Normal file
18
script/sql/update/postgres/update_5.3.1-5.4.0.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
ALTER TABLE flow_task ADD COLUMN flow_status varchar(20);
|
||||
COMMENT ON COLUMN flow_task.flow_status IS '流程状态(0待提交 1审批中 2审批通过 4终止 5作废 6撤销 8已完成 9已退回 10失效 11拿回)';
|
||||
|
||||
COMMENT ON COLUMN flow_instance.flow_status IS '流程状态(0待提交 1审批中 2审批通过 4终止 5作废 6撤销 8已完成 9已退回 10失效 11拿回)';
|
||||
|
||||
COMMENT ON COLUMN flow_his_task.flow_status IS '流程状态(0待提交 1审批中 2审批通过 4终止 5作废 6撤销 8已完成 9已退回 10失效 11拿回)';
|
||||
|
||||
ALTER TABLE sys_social
|
||||
ALTER COLUMN access_token TYPE varchar(2000),
|
||||
ALTER COLUMN refresh_token TYPE varchar(2000);
|
||||
|
||||
INSERT INTO sys_menu VALUES ('116', '修改生成配置', '3', '2', 'gen-edit/index/:tableId', 'tool/gen/editTable', '', '1', '1', 'C', '1', '0', 'tool:gen:edit', '#', 103, 1, now(), null, null, '');
|
||||
INSERT INTO sys_menu VALUES ('130', '分配用户', '1', '2', 'role-auth/user/:roleId', 'system/role/authUser', '', '1', '1', 'C', '1', '0', 'system:role:edit', '#', 103, 1, now(), null, null, '');
|
||||
INSERT INTO sys_menu VALUES ('131', '分配角色', '1', '1', 'user-auth/role/:userId', 'system/user/authRole', '', '1', '1', 'C', '1', '0', 'system:user:edit', '#', 103, 1, now(), null, null, '');
|
||||
INSERT INTO sys_menu VALUES ('132', '字典数据', '1', '6', 'dict-data/index/:dictId', 'system/dict/data', '', '1', '1', 'C', '1', '0', 'system:dict:list', '#', 103, 1, now(), null, null, '');
|
||||
INSERT INTO sys_menu VALUES ('133', '文件配置管理', '1', '10', 'oss-config/index', 'system/oss/config', '', '1', '1', 'C', '1', '0', 'system:ossConfig:list', '#', 103, 1, now(), null, null, '');
|
||||
INSERT INTO sys_menu VALUES ('11700', '流程设计', '11616', '5', 'design/index', 'workflow/processDefinition/design', '', '1', '1', 'C', '1', '0', 'workflow:leave:edit', '#', 103, 1, now(), NULL, NULL, '');
|
||||
INSERT INTO sys_menu VALUES ('11701', '请假申请', '11616', '6', 'leaveEdit/index', 'workflow/leave/leaveEdit', '', '1', '1', 'C', '1', '0', 'workflow:leave:edit', '#', 103, 1, now(), NULL, NULL, '');
|
||||
99
script/sql/update/postgres/update_5.4.1-5.5.0.sql
Normal file
99
script/sql/update/postgres/update_5.4.1-5.5.0.sql
Normal file
@@ -0,0 +1,99 @@
|
||||
-- ----------------------------
|
||||
-- 流程spel表达式定义表
|
||||
-- ----------------------------
|
||||
CREATE TABLE flow_spel (
|
||||
id BIGINT NOT NULL,
|
||||
component_name VARCHAR(255),
|
||||
method_name VARCHAR(255),
|
||||
method_params VARCHAR(255),
|
||||
view_spel VARCHAR(255),
|
||||
remark VARCHAR(255),
|
||||
status CHAR(1) DEFAULT '0',
|
||||
del_flag CHAR(1) DEFAULT '0',
|
||||
create_dept BIGINT,
|
||||
create_by BIGINT,
|
||||
create_time TIMESTAMP,
|
||||
update_by BIGINT,
|
||||
update_time TIMESTAMP,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
COMMENT ON TABLE flow_spel IS '流程spel表达式定义表';
|
||||
COMMENT ON COLUMN flow_spel.id IS '主键id';
|
||||
COMMENT ON COLUMN flow_spel.component_name IS '组件名称';
|
||||
COMMENT ON COLUMN flow_spel.method_name IS '方法名';
|
||||
COMMENT ON COLUMN flow_spel.method_params IS '参数';
|
||||
COMMENT ON COLUMN flow_spel.view_spel IS '预览spel表达式';
|
||||
COMMENT ON COLUMN flow_spel.remark IS '备注';
|
||||
COMMENT ON COLUMN flow_spel.status IS '状态(0正常 1停用)';
|
||||
COMMENT ON COLUMN flow_spel.del_flag IS '删除标志';
|
||||
COMMENT ON COLUMN flow_spel.create_dept IS '创建部门';
|
||||
COMMENT ON COLUMN flow_spel.create_by IS '创建者';
|
||||
COMMENT ON COLUMN flow_spel.create_time IS '创建时间';
|
||||
COMMENT ON COLUMN flow_spel.update_by IS '更新者';
|
||||
COMMENT ON COLUMN flow_spel.update_time IS '更新时间';
|
||||
|
||||
INSERT INTO flow_spel VALUES (1, 'spelRuleComponent', 'selectDeptLeaderById', 'initiatorDeptId', '#{@spelRuleComponent.selectDeptLeaderById(#initiatorDeptId)}', '根据部门id获取部门负责人', '0', '0', 103, 1, now(), 1, now());
|
||||
INSERT INTO flow_spel VALUES (2, NULL, NULL, 'initiator', '${initiator}', '流程发起人', '0', '0', 103, 1, now(), 1, now());
|
||||
|
||||
INSERT INTO sys_menu VALUES ('11801', '流程表达式', '11616', 2, 'spel', 'workflow/spel/index', '', 1, 0, 'C', '0', '0', 'workflow:spel:list', 'input', 103, 1, now(), 1, now(), '流程达式定义菜单');
|
||||
INSERT INTO sys_menu VALUES ('11802', '流程spel达式定义查询', '11801', 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'workflow:spel:query', '#', 103, 1, now(), NULL, NULL, '');
|
||||
INSERT INTO sys_menu VALUES ('11803', '流程spel达式定义新增', '11801', 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'workflow:spel:add', '#', 103, 1, now(), NULL, NULL, '');
|
||||
INSERT INTO sys_menu VALUES ('11804', '流程spel达式定义修改', '11801', 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'workflow:spel:edit', '#', 103, 1, now(), NULL, NULL, '');
|
||||
INSERT INTO sys_menu VALUES ('11805', '流程spel达式定义删除', '11801', 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'workflow:spel:remove', '#', 103, 1, now(), NULL, NULL, '');
|
||||
INSERT INTO sys_menu VALUES ('11806', '流程spel达式定义导出', '11801', 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'workflow:spel:export', '#', 103, 1, now(), NULL, NULL, '');
|
||||
|
||||
ALTER TABLE flow_definition ADD COLUMN model_value VARCHAR(40) NOT NULL DEFAULT 'CLASSICS';
|
||||
COMMENT ON COLUMN flow_definition.model_value IS '设计器模式(CLASSICS经典模式 MIMIC仿钉钉模式)';
|
||||
|
||||
UPDATE flow_skip SET skip_condition = REPLACE(skip_condition, 'notNike', 'notLike');
|
||||
|
||||
ALTER TABLE flow_his_task
|
||||
ALTER COLUMN collaborator DROP NOT NULL,
|
||||
ALTER COLUMN collaborator SET DEFAULT NULL,
|
||||
ALTER COLUMN collaborator TYPE VARCHAR(500);
|
||||
COMMENT ON COLUMN flow_his_task.collaborator IS '协作人';
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- 流程实例业务扩展表
|
||||
-- ----------------------------
|
||||
CREATE TABLE flow_instance_biz_ext (
|
||||
id int8,
|
||||
tenant_id VARCHAR(20) DEFAULT '000000',
|
||||
create_dept int8,
|
||||
create_by int8,
|
||||
create_time TIMESTAMP,
|
||||
update_by int8,
|
||||
update_time TIMESTAMP,
|
||||
business_code VARCHAR(255),
|
||||
business_title VARCHAR(1000),
|
||||
del_flag CHAR(1) DEFAULT '0',
|
||||
instance_id int8,
|
||||
business_id VARCHAR(255),
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
COMMENT ON TABLE flow_instance_biz_ext IS '流程实例业务扩展表';
|
||||
COMMENT ON COLUMN flow_instance_biz_ext.id IS '主键id';
|
||||
COMMENT ON COLUMN flow_instance_biz_ext.tenant_id IS '租户编号';
|
||||
COMMENT ON COLUMN flow_instance_biz_ext.create_dept IS '创建部门';
|
||||
COMMENT ON COLUMN flow_instance_biz_ext.create_by IS '创建者';
|
||||
COMMENT ON COLUMN flow_instance_biz_ext.create_time IS '创建时间';
|
||||
COMMENT ON COLUMN flow_instance_biz_ext.update_by IS '更新者';
|
||||
COMMENT ON COLUMN flow_instance_biz_ext.update_time IS '更新时间';
|
||||
COMMENT ON COLUMN flow_instance_biz_ext.business_code IS '业务编码';
|
||||
COMMENT ON COLUMN flow_instance_biz_ext.business_title IS '业务标题';
|
||||
COMMENT ON COLUMN flow_instance_biz_ext.del_flag IS '删除标志(0代表存在 1代表删除)';
|
||||
COMMENT ON COLUMN flow_instance_biz_ext.instance_id IS '流程实例Id';
|
||||
COMMENT ON COLUMN flow_instance_biz_ext.business_id IS '业务Id';
|
||||
|
||||
ALTER TABLE test_leave ADD COLUMN apply_code VARCHAR(50) NOT NULL;
|
||||
COMMENT ON COLUMN test_leave.apply_code IS '申请编号';
|
||||
|
||||
update sys_menu set remark = '/tool/gen' where menu_id = 116;
|
||||
update sys_menu set remark = '/system/role' where menu_id = 130;
|
||||
update sys_menu set remark = '/system/user' where menu_id = 131;
|
||||
update sys_menu set remark = '/system/dict' where menu_id = 132;
|
||||
update sys_menu set remark = '/system/oss' where menu_id = 133;
|
||||
update sys_menu set remark = '/workflow/processDefinition' where menu_id = 11700;
|
||||
25
script/sql/update/postgres/update_5.5.0-5.5.1.sql
Normal file
25
script/sql/update/postgres/update_5.5.0-5.5.1.sql
Normal file
@@ -0,0 +1,25 @@
|
||||
ALTER TABLE flow_definition ADD create_by VARCHAR2(64) DEFAULT '' NOT NULL;
|
||||
ALTER TABLE flow_definition ADD update_by VARCHAR2(64) DEFAULT '' NOT NULL;
|
||||
COMMENT ON COLUMN flow_definition.create_by IS '创建人';
|
||||
COMMENT ON COLUMN flow_definition.update_by IS '更新人';
|
||||
|
||||
ALTER TABLE flow_node ADD create_by VARCHAR2(64) DEFAULT '' NOT NULL;
|
||||
ALTER TABLE flow_node ADD update_by VARCHAR2(64) DEFAULT '' NOT NULL;
|
||||
COMMENT ON COLUMN flow_node.create_by IS '创建人';
|
||||
COMMENT ON COLUMN flow_node.update_by IS '更新人';
|
||||
|
||||
ALTER TABLE flow_skip ADD create_by VARCHAR2(64) DEFAULT '' NOT NULL;
|
||||
ALTER TABLE flow_skip ADD update_by VARCHAR2(64) DEFAULT '' NOT NULL;
|
||||
COMMENT ON COLUMN flow_skip.create_by IS '创建人';
|
||||
COMMENT ON COLUMN flow_skip.update_by IS '更新人';
|
||||
|
||||
ALTER TABLE flow_instance ADD update_by VARCHAR2(64) DEFAULT '' NOT NULL;
|
||||
COMMENT ON COLUMN flow_instance.update_by IS '更新人';
|
||||
|
||||
ALTER TABLE flow_task ADD create_by VARCHAR2(64) DEFAULT '' NOT NULL;
|
||||
ALTER TABLE flow_task ADD update_by VARCHAR2(64) DEFAULT '' NOT NULL;
|
||||
COMMENT ON COLUMN flow_task.create_by IS '创建人';
|
||||
COMMENT ON COLUMN flow_task.update_by IS '更新人';
|
||||
|
||||
ALTER TABLE flow_user ADD update_by VARCHAR2(64) DEFAULT '' NOT NULL;
|
||||
COMMENT ON COLUMN flow_user.update_by IS '更新人';
|
||||
Reference in New Issue
Block a user