From 6eaa6a1d2893afe5b4a8e9c13e8aa94ab85c380b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 14 Dec 2018 10:56:13 +0100 Subject: [PATCH] Add missing column --- htdocs/install/mysql/migration/9.0.0-10.0.0.sql | 2 ++ htdocs/install/mysql/tables/llx_loan.sql | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/install/mysql/migration/9.0.0-10.0.0.sql b/htdocs/install/mysql/migration/9.0.0-10.0.0.sql index 1f5235cb43d..834cedb4694 100644 --- a/htdocs/install/mysql/migration/9.0.0-10.0.0.sql +++ b/htdocs/install/mysql/migration/9.0.0-10.0.0.sql @@ -35,6 +35,8 @@ -- For 10.0 +ALTER TABLE llx_loan ADD COLUMN insurance_amount double(24,8) DEFAULT 0; + ALTER TABLE llx_facture DROP INDEX idx_facture_uk_facnumber; ALTER TABLE llx_facture CHANGE facnumber ref VARCHAR(30) NOT NULL; ALTER TABLE llx_facture ADD UNIQUE INDEX uk_facture_ref (ref, entity); diff --git a/htdocs/install/mysql/tables/llx_loan.sql b/htdocs/install/mysql/tables/llx_loan.sql index 7277fa85d47..8237c33e149 100644 --- a/htdocs/install/mysql/tables/llx_loan.sql +++ b/htdocs/install/mysql/tables/llx_loan.sql @@ -27,7 +27,7 @@ create table llx_loan label varchar(80) NOT NULL, fk_bank integer, - capital double(24,8) default 0 NOT NULL, + capital double(24,8) DEFAULT 0 NOT NULL, datestart date, dateend date, nbterm real, @@ -36,9 +36,10 @@ create table llx_loan note_private text, note_public text, - capital_position double(24,8) default 0, -- If not a new loan, just have the position of capital + capital_position double(24,8) DEFAULT 0, -- If not a new loan, just have the position of capital date_position date, - + insurance_amount double(24,8) DEFAULT 0, + paid smallint default 0 NOT NULL, accountancy_account_capital varchar(32),