2003-02-10 17:03:38 +01:00
|
|
|
-- ============================================================================
|
|
|
|
|
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
2008-04-20 13:35:36 +02:00
|
|
|
-- Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
2009-04-20 16:43:34 +02:00
|
|
|
-- Copyright (C) 2008-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
2018-10-27 14:43:12 +02:00
|
|
|
-- Copyright (C) 2009 Regis Houssin <regis.houssin@inodbox.com>
|
2003-02-10 17:03:38 +01:00
|
|
|
--
|
|
|
|
|
-- 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
|
2013-01-16 15:36:08 +01:00
|
|
|
-- the Free Software Foundation; either version 3 of the License, or
|
2003-02-10 17:03:38 +01:00
|
|
|
-- (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
|
2019-09-23 21:55:30 +02:00
|
|
|
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2003-02-10 17:03:38 +01:00
|
|
|
--
|
|
|
|
|
-- ===========================================================================
|
2007-12-02 23:03:22 +01:00
|
|
|
|
2003-02-10 17:03:38 +01:00
|
|
|
--
|
2008-04-20 13:35:36 +02:00
|
|
|
-- Table for constants used to store Dolibarr setup
|
2003-02-10 17:03:38 +01:00
|
|
|
--
|
2003-03-01 17:28:45 +01:00
|
|
|
|
2003-02-10 17:03:38 +01:00
|
|
|
create table llx_const
|
|
|
|
|
(
|
|
|
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
2017-12-28 11:16:27 +01:00
|
|
|
name varchar(180) NOT NULL,
|
2009-04-20 16:43:34 +02:00
|
|
|
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
2024-06-30 15:26:31 +02:00
|
|
|
value text NOT NULL, -- max 65535 characters
|
|
|
|
|
type varchar(64) DEFAULT 'string', -- null or 'encrypted' if param has been encrypted
|
2003-03-13 18:30:20 +01:00
|
|
|
visible tinyint DEFAULT 1 NOT NULL,
|
2003-02-10 17:03:38 +01:00
|
|
|
note text,
|
2020-10-08 12:29:01 +02:00
|
|
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
2011-02-24 10:57:02 +01:00
|
|
|
) ENGINE=innodb;
|
2009-04-16 02:06:39 +02:00
|
|
|
|
2024-06-30 15:26:31 +02:00
|
|
|
--
|
2009-04-16 02:06:39 +02:00
|
|
|
-- List of codes for the field entity
|
|
|
|
|
--
|
|
|
|
|
-- 0 : common constant
|
|
|
|
|
-- 1 : first company constant
|
|
|
|
|
-- 2 : second company constant
|
|
|
|
|
-- 3 : etc...
|
2019-09-23 21:55:30 +02:00
|
|
|
--
|