This should fix mysql syntax errors some people were getting with 9090_characters_item_instance.sql

--HG--
branch : trunk
This commit is contained in:
Shauren committed 2010-07-30 17:50:21 +02:00
1 parent ab95e5a6dc
commit 35ce512af8
1 file changed
+7 -1
@@ -11,12 +11,18 @@ ALTER TABLE `item_instance`
ADD `durability` int(10) unsigned NOT NULL default '0' AFTER `randomPropertyId`,
ADD `playedTime` int(10) unsigned NOT NULL default '0' AFTER `durability`;
-- Temporarily change delimiter to prevent SQL syntax errors
DELIMITER ||
-- Function to convert ints from unsigned to signed
DROP FUNCTION IF EXISTS `uint32toint32`;
CREATE FUNCTION `uint32toint32`(input INT(10) UNSIGNED) RETURNS INT(11) SIGNED DETERMINISTIC
BEGIN
RETURN input;
END;
END||
-- Restore original delimiter
DELIMITER ;
-- Move data to new fields
UPDATE `item_instance` SET