Skip to content

Commit

Permalink
Prepare for email tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed May 5, 2015
1 parent f97d817 commit b0baed8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
7 changes: 5 additions & 2 deletions htdocs/install/mysql/migration/3.7.0-3.8.0.sql
Expand Up @@ -602,6 +602,9 @@ ALTER TABLE llx_user DROP INDEX idx_user_fk_societe;
ALTER TABLE llx_user CHANGE COLUMN fk_societe fk_soc INTEGER;
ALTER TABLE llx_user ADD INDEX idx_user_fk_societe (fk_soc);



ALTER TABLE llx_actioncomm ADD COLUMN email_msgid varchar(256);
ALTER TABLE llx_actioncomm ADD COLUMN email_from varchar(256);
ALTER TABLE llx_actioncomm ADD COLUMN email_sender varchar(256);
ALTER TABLE llx_actioncomm ADD COLUMN email_to varchar(256);
ALTER TABLE llx_actioncomm ADD COLUMN errors_to varchar(256);

22 changes: 13 additions & 9 deletions htdocs/install/mysql/tables/llx_actioncomm.sql
Expand Up @@ -24,15 +24,12 @@ create table llx_actioncomm
(
id integer AUTO_INCREMENT PRIMARY KEY,
ref_ext varchar(128),
entity integer DEFAULT 1 NOT NULL, -- multi company id
entity integer DEFAULT 1 NOT NULL, -- multi company id
datep datetime, -- date start
datep2 datetime, -- date end
datea datetime, -- deprecated
datea2 datetime, -- deprecated

fk_action integer, -- type of action (optional link with llx_c_actioncomm or null)
code varchar(32) NULL, -- code of action for automatic action
label varchar(128) NOT NULL, -- label/title of event
fk_action integer, -- type of action (optional link with id in llx_c_actioncomm or null)
code varchar(32) NULL, -- code of action for automatic action ('AC_OTH_AUTO' for automatic actions, 'AC_EMAILIN_AUTO' for email input, 'AC_xxx' for manual action...)

datec datetime, -- date creation
tms timestamp, -- date modification
Expand All @@ -44,7 +41,7 @@ create table llx_actioncomm
fk_contact integer,
fk_parent integer NOT NULL default 0,

fk_user_action integer, -- user id of owner of action (currently also user id of actor that must do action. In future, actors assigned to action will be an array into table llx_actioncomm_resources)
fk_user_action integer, -- user id of owner of action (note that assigned users to event are store into another table)
transparency integer, -- transparency (ical standard). used to say if user assigned to event are busy or not by event (in future version, this field is deprecated and will be stored into table llx_actioncomm_resources)

fk_user_done integer, -- user id of user that has made action (deprecated)
Expand All @@ -55,8 +52,15 @@ create table llx_actioncomm
percent smallint NOT NULL default 0,
location varchar(128),
durationp real, -- planed duration
durationa real, -- deprecated
note text,

label varchar(256) NOT NULL, -- label/title of event or topic of email
note text, -- note of event or content of email

email_msgid varchar(256), -- when event was an email, we store here the msgid
email_from varchar(256), -- when event was an email, we store here the from
email_sender varchar(256), -- when event was an email, we store here the sender
email_to varchar(256), -- when event was an email, we store here the email_to
errors_to varchar(256), -- when event was an email, we store here the erros_to

fk_element integer DEFAULT NULL,
elementtype varchar(32) DEFAULT NULL
Expand Down

0 comments on commit b0baed8

Please sign in to comment.