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

feature/model
疯狂的狮子Li 3 years ago
parent d51d8ad877
commit e72b878380

@ -4,7 +4,7 @@
create table sys_dept ( create table sys_dept (
dept_id number(20) not null, dept_id number(20) not null,
parent_id number(20) default 0, parent_id number(20) default 0,
ancestors varchar2(50) default '', ancestors varchar2(500) default '',
dept_name varchar2(30) default '', dept_name varchar2(30) default '',
order_num number(4) default 0, order_num number(4) default 0,
leader varchar2(20) default null, leader varchar2(20) default null,

@ -6,7 +6,7 @@ create table if not exists sys_dept
( (
dept_id int8, dept_id int8,
parent_id int8 default 0, parent_id int8 default 0,
ancestors varchar(50) default ''::varchar, ancestors varchar(500)default ''::varchar,
dept_name varchar(30) default ''::varchar, dept_name varchar(30) default ''::varchar,
order_num int4 default 0, order_num int4 default 0,
leader varchar(20) default null::varchar, leader varchar(20) default null::varchar,

@ -5,7 +5,7 @@ drop table if exists sys_dept;
create table sys_dept ( create table sys_dept (
dept_id bigint(20) not null comment '部门id', dept_id bigint(20) not null comment '部门id',
parent_id bigint(20) default 0 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 '部门名称', dept_name varchar(30) default '' comment '部门名称',
order_num int(4) default 0 comment '显示顺序', order_num int(4) default 0 comment '显示顺序',
leader varchar(20) default null comment '负责人', leader varchar(20) default null comment '负责人',

@ -425,7 +425,7 @@ CREATE TABLE [sys_dept]
( (
[dept_id] bigint NOT NULL, [dept_id] bigint NOT NULL,
[parent_id] bigint DEFAULT ((0)) NULL, [parent_id] bigint DEFAULT ((0)) NULL,
[ancestors] nvarchar(50) DEFAULT '' NULL, [ancestors] nvarchar(500)DEFAULT '' NULL,
[dept_name] nvarchar(30) DEFAULT '' NULL, [dept_name] nvarchar(30) DEFAULT '' NULL,
[order_num] int DEFAULT ((0)) NULL, [order_num] int DEFAULT ((0)) NULL,
[leader] nvarchar(20) NULL, [leader] nvarchar(20) NULL,

@ -1 +1,3 @@
alter table sys_menu change query query_param varchar(255) default null comment '路由参数'; 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 '祖级列表';

Loading…
Cancel
Save