From d906b0551dc61d229fb4e73c2e4a7602535fc1ff Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 15 Aug 2010 17:17:38 +0000 Subject: [PATCH] Fix: Correct bad old data --- htdocs/install/mysql/migration/2.8.0-2.9.0.sql | 2 ++ htdocs/install/mysql/migration/2.9.0-3.0.0.sql | 3 +++ 2 files changed, 5 insertions(+) diff --git a/htdocs/install/mysql/migration/2.8.0-2.9.0.sql b/htdocs/install/mysql/migration/2.8.0-2.9.0.sql index ea16586009d..b30839b7ad3 100755 --- a/htdocs/install/mysql/migration/2.8.0-2.9.0.sql +++ b/htdocs/install/mysql/migration/2.8.0-2.9.0.sql @@ -319,3 +319,5 @@ ALTER TABLE llx_boxes_def DROP INDEX uk_boxes_def; ALTER TABLE llx_boxes_def MODIFY note varchar(255); ALTER TABLE llx_boxes_def ADD UNIQUE INDEX uk_boxes_def (file, entity, note); +-- Fix bad old data +UPDATE llx_bank_url SET type='payment' WHERE type='?' AND label='(payment)' AND url LIKE '%compta/paiement/fiche.php%' diff --git a/htdocs/install/mysql/migration/2.9.0-3.0.0.sql b/htdocs/install/mysql/migration/2.9.0-3.0.0.sql index 835633d49e6..d8ecb017355 100644 --- a/htdocs/install/mysql/migration/2.9.0-3.0.0.sql +++ b/htdocs/install/mysql/migration/2.9.0-3.0.0.sql @@ -10,6 +10,9 @@ -- To change type of field: ALTER TABLE llx_table MODIFY name varchar(60); -- +-- Fix bad old data +UPDATE llx_bank_url SET type='payment' WHERE type='?' AND label='(payment)' AND url LIKE '%compta/paiement/fiche.php%' + -- Add recuperableonly field alter table llx_product add column recuperableonly integer NOT NULL DEFAULT '0' after tva_tx; alter table llx_product_price add column recuperableonly integer NOT NULL DEFAULT '0' after tva_tx;