From 4b273dd75261bf0f308a0ddb17cea481bf6fa9ab Mon Sep 17 00:00:00 2001 From: gongbiao Date: Wed, 3 Jul 2019 11:41:31 +0800 Subject: [PATCH] =?UTF-8?q?[SQL][=E4=BF=AE=E6=94=B9][=E4=B8=BA=E7=A7=9F?= =?UTF-8?q?=E9=87=91=E5=8F=8A=E7=89=A9=E4=B8=9A=E8=B4=A6=E5=8D=95=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=B4=A2=E5=BC=95]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../V201907031141__G_ALTER_RENT_PROPERTY.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 mallinkAdmin/src/main/resources/db/migration/V201907031141__G_ALTER_RENT_PROPERTY.sql 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