From 1ddcd5ffb0e5d0ecd471a44c1b0009a2215b0a2f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 17 Mar 2012 14:59:45 +0100 Subject: [PATCH] Prepare to allow to define nb of lines fox each box --- htdocs/install/mysql/migration/3.1.0-3.2.0.sql | 1 + htdocs/install/mysql/tables/llx_boxes.sql | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/htdocs/install/mysql/migration/3.1.0-3.2.0.sql b/htdocs/install/mysql/migration/3.1.0-3.2.0.sql index 5f077ce0e46..d88cef126cb 100755 --- a/htdocs/install/mysql/migration/3.1.0-3.2.0.sql +++ b/htdocs/install/mysql/migration/3.1.0-3.2.0.sql @@ -443,3 +443,4 @@ ALTER TABLE llx_facture ADD COLUMN extraparams varchar(255) AFTER import_key; ALTER TABLE llx_fichinter ADD COLUMN extraparams varchar(255) AFTER model_pdf; ALTER TABLE llx_deplacement ADD COLUMN extraparams varchar(255) AFTER note_public; +ALTER TABLE llx_boxes ADD COLUMN maxline integer NULL; diff --git a/htdocs/install/mysql/tables/llx_boxes.sql b/htdocs/install/mysql/tables/llx_boxes.sql index 8486b713962..1ab57d9c0b6 100644 --- a/htdocs/install/mysql/tables/llx_boxes.sql +++ b/htdocs/install/mysql/tables/llx_boxes.sql @@ -1,6 +1,6 @@ -- ============================================================================ --- Copyright (C) 2003 Rodolphe Quiedeville --- Copyright (C) 2006 Laurent Destailleur +-- Copyright (C) 2003 Rodolphe Quiedeville +-- Copyright (C) 2006-2012 Laurent Destailleur -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by @@ -28,5 +28,6 @@ create table llx_boxes box_id integer NOT NULL, position smallint NOT NULL, box_order varchar(3) NOT NULL, - fk_user integer default 0 NOT NULL + fk_user integer default 0 NOT NULL, + maxline integer NULL )ENGINE=innodb;