Add column for private widgets

This commit is contained in:
Laurent Destailleur 2022-04-01 09:35:45 +02:00
parent 867883e9b1
commit 113af78a9c
2 changed files with 3 additions and 0 deletions

View File

@ -299,3 +299,4 @@ UPDATE llx_c_availability SET type_duration = 'w', qty = 2 WHERE code = 'AV_2W';
UPDATE llx_c_availability SET type_duration = 'w', qty = 3 WHERE code = 'AV_3W';
UPDATE llx_c_availability SET type_duration = 'w', qty = 4 WHERE code = 'AV_4W';
ALTER TABLE llx_boxes_def ADD COLUMN fk_user integer DEFAULT 0 NOT NULL;

View File

@ -18,11 +18,13 @@
--
-- ===========================================================================
-- Table
create table llx_boxes_def
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
file varchar(200) NOT NULL, -- Do not increase this as file+note must be small to allow index
entity integer DEFAULT 1 NOT NULL, -- multi company id
fk_user integer DEFAULT 0 NOT NULL, -- if widget is privte to one user
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
note varchar(130) -- Do not increase this as file+note must be small to allow index
)ENGINE=innodb;