Rename table t_element to t_func
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
insert into t_power_type (id, name)
|
||||
values (1, 'module'),
|
||||
(2, 'menu'),
|
||||
(3, 'element'),
|
||||
(3, 'func'),
|
||||
(4, 'operation') as new_value
|
||||
on duplicate key update name = new_value.name;
|
||||
|
||||
@@ -68,7 +68,7 @@ on duplicate key update name =new_value.name,
|
||||
url =new_value.url,
|
||||
parent_id =new_value.parent_id;
|
||||
|
||||
insert into t_element(id, name, menu_id, parent_id)
|
||||
insert into t_func(id, name, menu_id, parent_id)
|
||||
values (1010100, '查询', 1010000, null),
|
||||
(1010200, '增加', 1010000, null),
|
||||
(1010300, '修改', 1010000, null),
|
||||
@@ -87,7 +87,7 @@ on duplicate key update name = new_value.name,
|
||||
menu_id = new_value.menu_id,
|
||||
parent_id = new_value.parent_id;
|
||||
|
||||
insert into t_operation(id, name, code, element_id)
|
||||
insert into t_operation(id, name, code, func_id)
|
||||
values (1010101, '单个', 'system:user:query:one', 1010100),
|
||||
(1010102, '全部', 'system:user:query:all', 1010100),
|
||||
(1010103, '列表', 'system:user:query:list', 1010100),
|
||||
@@ -116,4 +116,4 @@ insert into t_operation(id, name, code, element_id)
|
||||
(1510101, '列表', 'system:log:query:all', 1510100) as new_value
|
||||
on duplicate key update name=new_value.name,
|
||||
code=new_value.code,
|
||||
element_id=new_value.element_id;
|
||||
func_id=new_value.func_id;
|
||||
@@ -1,9 +1,9 @@
|
||||
drop table if exists t_element;
|
||||
drop table if exists t_func;
|
||||
|
||||
create table if not exists t_element
|
||||
create table if not exists t_func
|
||||
(
|
||||
id bigint not null primary key,
|
||||
name varchar(100) not null comment '元素名',
|
||||
name varchar(100) not null comment '功能名',
|
||||
parent_id bigint null comment '父ID',
|
||||
menu_id bigint not null comment '菜单ID'
|
||||
) comment '页面元素表';
|
||||
) comment '功能表';
|
||||
@@ -3,7 +3,7 @@ drop table if exists t_operation;
|
||||
create table if not exists t_operation
|
||||
(
|
||||
id bigint not null primary key,
|
||||
name varchar(50) not null comment '功能名',
|
||||
code varchar(50) null comment '功能编码',
|
||||
element_id bigint not null comment '页面元素ID'
|
||||
) comment '功能表';
|
||||
name varchar(50) not null comment '操作名',
|
||||
code varchar(50) null comment '操作编码',
|
||||
func_id bigint not null comment '功能ID'
|
||||
) comment '操作表';
|
||||
Reference in New Issue
Block a user