Skip to content
Snippets Groups Projects
Commit ec043063 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix #3772 Test lower value to avoid mysql limit

parent bbbd5f52
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ ALTER TABLE llx_societe_rib MODIFY COLUMN code_banque varchar(128);
ALTER TABLE llx_contrat ADD COLUMN ref_customer varchar(30);
ALTER TABLE llx_ecm_directories MODIFY COLUMN fullpath varchar(10000);
ALTER TABLE llx_ecm_directories MODIFY COLUMN fullpath varchar(1000);
CREATE TABLE llx_ecm_files
(
......@@ -77,8 +77,8 @@ CREATE TABLE llx_ecm_files
label varchar(64) NOT NULL,
entity integer DEFAULT 1 NOT NULL, -- multi company id
filename varchar(255) NOT NULL, -- file name only without any directory
fullpath varchar(10000) NOT NULL, -- relative to dolibarr document dir. example abc/def/myfile
fullpath_orig varchar(10000), -- full path of original filename, when file is uploaded from a local computer
fullpath varchar(750) NOT NULL, -- relative to dolibarr document dir. example abc/def/myfile
fullpath_orig varchar(750), -- full path of original filename, when file is uploaded from a local computer
description text,
keywords text, -- list of keywords, separated with comma
cover text, -- is this file a file to use for a cover
......@@ -90,6 +90,8 @@ CREATE TABLE llx_ecm_files
acl text -- for future permission 'per file'
) ENGINE=innodb;
ALTER TABLE llx_ecm_directories MODIFY COLUMN fullpath varchar(1000);
ALTER TABLE llx_ecm_files ADD UNIQUE INDEX uk_ecm_files_fullpath(fullpath);
......
......@@ -27,7 +27,7 @@ CREATE TABLE llx_ecm_directories
fk_parent integer,
description varchar(255) NOT NULL,
cachenbofdoc integer NOT NULL DEFAULT 0,
fullpath varchar(10000),
fullpath varchar(750),
extraparams varchar(255), -- for stock other parameters with json format
date_c datetime,
date_m timestamp,
......
......@@ -22,8 +22,8 @@ CREATE TABLE llx_ecm_files
label varchar(64) NOT NULL,
entity integer DEFAULT 1 NOT NULL, -- multi company id
filename varchar(255) NOT NULL, -- file name only without any directory
fullpath varchar(10000) NOT NULL, -- relative to dolibarr document dir. example abc/def/myfile
fullpath_orig varchar(10000), -- full path of original filename, when file is uploaded from a local computer
fullpath varchar(750) NOT NULL, -- relative to dolibarr document dir. example abc/def/myfile
fullpath_orig varchar(750), -- full path of original filename, when file is uploaded from a local computer
description text,
keywords text, -- list of keywords, separated with comma
cover text, -- is this file a file to use for a cover
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment