server/sql/updates/9746_01_realmd_realmlist.sql
VladimirMangos 822ec31cb9 [9746] Implement show realm version and build in realm list.
* Rename `realmlist`.`color` field to `realmflags`

* Client 2.x and later support show in realm list supported
  client version for specific realm.

  For client 1.x this implemented by adding version to name
  in similar way as it look in more recent clients.

  For enable version show each affected realm must have in `realmflags` set
  flag 4.

  For realm work with not officially supported builds (build > last suported)
  will show version 0.0.0 and correct build value.
2010-04-14 09:15:33 +04:00

9 lines
434 B
SQL

ALTER TABLE realmd_db_version CHANGE COLUMN required_9010_01_realmd_realmlist required_9746_01_realmd_realmlist bit;
ALTER TABLE realmlist
CHANGE COLUMN color realmflags tinyint(3) unsigned NOT NULL default '0'
COMMENT 'Supported masks: 0x1 (invalid, not show in realm list), 0x4 (show version and build), 0x20 (new players), 0x40 (recommended)';
UPDATE realmlist
SET realmflags = realmflags & ~(0x01 | 0x04 | 0x20 | 0x40) ;