Fix: Uniformize field type. This also fix postgreql compatibility.
This commit is contained in:
parent
053b53196b
commit
1619a4cc67
@ -10,6 +10,9 @@
|
|||||||
-- To change type of field: ALTER TABLE llx_table MODIFY name varchar(60);
|
-- To change type of field: ALTER TABLE llx_table MODIFY name varchar(60);
|
||||||
-- To remove a column: ALTER TABLE llx_table DROP COLUMN colname;
|
-- To remove a column: ALTER TABLE llx_table DROP COLUMN colname;
|
||||||
|
|
||||||
|
ALTER TABLE llx_paiement MODIFY amount double(24,8);
|
||||||
|
ALTER TABLE llx_paiement_facture MODIFY amount double(24,8);
|
||||||
|
|
||||||
-- Fix bad old data
|
-- Fix bad old data
|
||||||
UPDATE llx_bank_url SET type='payment' WHERE type='?' AND label='(payment)' AND url LIKE '%compta/paiement/fiche.php%';
|
UPDATE llx_bank_url SET type='payment' WHERE type='?' AND label='(payment)' AND url LIKE '%compta/paiement/fiche.php%';
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,7 @@ create table llx_paiement
|
|||||||
datec datetime, -- date de creation
|
datec datetime, -- date de creation
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
datep datetime, -- payment date
|
datep datetime, -- payment date
|
||||||
amount real DEFAULT 0,
|
amount double(24,8) DEFAULT 0,
|
||||||
fk_paiement integer NOT NULL,
|
fk_paiement integer NOT NULL,
|
||||||
num_paiement varchar(50),
|
num_paiement varchar(50),
|
||||||
note text,
|
note text,
|
||||||
|
|||||||
@ -23,5 +23,5 @@ create table llx_paiement_facture
|
|||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
fk_paiement integer,
|
fk_paiement integer,
|
||||||
fk_facture integer,
|
fk_facture integer,
|
||||||
amount real DEFAULT 0
|
amount double(24,8) DEFAULT 0
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user