Просмотр исходного кода

[SQL][修改][为租金及物业账单添加索引]

release_toaliyun_real
gongbiao 7 лет назад
Родитель
Сommit
4b273dd752
1 измененных файлов: 17 добавлений и 0 удалений
  1. +17
    -0
      mallinkAdmin/src/main/resources/db/migration/V201907031141__G_ALTER_RENT_PROPERTY.sql

+ 17
- 0
mallinkAdmin/src/main/resources/db/migration/V201907031141__G_ALTER_RENT_PROPERTY.sql Просмотреть файл

@@ -0,0 +1,17 @@
alter table wx_bill_rent add index t_p(tenant_id,is_preview);
alter table wx_bill_rent add index r_m(rent_contract_id,merchant_id);
alter table wx_bill_rent add index st(rent_shop_type);
alter table wx_bill_rent add index sta(`status`);

alter table wx_bill_rent_deposit add index r(rent_contract_id);
alter table wx_bill_rent_deposit add index r_m(rent_contract_id,merchant_id);
alter table wx_bill_rent_deposit add index sta(`status`);

alter table wx_bill_property add index t_p(tenant_id,is_preview);
alter table wx_bill_property add index p_m(property_contract_id,merchant_id);
alter table wx_bill_property add index st(rent_shop_type);
alter table wx_bill_property add index sta(`status`);

alter table wx_bill_property_deposit add index p(property_contract_id);
alter table wx_bill_property_deposit add index p_m(property_contract_id,merchant_id);
alter table wx_bill_property_deposit add index sta(`status`);

Загрузка…
Отмена
Сохранить