Files
dolibarr/htdocs/install/mysql/tables/llx_accounting_system.sql
Alexandre Janniaux c354a01de0 FIX: add missing fields during install llx_accounting_system (#31389)
* llx_accounting_system: add missing fields during install

The current code expects to be able to assign an author for the object
and store the creation date.

* Remove constraint

The constraint is useless for the integrity of data of the table and for the business rules using this table, so we must avoid it if we can. This will avoid error when loading dump, errors on import and more...

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-15 16:37:30 +02:00

31 lines
1.3 KiB
SQL

-- ============================================================================
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
-- Copyright (C) 2011-2016 Alexandre Spangaro <aspangaro@open-dsi.fr>
--
-- 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 <https://www.gnu.org/licenses/>.
--
-- Table of chart of accounts
-- ============================================================================
create table llx_accounting_system
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_country integer,
pcg_version varchar(32) NOT NULL,
label varchar(128) NOT NULL,
active smallint DEFAULT 0,
date_creation datetime,
fk_user_author integer
)ENGINE=innodb;