diff --git a/script/sql/oracle/oracle_ry_vue_4.X.sql b/script/sql/oracle/oracle_ry_vue_4.X.sql index 3c626491..68b29e99 100644 --- a/script/sql/oracle/oracle_ry_vue_4.X.sql +++ b/script/sql/oracle/oracle_ry_vue_4.X.sql @@ -4,7 +4,7 @@ create table sys_dept ( dept_id number(20) not null, parent_id number(20) default 0, - ancestors varchar2(50) default '', + ancestors varchar2(500) default '', dept_name varchar2(30) default '', order_num number(4) default 0, leader varchar2(20) default null, diff --git a/script/sql/postgres/postgres_ry_vue_4.X.sql b/script/sql/postgres/postgres_ry_vue_4.X.sql index 4bf4ec25..850491fc 100644 --- a/script/sql/postgres/postgres_ry_vue_4.X.sql +++ b/script/sql/postgres/postgres_ry_vue_4.X.sql @@ -6,7 +6,7 @@ create table if not exists sys_dept ( dept_id int8, parent_id int8 default 0, - ancestors varchar(50) default ''::varchar, + ancestors varchar(500)default ''::varchar, dept_name varchar(30) default ''::varchar, order_num int4 default 0, leader varchar(20) default null::varchar, diff --git a/script/sql/ry_vue_4.X.sql b/script/sql/ry_vue_4.X.sql index 47f5da65..e190186b 100644 --- a/script/sql/ry_vue_4.X.sql +++ b/script/sql/ry_vue_4.X.sql @@ -5,7 +5,7 @@ drop table if exists sys_dept; create table sys_dept ( dept_id bigint(20) not null comment '部门id', parent_id bigint(20) default 0 comment '父部门id', - ancestors varchar(50) default '' comment '祖级列表', + ancestors varchar(500) default '' comment '祖级列表', dept_name varchar(30) default '' comment '部门名称', order_num int(4) default 0 comment '显示顺序', leader varchar(20) default null comment '负责人', diff --git a/script/sql/sqlserver/sqlserver_ry_vue_4.X.sql b/script/sql/sqlserver/sqlserver_ry_vue_4.X.sql index 92ea9c62..d37f1b40 100644 --- a/script/sql/sqlserver/sqlserver_ry_vue_4.X.sql +++ b/script/sql/sqlserver/sqlserver_ry_vue_4.X.sql @@ -425,7 +425,7 @@ CREATE TABLE [sys_dept] ( [dept_id] bigint NOT NULL, [parent_id] bigint DEFAULT ((0)) NULL, - [ancestors] nvarchar(50) DEFAULT '' NULL, + [ancestors] nvarchar(500)DEFAULT '' NULL, [dept_name] nvarchar(30) DEFAULT '' NULL, [order_num] int DEFAULT ((0)) NULL, [leader] nvarchar(20) NULL, diff --git a/script/sql/update/update-4.0-4.1.sql b/script/sql/update/update-4.0-4.1.sql index 0848ad76..28e545a7 100644 --- a/script/sql/update/update-4.0-4.1.sql +++ b/script/sql/update/update-4.0-4.1.sql @@ -1 +1,3 @@ alter table sys_menu change query query_param varchar(255) default null comment '路由参数'; + +alter table sys_dept modify column ancestors varchar(500) null default '' comment '祖级列表';