Skip to content
Snippets Groups Projects
Commit b67fa024 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: compatibility with postgresql

parent c4fa4015
No related branches found
No related tags found
No related merge requests found
......@@ -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 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_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 MODIFY model_pdf varchar(255);
......@@ -27,16 +27,18 @@ ALTER TABLE llx_propal MODIFY model_pdf varchar(255);
-- Delete old constants
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_MENU_BARRELEFT';
DELETE from llx_const where NAME = 'MAIN_MENUFRONT_BARRELEFT';
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_MENU_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_commande_fournisseur 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_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_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;
-- ========================================================================
-- 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
-- it under the terms of the GNU General Public License as published by
......@@ -27,7 +28,7 @@ create table llx_societe_remise
tms timestamp,
datec datetime, -- creation date
fk_user_author integer, -- creation user
remise_client real DEFAULT 0, -- discount
remise_client double(6,3) DEFAULT 0 NOT NULL, -- discount
note text
)ENGINE=innodb;
......
......@@ -23,16 +23,16 @@
create table llx_societe_remise_except
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_soc integer NOT NULL, -- client
datec datetime,
amount_ht double(24,8) NOT NULL,
amount_tva double(24,8) DEFAULT 0 NOT NULL,
amount_ttc double(24,8) DEFAULT 0 NOT NULL,
tva_tx double(6,3) DEFAULT 0 NOT NULL,
fk_user integer NOT NULL,
fk_facture_line integer,
fk_facture integer,
fk_facture_source integer,
description varchar(255) NOT NULL
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_soc integer NOT NULL, -- client
datec datetime,
amount_ht double(24,8) NOT NULL,
amount_tva double(24,8) DEFAULT 0 NOT NULL,
amount_ttc double(24,8) DEFAULT 0 NOT NULL,
tva_tx double(6,3) DEFAULT 0 NOT NULL,
fk_user integer NOT NULL,
fk_facture_line integer,
fk_facture integer,
fk_facture_source integer,
description varchar(255) NOT NULL
)ENGINE=innodb;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment