From e72b878380b942135a9bf1ce2e6cd864ba605496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Fri, 15 Apr 2022 11:52:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E9=9B=AA=E8=8A=B1id=20=E5=AF=BC=E8=87=B4=20=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E7=A5=96=E7=B1=8D=E5=AD=97=E6=AE=B5=20=E9=95=BF=E5=BA=A6?= =?UTF-8?q?=E4=B8=8D=E5=A4=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/sql/oracle/oracle_ry_vue_4.X.sql | 2 +- script/sql/postgres/postgres_ry_vue_4.X.sql | 2 +- script/sql/ry_vue_4.X.sql | 2 +- script/sql/sqlserver/sqlserver_ry_vue_4.X.sql | 2 +- script/sql/update/update-4.0-4.1.sql | 2 ++ 5 files changed, 6 insertions(+), 4 deletions(-) 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 '祖级列表';