Skip to content

Commit

Permalink
NEW Add column agenda_id to implement the link between files and event
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 3, 2024
1 parent 916423f commit 8bbef7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion htdocs/install/mysql/migration/20.0.0-21.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);
ALTER TABLE llx_socpeople ADD COLUMN ip varchar(250);

ALTER TABLE llx_ecm_files ADD COLUMN agenda_id integer;
3 changes: 2 additions & 1 deletion htdocs/install/mysql/tables/llx_ecm_files.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8bbef7b

Please sign in to comment.