diff --git a/mallinkAdmin/src/main/resources/db/migration/V201907031141__G_ALTER_RENT_PROPERTY.sql b/mallinkAdmin/src/main/resources/db/migration/V201907031141__G_ALTER_RENT_PROPERTY.sql new file mode 100644 index 000000000..cc34c826a --- /dev/null +++ b/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`); \ No newline at end of file