From 68f1a80501b16dfe9d0e84fd6915337e73f0c9f6 Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Mon, 26 Oct 2009 11:23:00 +0000 Subject: [PATCH] Fix: compatibility with postgesql --- htdocs/install/mysql/migration/2.6.0-2.7.0.sql | 1 + htdocs/install/mysql/tables/llx_c_forme_juridique.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/install/mysql/migration/2.6.0-2.7.0.sql b/htdocs/install/mysql/migration/2.6.0-2.7.0.sql index 1b9b41b8464..5a1d7ed05e5 100644 --- a/htdocs/install/mysql/migration/2.6.0-2.7.0.sql +++ b/htdocs/install/mysql/migration/2.6.0-2.7.0.sql @@ -458,6 +458,7 @@ alter table llx_commandedet modify special_code integer UNSIGNED DEFAULT 0; alter table llx_facturedet modify special_code integer UNSIGNED DEFAULT 0; alter table llx_propaldet modify special_code integer UNSIGNED DEFAULT 0; alter table llx_societe modify special_code integer NULL; +alter table llx_c_forme_juridique code integer UNIQUE NOT NULL; ALTER TABLE llx_adherent_options ADD INDEX uk_adherent_options (adhid); ALTER TABLE llx_bank_class ADD UNIQUE INDEX idx_bank_class_lineid (lineid); diff --git a/htdocs/install/mysql/tables/llx_c_forme_juridique.sql b/htdocs/install/mysql/tables/llx_c_forme_juridique.sql index a0e12d76422..29317db44f3 100644 --- a/htdocs/install/mysql/tables/llx_c_forme_juridique.sql +++ b/htdocs/install/mysql/tables/llx_c_forme_juridique.sql @@ -22,7 +22,7 @@ create table llx_c_forme_juridique ( rowid integer AUTO_INCREMENT PRIMARY KEY, - code varchar(12) UNIQUE NOT NULL, + code integer UNIQUE NOT NULL, fk_pays integer NOT NULL, libelle varchar(255), isvatexempted tinyint DEFAULT 0 NOT NULL, -- GitLab