Add missing column

This commit is contained in:
Laurent Destailleur 2018-12-14 10:56:13 +01:00
parent fab6dde593
commit 6eaa6a1d28
2 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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),