NEW More index for memberships table
This commit is contained in:
parent
058b87fe29
commit
f30b2ef8aa
3 changed files with 10 additions and 2 deletions
|
|
@ -97,4 +97,8 @@ ALTER TABLE llx_product_customer_price CHANGE COLUMN localtax2_tx localtax2_tx v
|
|||
ALTER TABLE llx_product_customer_price_log CHANGE COLUMN localtax1_tx localtax1_tx varchar(20) DEFAULT '0';
|
||||
ALTER TABLE llx_product_customer_price_log CHANGE COLUMN localtax2_tx localtax2_tx varchar(20) DEFAULT '0';
|
||||
|
||||
ALTER TABLE llx_subscription ADD UNIQUE INDEX idx_subscription_fk_adherent (fk_adherent);
|
||||
ALTER TABLE llx_subscription ADD UNIQUE INDEX idx_subscription_fk_bank (fk_bank);
|
||||
ALTER TABLE llx_subscription ADD UNIQUE INDEX idx_subscription_dateadh (dateadh);
|
||||
|
||||
-- end of migration
|
||||
|
|
|
|||
|
|
@ -16,4 +16,8 @@
|
|||
--
|
||||
-- ============================================================================
|
||||
|
||||
ALTER TABLE llx_subscription ADD UNIQUE INDEX uk_subscription (fk_adherent,dateadh);
|
||||
ALTER TABLE llx_subscription ADD UNIQUE INDEX uk_subscription (fk_adherent, dateadh);
|
||||
|
||||
ALTER TABLE llx_subscription ADD UNIQUE INDEX idx_subscription_fk_adherent (fk_adherent);
|
||||
ALTER TABLE llx_subscription ADD UNIQUE INDEX idx_subscription_fk_bank (fk_bank);
|
||||
ALTER TABLE llx_subscription ADD UNIQUE INDEX idx_subscription_dateadh (dateadh);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ create table llx_subscription
|
|||
dateadh datetime,
|
||||
datef datetime,
|
||||
subscription double(24,8),
|
||||
fk_bank integer DEFAULT NULL,
|
||||
fk_bank integer DEFAULT NULL, -- id of bank transaction in llx_bank
|
||||
fk_user_creat integer DEFAULT NULL,
|
||||
fk_user_valid integer DEFAULT NULL,
|
||||
note text
|
||||
|
|
|
|||
Loading…
Reference in a new issue