SQL additions
This commit is contained in:
parent
2d09d8196f
commit
e76b6e740f
@ -370,3 +370,23 @@ INSERT INTO llx_c_incoterms (code, libelle, active) VALUES ('DDP', 'Delivered Du
|
||||
-- Extrafields fk_object must be unique (1-1 relation)
|
||||
ALTER TABLE llx_societe_extrafields DROP INDEX idx_societe_extrafields;
|
||||
ALTER TABLE llx_societe_extrafields ADD UNIQUE INDEX uk_societe_extrafields (fk_object);
|
||||
|
||||
create table llx_c_price_global_variable
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
code varchar(20) NOT NULL,
|
||||
description text DEFAULT NULL,
|
||||
value double(24,8) DEFAULT 0
|
||||
)ENGINE=innodb;
|
||||
|
||||
create table llx_c_price_global_variable_updater
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
type integer NOT NULL,
|
||||
description text DEFAULT NULL,
|
||||
parameters text DEFAULT NULL,
|
||||
fk_variable integer NOT NULL,
|
||||
update_interval integer DEFAULT 0,
|
||||
next_update integer DEFAULT 0,
|
||||
last_status text DEFAULT NULL
|
||||
)ENGINE=innodb;
|
||||
|
||||
25
htdocs/install/mysql/tables/llx_c_price_global_variable.sql
Normal file
25
htdocs/install/mysql/tables/llx_c_price_global_variable.sql
Normal file
@ -0,0 +1,25 @@
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2015 Ion agorria <ion@agorria.com>
|
||||
--
|
||||
-- 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 3 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, see <http://www.gnu.org/licenses/>.
|
||||
--
|
||||
-- ============================================================================
|
||||
|
||||
create table llx_c_price_global_variable
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
code varchar(20) NOT NULL,
|
||||
description text DEFAULT NULL,
|
||||
value double(24,8) DEFAULT 0
|
||||
)ENGINE=innodb;
|
||||
@ -0,0 +1,29 @@
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2015 Ion agorria <ion@agorria.com>
|
||||
--
|
||||
-- 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 3 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, see <http://www.gnu.org/licenses/>.
|
||||
--
|
||||
-- ============================================================================
|
||||
|
||||
create table llx_c_price_global_variable_updater
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
type integer NOT NULL,
|
||||
description text DEFAULT NULL,
|
||||
parameters text DEFAULT NULL,
|
||||
fk_variable integer NOT NULL,
|
||||
update_interval integer DEFAULT 0,
|
||||
next_update integer DEFAULT 0,
|
||||
last_status text DEFAULT NULL
|
||||
)ENGINE=innodb;
|
||||
Loading…
Reference in New Issue
Block a user