New extrafields are visible into list by default
This commit is contained in:
parent
f007f9e7e5
commit
9654c4f168
@ -264,6 +264,8 @@ ALTER TABLE llx_extrafields ADD COLUMN tms timestamp;
|
|||||||
-- We fix value of 'list' fro m0 to 1 for all extrafields created before this migration
|
-- We fix value of 'list' fro m0 to 1 for all extrafields created before this migration
|
||||||
UPDATE llx_extrafields SET list = 1 WHERE list = 0 AND fk_user_author IS NULL and fk_user_modif IS NULL and datec IS NULL;
|
UPDATE llx_extrafields SET list = 1 WHERE list = 0 AND fk_user_author IS NULL and fk_user_modif IS NULL and datec IS NULL;
|
||||||
|
|
||||||
|
ALTER TABLE llx_extrafields MODIFY COLUMN list integer DEFAULT 1;
|
||||||
|
--VPGSQL8.2 ALTER TABLE llx_extrafields ALTER COLUMN list SET DEFAULT 1;
|
||||||
|
|
||||||
ALTER TABLE llx_extrafields MODIFY COLUMN langs varchar(64);
|
ALTER TABLE llx_extrafields MODIFY COLUMN langs varchar(64);
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,7 @@ create table llx_extrafields
|
|||||||
pos integer DEFAULT 0,
|
pos integer DEFAULT 0,
|
||||||
alwayseditable integer DEFAULT 0, -- 1 if field can be edited whatever is element status
|
alwayseditable integer DEFAULT 0, -- 1 if field can be edited whatever is element status
|
||||||
param text, -- extra parameters to define possible values of field
|
param text, -- extra parameters to define possible values of field
|
||||||
list integer DEFAULT 0, -- list of values for field that are combo lists
|
list integer DEFAULT 1, -- list of values for field that are combo lists
|
||||||
langs varchar(64), -- example: fileofmymodule@mymodule
|
langs varchar(64), -- example: fileofmymodule@mymodule
|
||||||
ishidden integer DEFAULT 0, -- Can be foreign key of external system
|
ishidden integer DEFAULT 0, -- Can be foreign key of external system
|
||||||
fk_user_author integer, -- user making creation
|
fk_user_author integer, -- user making creation
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user