From 0d457fada0b81b82f5bd9013e4390977e2d2194b Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 23 Apr 2011 12:12:46 +0000 Subject: [PATCH] New: add "tracker" field for add an unique random code to be used for statistics --- htdocs/install/mysql/migration/3.0.0-3.1.0.sql | 2 ++ htdocs/install/mysql/tables/llx_mailing_cibles.sql | 2 ++ 2 files changed, 4 insertions(+) diff --git a/htdocs/install/mysql/migration/3.0.0-3.1.0.sql b/htdocs/install/mysql/migration/3.0.0-3.1.0.sql index c1715fbe837..39359a5e372 100755 --- a/htdocs/install/mysql/migration/3.0.0-3.1.0.sql +++ b/htdocs/install/mysql/migration/3.0.0-3.1.0.sql @@ -91,6 +91,8 @@ ALTER TABLE llx_propaldet ADD INDEX idx_propaldet_fk_product (fk_product); ALTER TABLE llx_commandedet ADD INDEX idx_commandedet_fk_product (fk_product); ALTER TABLE llx_facturedet ADD INDEX idx_facturedet_fk_product (fk_product); +ALTER TABLE llx_mailing_cibles ADD COLUMN tracker varchar(128) NULL AFTER other; + --Add Chile data (id pays=67) -- Regions Chile INSERT INTO llx_c_regions (rowid, code_region, fk_pays, cheflieu, tncc, nom, active) VALUES (6701, 6701, 67, NULL, NULL, 'Tarapacá', 1); diff --git a/htdocs/install/mysql/tables/llx_mailing_cibles.sql b/htdocs/install/mysql/tables/llx_mailing_cibles.sql index 2f6d3937829..8b734a09a65 100644 --- a/htdocs/install/mysql/tables/llx_mailing_cibles.sql +++ b/htdocs/install/mysql/tables/llx_mailing_cibles.sql @@ -1,6 +1,7 @@ -- ======================================================================== -- Copyright (C) 2005 Rodolphe Quiedeville -- Copyright (C) 2009 Laurent Destailleur +-- Copyright (C) 2011 Regis Houssin -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by @@ -29,6 +30,7 @@ create table llx_mailing_cibles prenom varchar(160), email varchar(160) NOT NULL, other varchar(255) NULL, + tracker varchar(128) NULL, statut smallint NOT NULL DEFAULT 0, source_url varchar(160), source_id integer,