Fix: compatibility with postgresql
This commit is contained in:
parent
c4fa4015ab
commit
b67fa024c4
@ -167,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;
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
ALTER TABLE llx_adherent MODIFY login varchar(50);
|
ALTER TABLE llx_adherent MODIFY login varchar(50);
|
||||||
|
|
||||||
ALTER TABLE llx_c_actioncomm add COLUMN position integer NOT NULL DEFAULT 0;
|
ALTER TABLE llx_c_actioncomm ADD COLUMN position integer NOT NULL DEFAULT 0;
|
||||||
|
|
||||||
ALTER TABLE llx_commande_fournisseur MODIFY model_pdf varchar(255);
|
ALTER TABLE llx_commande_fournisseur MODIFY model_pdf varchar(255);
|
||||||
ALTER TABLE llx_commande MODIFY model_pdf varchar(255);
|
ALTER TABLE llx_commande MODIFY model_pdf varchar(255);
|
||||||
@ -27,16 +27,18 @@ ALTER TABLE llx_propal MODIFY model_pdf varchar(255);
|
|||||||
|
|
||||||
|
|
||||||
-- Delete old constants
|
-- Delete old constants
|
||||||
DELETE from llx_const where NAME = 'MAIN_MENU_BARRETOP';
|
DELETE FROM llx_const WHERE name = 'MAIN_MENU_BARRETOP';
|
||||||
DELETE from llx_const where NAME = 'MAIN_MENUFRONT_BARRETOP';
|
DELETE FROM llx_const WHERE name = 'MAIN_MENUFRONT_BARRETOP';
|
||||||
DELETE from llx_const where NAME = 'MAIN_MENU_BARRELEFT';
|
DELETE FROM llx_const WHERE name = 'MAIN_MENU_BARRELEFT';
|
||||||
DELETE from llx_const where NAME = 'MAIN_MENUFRONT_BARRELEFT';
|
DELETE FROM llx_const WHERE name = 'MAIN_MENUFRONT_BARRELEFT';
|
||||||
|
|
||||||
ALTER TABLE llx_facture_fourn ADD column ref_ext varchar(30) after entity;
|
ALTER TABLE llx_facture_fourn ADD COLUMN ref_ext varchar(30) AFTER entity;
|
||||||
ALTER TABLE llx_commande_fournisseur ADD column ref_ext varchar(30) after entity;
|
ALTER TABLE llx_commande_fournisseur ADD COLUMN ref_ext varchar(30) AFTER entity;
|
||||||
|
|
||||||
|
|
||||||
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 ADD column fk_currency integer DEFAULT 0 after fk_forme_juridique;
|
ALTER TABLE llx_societe ADD COLUMN fk_currency integer DEFAULT 0 AFTER fk_forme_juridique;
|
||||||
|
|
||||||
|
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
|
||||||
@ -27,7 +28,7 @@ create table llx_societe_remise
|
|||||||
tms timestamp,
|
tms timestamp,
|
||||||
datec datetime, -- creation date
|
datec datetime, -- creation date
|
||||||
fk_user_author integer, -- creation user
|
fk_user_author integer, -- creation user
|
||||||
remise_client real DEFAULT 0, -- discount
|
remise_client double(6,3) DEFAULT 0 NOT NULL, -- discount
|
||||||
note text
|
note text
|
||||||
|
|
||||||
)ENGINE=innodb;
|
)ENGINE=innodb;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user