Add index on tag. Reduce tag length
This commit is contained in:
parent
83df996bc2
commit
7a193b4c87
@ -48,6 +48,10 @@ UPDATE llx_c_country SET eec = 1 WHERE code IN ('AT','BE','BG','CY','CZ','DE','D
|
|||||||
|
|
||||||
-- For v14
|
-- For v14
|
||||||
|
|
||||||
|
ALTER TABLE llx_mailing_cibles MODIFY COLUMN tag varchar(64) NULL;
|
||||||
|
ALTER TABLE llx_mailing_cibles ADD INDEX idx_mailing_cibles_tag (tag);
|
||||||
|
|
||||||
|
|
||||||
ALTER TABLE llx_c_availability ADD COLUMN position integer NOT NULL DEFAULT 0;
|
ALTER TABLE llx_c_availability ADD COLUMN position integer NOT NULL DEFAULT 0;
|
||||||
|
|
||||||
ALTER TABLE llx_adherent ADD COLUMN ref varchar(30) AFTER rowid;
|
ALTER TABLE llx_adherent ADD COLUMN ref varchar(30) AFTER rowid;
|
||||||
|
|||||||
@ -21,3 +21,5 @@ ALTER TABLE llx_mailing_cibles ADD UNIQUE uk_mailing_cibles (fk_mailing, email);
|
|||||||
|
|
||||||
ALTER TABLE llx_mailing_cibles ADD INDEX idx_mailing_cibles_email (email);
|
ALTER TABLE llx_mailing_cibles ADD INDEX idx_mailing_cibles_email (email);
|
||||||
|
|
||||||
|
ALTER TABLE llx_mailing_cibles ADD INDEX idx_mailing_cibles_tag (tag);
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,7 @@ create table llx_mailing_cibles
|
|||||||
firstname varchar(160),
|
firstname varchar(160),
|
||||||
email varchar(160) NOT NULL,
|
email varchar(160) NOT NULL,
|
||||||
other varchar(255) NULL,
|
other varchar(255) NULL,
|
||||||
tag varchar(128) NULL,
|
tag varchar(64) NULL, -- a unique key as a hash of: dolibarr_main_instance_unique_id;email;lastname;mailing_id;MAILING_EMAIL_UNSUBSCRIBE_KEY
|
||||||
statut smallint NOT NULL DEFAULT 0, -- -1 = error, 0 = not sent, ...
|
statut smallint NOT NULL DEFAULT 0, -- -1 = error, 0 = not sent, ...
|
||||||
source_url varchar(255),
|
source_url varchar(255),
|
||||||
source_id integer,
|
source_id integer,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user