From fd067f3c647b3cd675153cb97a4af2f3c565acdc Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 11 Mar 2011 19:47:14 +0000 Subject: [PATCH] New: add table for lock/unlock an element during the modification and logging all --- .../install/mysql/tables/llx_element_lock.sql | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 htdocs/install/mysql/tables/llx_element_lock.sql diff --git a/htdocs/install/mysql/tables/llx_element_lock.sql b/htdocs/install/mysql/tables/llx_element_lock.sql new file mode 100644 index 00000000000..daad04c9b4b --- /dev/null +++ b/htdocs/install/mysql/tables/llx_element_lock.sql @@ -0,0 +1,31 @@ +-- ============================================================================ +-- Copyright (C) 2011 Regis Houssin +-- +-- 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 +-- the Free Software Foundation; either version 2 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +-- +-- $Id$ +-- ============================================================================ + +create table llx_element_lock +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + fk_element integer NOT NULL, + elementtype varchar(16) NOT NULL, + datel datetime, -- date of lock + datem datetime, -- date of unlock/modif + fk_user_modif integer, + lock tinyint DEFAULT 0, -- 0 unlock, 1 lock + +)ENGINE=innodb;