!830 fix 修复删除租户功能后SQL执行异常

* fix 修复删除租户功能后SQL执行异常
This commit is contained in:
Kayleigh Wang
2026-02-05 07:24:41 +00:00
committed by 疯狂的狮子Li
parent 240a581311
commit 310bffef54
4 changed files with 4 additions and 5 deletions

View File

@@ -713,7 +713,7 @@ create table sys_dict_type (
);
alter table sys_dict_type add constraint pk_sys_dict_type primary key (dict_id);
create unique index sys_dict_type_index1 on sys_dict_type (tenant_id, dict_type);
create unique index sys_dict_type_index1 on sys_dict_type (dict_type);
comment on table sys_dict_type is '字典类型表';
comment on column sys_dict_type.dict_id is '字典主键';

View File

@@ -711,7 +711,7 @@ create table if not exists sys_dict_type
constraint sys_dict_type_pk primary key (dict_id)
);
create unique index sys_dict_type_index1 ON sys_dict_type (tenant_id, dict_type);
create unique index sys_dict_type_index1 ON sys_dict_type (dict_type);
comment on table sys_dict_type is '字典类型表';
comment on column sys_dict_type.dict_id is '字典主键';

View File

@@ -535,7 +535,6 @@ create table sys_oper_log (
create table sys_dict_type
(
dict_id bigint(20) not null comment '字典主键',
tenant_id varchar(20) default '000000' comment '租户编号',
dict_name varchar(100) default '' comment '字典名称',
dict_type varchar(100) default '' comment '字典类型',
create_dept bigint(20) default null comment '创建部门',
@@ -545,7 +544,7 @@ create table sys_dict_type
update_time datetime comment '更新时间',
remark varchar(500) default null comment '备注',
primary key (dict_id),
unique (tenant_id, dict_type)
unique (dict_type)
) engine=innodb comment = '字典类型表';
insert into sys_dict_type values(1, '用户性别', 'sys_user_sex', 103, 1, sysdate(), null, null, '用户性别列表');

View File

@@ -1014,7 +1014,7 @@ CREATE TABLE sys_dict_type
ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX sys_dict_type_index1 ON sys_dict_type (tenant_id, dict_type)
CREATE NONCLUSTERED INDEX sys_dict_type_index1 ON sys_dict_type (dict_type)
GO
EXEC sys.sp_addextendedproperty