From f168c01446837a3cf360c1fb7dd869bc8bb01dc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sat, 21 Aug 2010 10:51:18 +0200 Subject: [PATCH] Removes erroneous phones. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- upgrade/1.0.1/04_phones.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upgrade/1.0.1/04_phones.sql b/upgrade/1.0.1/04_phones.sql index 9dc6fdf..1c7630d 100644 --- a/upgrade/1.0.1/04_phones.sql +++ b/upgrade/1.0.1/04_phones.sql @@ -1,4 +1,6 @@ ALTER TABLE profile_phones MODIFY COLUMN pid INT(6) NOT NULL DEFAULT 0; ALTER TABLE profile_phones MODIFY COLUMN link_id INT(6) NOT NULL DEFAULT 0; +DELETE FROM profile_phones WHERE search_tel = '' OR display_tel = '' OR link_type = 'hq'; + -- vim:set syntax=mysql: -- 2.1.4