From c2b107b34a11c5427ca702a5d498825f9b382c4e Mon Sep 17 00:00:00 2001
From: Brian <runningnak3d@gmail.com>
Date: Sat, 26 Dec 2009 22:45:38 -0700
Subject: * Update character conversion SQL for 3.1.3 to 3.2.2a * Add new SQL
 for conversion * Should no longer lose honor / arena points * Thanks WarHead

--HG--
branch : trunk
---
 sql/updates/6589_characters_characters.sql | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

(limited to 'sql/updates/6589_characters_characters.sql')

diff --git a/sql/updates/6589_characters_characters.sql b/sql/updates/6589_characters_characters.sql
index e43d7cc8271..6004625a69e 100644
--- a/sql/updates/6589_characters_characters.sql
+++ b/sql/updates/6589_characters_characters.sql
@@ -1,15 +1,16 @@
-UPDATE characters SET data = REPLACE(data,' ',' ');
+UPDATE characters SET data = REPLACE(data,'  ',' ');
 UPDATE characters SET data = CONCAT(TRIM(data),' ');
- 
+
 UPDATE `characters` SET `data` = CONCAT(
-SUBSTRING_INDEX(`data`, ' ', 1167 + 1), ' ',
-'0 0 ',
-SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 1246 + 1), ' ', -1246 + 1168 - 1), ' ',
-'0 0 0 ',
-SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 1294 + 1), ' ', -1294 + 1247 - 1), ' ',
-'0 '
-)
+        SUBSTRING_INDEX(`data`, ' ', 1167 + 1), ' ',
+        '0 0 ',
+        SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 1246 + 1), ' ', -1246 + 1168 - 1), ' ',
+        '0 0 0 ',
+        SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', 1294 + 1), ' ', -1294 + 1247 - 1), ' ',
+        '0 '
+        )
 WHERE length(SUBSTRING_INDEX(data, ' ', 1294)) < length(data) and length(SUBSTRING_INDEX(data, ' ', 1294+1)) >= length(data);
- 
-UPDATE characters SET data = REPLACE(data,' ',' ');
-UPDATE characters SET data = CONCAT(TRIM(data),' ');
\ No newline at end of file
+
+UPDATE characters SET data = REPLACE(data,'  ',' ');
+UPDATE characters SET data = CONCAT(TRIM(data),' ');
+
-- 
cgit v1.2.3

