Skip to content
Snippets Groups Projects
Commit 3a201437 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: pgsql compatibility

parent 2587ee5c
No related branches found
No related tags found
No related merge requests found
......@@ -484,4 +484,7 @@ ALTER TABLE llx_don ADD phone varchar(24) after email;
ALTER TABLE llx_user ADD civilite varchar(6) after entity;
ALTER TABLE llx_element_element MODIFY sourcetype varchar(32) NOT NULL;
ALTER TABLE llx_element_element MODIFY targettype varchar(32) NOT NULL;
\ No newline at end of file
ALTER TABLE llx_element_element MODIFY targettype varchar(32) NOT NULL;
ALTER TABLE llx_societe_prices MODIFY tms timestamp NULL;
-- ALTER TABLE llx_societe_prices ALTER COLUMN tms DROP NOT NULL;
......@@ -17,4 +17,8 @@ ALTER TABLE llx_element_element MODIFY COLUMN sourcetype varchar(32) NOT NULL;
ALTER TABLE llx_element_element MODIFY COLUMN targettype varchar(32) NOT NULL;
ALTER TABLE llx_user MODIFY ref_ext varchar(50);
ALTER TABLE llx_user ADD COLUMN ref_int varchar(50) AFTER ref_ext;
\ No newline at end of file
ALTER TABLE llx_user ADD COLUMN ref_int varchar(50) AFTER ref_ext;
ALTER TABLE llx_societe MODIFY code_client varchar(24);
ALTER TABLE llx_societe MODIFY code_fournisseur varchar(24);
......@@ -36,8 +36,8 @@ create table llx_societe
status tinyint DEFAULT 1, -- cessation d'activité ( 1 -- en activité, 0 -- cessation d'activité)
code_client varchar(15), -- code client
code_fournisseur varchar(15), -- code founisseur
code_client varchar(24), -- code client
code_fournisseur varchar(24), -- code founisseur
code_compta varchar(15), -- code compta client
code_compta_fournisseur varchar(15), -- code compta founisseur
address varchar(255), -- company adresse
......
......@@ -20,7 +20,7 @@ create table llx_societe_prices
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_soc integer DEFAULT 0,
tms timestamp NOT NULL,
tms timestamp,
datec datetime,
fk_user_author integer,
price_level tinyint DEFAULT 1
......
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