From 79b6719b88034f983f4e3d945f77d205690b40e4 Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas Date: Tue, 4 Dec 2018 09:00:53 +0100 Subject: [PATCH] Change index --- htdocs/install/mysql/migration/9.0.0-10.0.0.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/install/mysql/migration/9.0.0-10.0.0.sql b/htdocs/install/mysql/migration/9.0.0-10.0.0.sql index 2386ffd1476..b73cf4718d4 100644 --- a/htdocs/install/mysql/migration/9.0.0-10.0.0.sql +++ b/htdocs/install/mysql/migration/9.0.0-10.0.0.sql @@ -27,5 +27,5 @@ -- To set a field as default NULL: -- VPGSQL8.2 ALTER TABLE llx_table ALTER COLUMN name SET DEFAULT NULL; -- Note: fields with type BLOB/TEXT can't have default value. - -ALTER TABLE llx_facture CHANGE facnumber ref VARCHAR(30) NOT NULL; \ No newline at end of file +ALTER TABLE llx_facture CHANGE facnumber ref VARCHAR(30) NOT NULL; +ALTER TABLE llx_facture DROP INDEX idx_facture_uk_facnumber, ADD UNIQUE idx_facture_uk_ref (ref, entity); \ No newline at end of file