From be251cd2b0f39299cd6a6b5dbba0171c56c05037 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 17 May 2016 18:22:48 +0200 Subject: [PATCH] Add high risk sql at end --- htdocs/install/mysql/migration/3.9.0-4.0.0.sql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/install/mysql/migration/3.9.0-4.0.0.sql b/htdocs/install/mysql/migration/3.9.0-4.0.0.sql index f34e52dafe6..136a7114eb0 100644 --- a/htdocs/install/mysql/migration/3.9.0-4.0.0.sql +++ b/htdocs/install/mysql/migration/3.9.0-4.0.0.sql @@ -430,8 +430,6 @@ ALTER TABLE llx_categorie_account ADD CONSTRAINT fk_categorie_account_fk_account -- Delete old deprecated field ALTER TABLE llx_product_stock DROP COLUMN pmp; --- VMYSQL4.1 ALTER TABLE llx_c_type_resource CHANGE COLUMN rowid rowid integer NOT NULL AUTO_INCREMENT; - ALTER TABLE llx_resource ADD COLUMN asset_number varchar(255) after ref; ALTER TABLE llx_resource ADD COLUMN datec datetime DEFAULT NULL; ALTER TABLE llx_resource ADD COLUMN date_valid datetime DEFAULT NULL; @@ -468,6 +466,9 @@ update llx_product_batch set batch = '000000' where batch = 'Undefined'; update llx_product_lot set batch = '000000' where batch = 'Undefined'; update llx_stock_mouvement set batch = '000000' where batch = 'Undefined'; --- At end +-- At end (higher risk of error) + +-- VMYSQL4.1 ALTER TABLE llx_c_type_resource CHANGE COLUMN rowid rowid integer NOT NULL AUTO_INCREMENT; ALTER TABLE llx_product_batch ADD UNIQUE INDEX uk_product_batch (fk_product_stock, batch); +