From b37209565f97db3c824ec42a5f37434a7d5d0042 Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas Date: Wed, 5 Dec 2018 16:50:02 +0100 Subject: [PATCH] Correct sql index change --- htdocs/install/mysql/migration/9.0.0-10.0.0.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 b73cf4718d4..ab30b00e548 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,6 @@ -- 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 DROP INDEX idx_facture_uk_facnumber; 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 +ALTER TABLE llx_facture ADD UNIQUE idx_facture_uk_ref (ref, entity);