aboutsummaryrefslogtreecommitdiff
path: root/sql/base
diff options
context:
space:
mode:
Diffstat (limited to 'sql/base')
-rw-r--r--sql/base/auth_database.sql27
-rw-r--r--sql/base/characters_database.sql26
2 files changed, 53 insertions, 0 deletions
diff --git a/sql/base/auth_database.sql b/sql/base/auth_database.sql
index 4c4df0cdfb1..daa4e905970 100644
--- a/sql/base/auth_database.sql
+++ b/sql/base/auth_database.sql
@@ -34,6 +34,7 @@ CREATE TABLE `account` (
`last_ip` varchar(15) NOT NULL DEFAULT '127.0.0.1',
`failed_logins` int(10) unsigned NOT NULL DEFAULT '0',
`locked` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `lock_country` varchar(2) NOT NULL DEFAULT '00',
`last_login` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`online` tinyint(3) unsigned NOT NULL DEFAULT '0',
`expansion` tinyint(3) unsigned NOT NULL DEFAULT '3',
@@ -125,6 +126,32 @@ CREATE TABLE `ip_banned` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Banned IPs';
/*!40101 SET character_set_client = @saved_cs_client */;
+/*Table structure for table `ip2nation` */
+
+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;
+
+/*Table structure for table `ip2nationCountries` */
+
+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;
+
--
-- Dumping data for table `ip_banned`
--
diff --git a/sql/base/characters_database.sql b/sql/base/characters_database.sql
index e5df0656417..4f698c10288 100644
--- a/sql/base/characters_database.sql
+++ b/sql/base/characters_database.sql
@@ -214,6 +214,32 @@ LOCK TABLES `auctionhouse` WRITE;
UNLOCK TABLES;
--
+-- Table structure for table `banned_addons`
+--
+
+DROP TABLE IF EXISTS `banned_addons`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `banned_addons` (
+ `Id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
+ `Name` varchar(255) NOT NULL,
+ `Version` varchar(255) NOT NULL DEFAULT '',
+ `Timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ PRIMARY KEY (`Id`),
+ UNIQUE KEY `idx_name_ver` (`Name`, `Version`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `banned_addons`
+--
+
+LOCK TABLES `banned_addons` WRITE;
+/*!40000 ALTER TABLE `banned_addons` DISABLE KEYS */;
+/*!40000 ALTER TABLE `banned_addons` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
-- Table structure for table `bugreport`
--