mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
Implement ip2nation and ip2nationCountries (#518)
* Implement ip2nation and ip2nationCountries * fix account.sql * Tabs * Codestyle * More codestyle * Maybe not. Fk travis. * Missing field on LOGIN_SEL_ACCOUNT_INFO_BY_NAME * Update WorldSocket.cpp
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`)
|
||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
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`)
|
||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
@@ -0,0 +1,9 @@
|
||||
INSERT INTO version_db_world (`sql_rev`) VALUES ('1498796247453520600');
|
||||
|
||||
DROP TABLE IF EXISTS ip2nation;
|
||||
DROP TABLE IF EXISTS ip2nationCountries;
|
||||
|
||||
DELETE FROM `command` WHERE `name` in ('account lock', 'account lock ip', 'account lock country');
|
||||
INSERT INTO `command` (`name`,`security`,`help`) VALUES
|
||||
('account lock ip', 0, 'Syntax: .account lock ip [on|off]\nAllow login from account only from current used IP or remove this requirement.'),
|
||||
('account lock country', 0, 'Syntax: .account lock country [on|off]\nAllow login from account only from current used Country or remove this requirement.');
|
||||
Reference in New Issue
Block a user