Fix #3772 Test lower value to avoid mysql limit
This commit is contained in:
parent
bbbd5f5202
commit
ec04306348
@ -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_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
|
CREATE TABLE llx_ecm_files
|
||||||
(
|
(
|
||||||
@ -77,8 +77,8 @@ CREATE TABLE llx_ecm_files
|
|||||||
label varchar(64) NOT NULL,
|
label varchar(64) NOT NULL,
|
||||||
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
||||||
filename varchar(255) NOT NULL, -- file name only without any directory
|
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 varchar(750) 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_orig varchar(750), -- full path of original filename, when file is uploaded from a local computer
|
||||||
description text,
|
description text,
|
||||||
keywords text, -- list of keywords, separated with comma
|
keywords text, -- list of keywords, separated with comma
|
||||||
cover text, -- is this file a file to use for a cover
|
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'
|
acl text -- for future permission 'per file'
|
||||||
) ENGINE=innodb;
|
) 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);
|
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,
|
fk_parent integer,
|
||||||
description varchar(255) NOT NULL,
|
description varchar(255) NOT NULL,
|
||||||
cachenbofdoc integer NOT NULL DEFAULT 0,
|
cachenbofdoc integer NOT NULL DEFAULT 0,
|
||||||
fullpath varchar(10000),
|
fullpath varchar(750),
|
||||||
extraparams varchar(255), -- for stock other parameters with json format
|
extraparams varchar(255), -- for stock other parameters with json format
|
||||||
date_c datetime,
|
date_c datetime,
|
||||||
date_m timestamp,
|
date_m timestamp,
|
||||||
|
|||||||
@ -22,8 +22,8 @@ CREATE TABLE llx_ecm_files
|
|||||||
label varchar(64) NOT NULL,
|
label varchar(64) NOT NULL,
|
||||||
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
||||||
filename varchar(255) NOT NULL, -- file name only without any directory
|
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 varchar(750) 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_orig varchar(750), -- full path of original filename, when file is uploaded from a local computer
|
||||||
description text,
|
description text,
|
||||||
keywords text, -- list of keywords, separated with comma
|
keywords text, -- list of keywords, separated with comma
|
||||||
cover text, -- is this file a file to use for a cover
|
cover text, -- is this file a file to use for a cover
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user