From 310bffef547a5aa4755520f378bdebe9fcdce524 Mon Sep 17 00:00:00 2001 From: Kayleigh Wang Date: Thu, 5 Feb 2026 07:24:41 +0000 Subject: [PATCH] =?UTF-8?q?!830=20fix=20=E4=BF=AE=E5=A4=8D=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E7=A7=9F=E6=88=B7=E5=8A=9F=E8=83=BD=E5=90=8ESQL?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E5=BC=82=E5=B8=B8=20*=20fix=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=88=A0=E9=99=A4=E7=A7=9F=E6=88=B7=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=90=8ESQL=E6=89=A7=E8=A1=8C=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/sql/oracle/oracle_ry_vue_5.X.sql | 2 +- script/sql/postgres/postgres_ry_vue_5.X.sql | 2 +- script/sql/ry_vue_5.X.sql | 3 +-- script/sql/sqlserver/sqlserver_ry_vue_5.X.sql | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/script/sql/oracle/oracle_ry_vue_5.X.sql b/script/sql/oracle/oracle_ry_vue_5.X.sql index 8834dbe77..2e16b0d60 100644 --- a/script/sql/oracle/oracle_ry_vue_5.X.sql +++ b/script/sql/oracle/oracle_ry_vue_5.X.sql @@ -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 '字典主键'; diff --git a/script/sql/postgres/postgres_ry_vue_5.X.sql b/script/sql/postgres/postgres_ry_vue_5.X.sql index 6dd917cb9..491fcfa36 100644 --- a/script/sql/postgres/postgres_ry_vue_5.X.sql +++ b/script/sql/postgres/postgres_ry_vue_5.X.sql @@ -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 '字典主键'; diff --git a/script/sql/ry_vue_5.X.sql b/script/sql/ry_vue_5.X.sql index 988459f58..c8966129a 100644 --- a/script/sql/ry_vue_5.X.sql +++ b/script/sql/ry_vue_5.X.sql @@ -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, '用户性别列表'); diff --git a/script/sql/sqlserver/sqlserver_ry_vue_5.X.sql b/script/sql/sqlserver/sqlserver_ry_vue_5.X.sql index 056f909ae..f93c241b5 100644 --- a/script/sql/sqlserver/sqlserver_ry_vue_5.X.sql +++ b/script/sql/sqlserver/sqlserver_ry_vue_5.X.sql @@ -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