diff --git a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql index 616c38a53b20a..33b86a4d8dfe0 100644 --- a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql +++ b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql @@ -130,4 +130,6 @@ ALTER TABLE llx_product_attribute_combination2val ADD INDEX idx_product_att_com2 ALTER TABLE llx_societe ADD COLUMN ip varchar(250); ALTER TABLE llx_recruitment_recruitmentcandidature ADD COLUMN ip varchar(250); -ALTER TABLE llx_socpeople ADD COLUMN ip varchar(250); \ No newline at end of file +ALTER TABLE llx_socpeople ADD COLUMN ip varchar(250); + +ALTER TABLE llx_ecm_files ADD COLUMN agenda_id integer; diff --git a/htdocs/install/mysql/tables/llx_ecm_files.sql b/htdocs/install/mysql/tables/llx_ecm_files.sql index 68a620c3e8192..94dcc7d5a6dc2 100644 --- a/htdocs/install/mysql/tables/llx_ecm_files.sql +++ b/htdocs/install/mysql/tables/llx_ecm_files.sql @@ -28,12 +28,13 @@ CREATE TABLE llx_ecm_files filename varchar(255) NOT NULL, -- file name only without any directory src_object_type varchar(64), -- Source object type ('proposal', 'invoice', ...) - object->table_element src_object_id integer, -- Source object id + agenda_id integer, -- Id of the event created at same time than the upload of the file fullpath_orig varchar(750), -- full path of original filename, when file is uploaded from a local computer description text, keywords varchar(750), -- list of keywords, separated with comma. Must be limited to most important keywords. cover text, -- is this file a file to use for a cover position integer, -- position of file among others - gen_or_uploaded varchar(12), -- 'generated' or 'uploaded' + gen_or_uploaded varchar(12), -- 'generated' or 'uploaded' extraparams varchar(255), -- for stocking other parameters with json format date_c datetime, tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,