From 464837077ad5621b5f040aa00ef2c49109da795a Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 24 Jan 2011 11:20:30 +0100 Subject: Core/Instances: Implemented hourly instance limit: players are limited to entering 5 instances per hour (account wide limit) --- sql/base/characters_database.sql | 25 ++++++++++++++++++++++ ...1_01_24_0_characters_account_instance_times.sql | 10 +++++++++ 2 files changed, 35 insertions(+) create mode 100644 sql/updates/2011_01_24_0_characters_account_instance_times.sql (limited to 'sql') diff --git a/sql/base/characters_database.sql b/sql/base/characters_database.sql index 3ca227400db..c3569844e07 100644 --- a/sql/base/characters_database.sql +++ b/sql/base/characters_database.sql @@ -40,6 +40,31 @@ LOCK TABLES `account_data` WRITE; /*!40000 ALTER TABLE `account_data` ENABLE KEYS */; UNLOCK TABLES; +-- +-- Table structure for table `account_instance_times` +-- + +DROP TABLE IF EXISTS `account_instance_times`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `account_instance_times` ( + `accountId` int(10) unsigned NOT NULL, + `instanceId` int(10) unsigned NOT NULL DEFAULT '0', + `releaseTime` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`accountId`,`instanceId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `account_instance_times` +-- + +LOCK TABLES `account_instance_times` WRITE; +/*!40000 ALTER TABLE `account_instance_times` DISABLE KEYS */; +/*!40000 ALTER TABLE `account_instance_times` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + -- -- Table structure for table `addons` -- diff --git a/sql/updates/2011_01_24_0_characters_account_instance_times.sql b/sql/updates/2011_01_24_0_characters_account_instance_times.sql new file mode 100644 index 00000000000..72cde260a51 --- /dev/null +++ b/sql/updates/2011_01_24_0_characters_account_instance_times.sql @@ -0,0 +1,10 @@ +-- +-- Table structure for table `account_instance_times` +-- +DROP TABLE IF EXISTS `account_instance_times`; +CREATE TABLE `account_instance_times` ( + `accountId` int(10) unsigned NOT NULL, + `instanceId` int(10) unsigned NOT NULL DEFAULT '0', + `releaseTime` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`accountId`,`instanceId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- cgit v1.2.3