Add field to protect a file by a password

This commit is contained in:
Laurent Destailleur
2023-02-24 11:15:17 +01:00
parent 34252d34c4
commit fdf374fdee
2 changed files with 2 additions and 0 deletions

View File

@@ -82,4 +82,5 @@ ALTER TABLE llx_supplier_proposal ADD INDEX idx_supplier_proposal_fk_user_valid
ALTER TABLE llx_supplier_proposal ADD INDEX idx_supplier_proposal_fk_projet (fk_projet);
ALTER TABLE llx_supplier_proposal ADD INDEX idx_supplier_proposal_fk_account(fk_account);
ALTER TABLE llx_ecm_files ADD COLUMN share_pass varchar(32) after share;

View File

@@ -22,6 +22,7 @@ CREATE TABLE llx_ecm_files
ref varchar(128), -- contains hash from filename+filepath
label varchar(128) NOT NULL, -- contains hash of file content
share varchar(128) NULL, -- contains hash for file sharing
share_pass varchar(32) NULL, -- password to access the file (encoded with dolEncrypt)
entity integer DEFAULT 1 NOT NULL, -- multi company id
filepath varchar(255) NOT NULL, -- relative to dolibarr document dir. Example module/def
filename varchar(255) NOT NULL, -- file name only without any directory