1
0
mirror of https://github.com/moparisthebest/xAuth synced 2024-12-21 22:58:51 -05:00
xAuth/sql/mysql/0002_add_location_uid.sql
Zach Iverson 06b56509ff 1. Major refactor of database related classes.
2. Added global teleport locations
2011-07-29 17:29:51 -04:00

5 lines
320 B
SQL

ALTER TABLE `{TABLE_LOCATION}` ADD COLUMN `uid` VARCHAR(36) NOT NULL FIRST;
ALTER TABLE `{TABLE_LOCATION}` ADD COLUMN `global` TINYINT(1) NOT NULL DEFAULT 0;
UPDATE `{TABLE_LOCATION}` SET `uid` = `worldname`;
ALTER TABLE `{TABLE_LOCATION}` DROP COLUMN `worldname`;
ALTER TABLE `{TABLE_LOCATION}` ADD PRIMARY KEY (`uid`);