mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 13:46:24 +00:00
Implement ip2nation and ip2nationCountries
This commit is contained in:
23
data/sql/updates/pending_db_auth/rev_1498796201292521600.sql
Normal file
23
data/sql/updates/pending_db_auth/rev_1498796201292521600.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
INSERT INTO version_db_auth (`sql_rev`) VALUES ('1498796201292521600');
|
||||
|
||||
ALTER TABLE `account` ADD COLUMN `lock_country` VARCHAR(2) NOT NULL DEFAULT '00' AFTER `locked`;
|
||||
|
||||
DROP TABLE IF EXISTS ip2nation;
|
||||
CREATE TABLE ip2nation (
|
||||
ip int(11) unsigned NOT NULL default '0',
|
||||
country char(2) NOT NULL default '',
|
||||
KEY ip (ip)
|
||||
);
|
||||
|
||||
DROP TABLE IF EXISTS ip2nationCountries;
|
||||
CREATE TABLE ip2nationCountries (
|
||||
code varchar(4) NOT NULL default '',
|
||||
iso_code_2 varchar(2) NOT NULL default '',
|
||||
iso_code_3 varchar(3) default '',
|
||||
iso_country varchar(255) NOT NULL default '',
|
||||
country varchar(255) NOT NULL default '',
|
||||
lat float NOT NULL default '0',
|
||||
lon float NOT NULL default '0',
|
||||
PRIMARY KEY (code),
|
||||
KEY code (code)
|
||||
);
|
||||
Reference in New Issue
Block a user