数据库内容修改:默认租户的tenant_id由0修改为1

This commit is contained in:
数据小王子 2024-02-07 11:54:27 +08:00
parent a601c8c54c
commit 3734a6ef23
4 changed files with 1252 additions and 1209 deletions

File diff suppressed because it is too large Load Diff

View File

@ -37,3 +37,23 @@ create table sys_social
update_time datetime comment '更新时间',
PRIMARY KEY (social_id)
) engine=innodb comment = '社会化关系表';
-- tenant_id由0修改为1
UPDATE `sys_tenant` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `mf_customer` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `mf_goods` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `mf_product` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `mf_student` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_config` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_dept` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_dict_data` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_dict_type` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_logininfor` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_notice` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_oper_log` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_oss` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_oss_config` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_post` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_role` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_social` SET `tenant_id`=1 WHERE `tenant_id`=0;
UPDATE `sys_user` SET `tenant_id`=1 WHERE `tenant_id`=0;

File diff suppressed because it is too large Load Diff

View File

@ -95,3 +95,23 @@ comment on column sys_social.create_by is '创建者';
comment on column sys_social.create_time is '创建时间';
comment on column sys_social.update_by is '更新者';
comment on column sys_social.update_time is '更新时间';
-- tenant_id由0修改为1
UPDATE "public"."sys_tenant" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."mf_customer" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."mf_goods" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."mf_product" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."mf_student" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_config" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_dept" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_dict_data" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_dict_type" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_logininfor" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_notice" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_oper_log" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_oss" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_oss_config" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_post" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_role" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_social" SET "tenant_id"=1 WHERE "tenant_id"=0;
UPDATE "public"."sys_user" SET "tenant_id"=1 WHERE "tenant_id"=0;