Sfoglia il codice sorgente

fix 修复 使用雪花id 导致 部门祖籍字段 长度不够问题

疯狂的狮子Li 3 anni fa
parent
commit
e72b878380

+ 1 - 1
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,

+ 1 - 1
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,

+ 1 - 1
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 '负责人',

+ 1 - 1
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,

+ 2 - 0
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 '祖级列表';