From 1bae707246c64de402a8c1a0f83ed8875a0a0680 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 13 Apr 2021 11:38:37 +0200 Subject: [PATCH] Prepare table for future enhancement --- .../install/mysql/migration/13.0.0-14.0.0.sql | 8 ++++++ .../tables/llx_accounting_groups_account.sql | 25 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 htdocs/install/mysql/tables/llx_accounting_groups_account.sql diff --git a/htdocs/install/mysql/migration/13.0.0-14.0.0.sql b/htdocs/install/mysql/migration/13.0.0-14.0.0.sql index ba36b27e885..ac47eb7957c 100644 --- a/htdocs/install/mysql/migration/13.0.0-14.0.0.sql +++ b/htdocs/install/mysql/migration/13.0.0-14.0.0.sql @@ -48,6 +48,14 @@ UPDATE llx_c_country SET eec = 1 WHERE code IN ('AT','BE','BG','CY','CZ','DE','D -- For v14 +create table llx_accounting_groups_account +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + fk_accounting_account INTEGER NOT NULL, + fk_c_accounting_category INTEGER NOT NULL +)ENGINE=innodb; + + ALTER TABLE llx_oauth_token ADD COLUMN restricted_ips varchar(200); ALTER TABLE llx_oauth_token ADD COLUMN datec datetime DEFAULT NULL; ALTER TABLE llx_oauth_token ADD COLUMN tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP; diff --git a/htdocs/install/mysql/tables/llx_accounting_groups_account.sql b/htdocs/install/mysql/tables/llx_accounting_groups_account.sql new file mode 100644 index 00000000000..86e620ea4bb --- /dev/null +++ b/htdocs/install/mysql/tables/llx_accounting_groups_account.sql @@ -0,0 +1,25 @@ +-- ============================================================================ +-- Copyright (C) 2004-2021 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 +-- 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 . +-- +-- Table of 'accounts' for accountancy expert module +-- ============================================================================ + +create table llx_accounting_groups_account +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + fk_accounting_account INTEGER NOT NULL, + fk_c_accounting_category INTEGER NOT NULL +)ENGINE=innodb;