Fix: compatibility with postgresql
This commit is contained in:
parent
4987bec341
commit
ec33c4a999
@ -9,7 +9,6 @@
|
|||||||
-- To rename a column: ALTER TABLE llx_table CHANGE COLUMN oldname newname varchar(60);
|
-- To rename a column: ALTER TABLE llx_table CHANGE COLUMN oldname newname varchar(60);
|
||||||
-- 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 MODIFY amount double(24,8);
|
||||||
ALTER TABLE llx_paiement_facture MODIFY amount double(24,8);
|
ALTER TABLE llx_paiement_facture MODIFY amount double(24,8);
|
||||||
@ -168,3 +167,5 @@ UPDATE llx_c_type_contact set module='order_supplier' WHERE module='supplier_ord
|
|||||||
|
|
||||||
ALTER TABLE llx_facturedet DROP INDEX uk_fk_remise_except;
|
ALTER TABLE llx_facturedet DROP INDEX uk_fk_remise_except;
|
||||||
ALTER TABLE llx_facturedet ADD UNIQUE INDEX uk_fk_remise_except (fk_remise_except, fk_facture);
|
ALTER TABLE llx_facturedet ADD UNIQUE INDEX uk_fk_remise_except (fk_remise_except, fk_facture);
|
||||||
|
|
||||||
|
ALTER TABLE llx_societe_remise MODIFY remise_client double(6,3) DEFAULT 0 NOT NULL;
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
|
-- Copyright (C) 2011 Regis Houssin <regis@dolibarr.fr>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
@ -26,8 +27,8 @@ create table llx_societe_remise
|
|||||||
fk_soc integer NOT NULL,
|
fk_soc integer NOT NULL,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
datec datetime, -- creation date
|
datec datetime, -- creation date
|
||||||
fk_user_author integer, -- utilisateur qui a créé l'info
|
fk_user_author integer, -- creation user
|
||||||
remise_client real DEFAULT 0, -- remise systématique pour le client
|
remise_client double(6,3) DEFAULT 0 NOT NULL, -- discount
|
||||||
note text
|
note text
|
||||||
|
|
||||||
)type=innodb;
|
)type=innodb;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user