eqemu-server/utils/sql/svn/1803_required_tasks_xpreward_signed.sql
2013-02-16 16:14:39 -08:00

8 lines
476 B
SQL

-- Convert Negative values to be less than the max signed value
UPDATE tasks SET xpreward = (xpreward - 2147483649) WHERE xpreward > 4294941695 AND xpreward < 4294967196;
-- Change the xpreward field to be signed
ALTER TABLE tasks CHANGE `xpreward` `xpreward` INT(10) SIGNED NOT NULL DEFAULT '0';
-- Convert the previously converted values into actual negative values
UPDATE tasks SET xpreward = (xpreward - 2147483647) WHERE xpreward > 2147458047 AND xpreward < 2147483548;