From 614b5832ba96b4c5905ece5490a7b5d18c2f710b Mon Sep 17 00:00:00 2001 From: MitchesD Date: Wed, 26 Aug 2015 11:12:35 +0200 Subject: Core/Player: implemented Toybox * now you can use all the things in toybox - add new toys, set them as favorite and use them --- sql/base/auth_database.sql | 26 ++++++++++++++++++++++++- sql/updates/auth/2015_08_26_00_auth.sql | 8 ++++++++ sql/updates/hotfixes/2015_08_26_00_hotfixes.sql | 21 ++++++++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 sql/updates/auth/2015_08_26_00_auth.sql create mode 100644 sql/updates/hotfixes/2015_08_26_00_hotfixes.sql (limited to 'sql') diff --git a/sql/base/auth_database.sql b/sql/base/auth_database.sql index 0a7528d4ca8..54ebdf24e15 100644 --- a/sql/base/auth_database.sql +++ b/sql/base/auth_database.sql @@ -193,6 +193,30 @@ LOCK TABLES `battlenet_account_bans` WRITE; /*!40000 ALTER TABLE `battlenet_account_bans` ENABLE KEYS */; UNLOCK TABLES; +-- +-- Table structure for table `battlenet_account_toys` +-- + +DROP TABLE IF EXISTS `battlenet_account_toys`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `battlenet_account_toys` ( + `accountId` int(10) unsigned NOT NULL, + `itemId` int(11) NOT NULL DEFAULT '0', + `isFavourite` tinyint(1) DEFAULT '0', + PRIMARY KEY (`accountId`,`itemId`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `battlenet_account_toys` +-- + +LOCK TABLES `battlenet_account_toys` WRITE; +/*!40000 ALTER TABLE `battlenet_account_toys` DISABLE KEYS */; +/*!40000 ALTER TABLE `battlenet_account_toys` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `battlenet_accounts` -- @@ -671,4 +695,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2015-07-13 23:49:27 +-- Dump completed on 2015-08-25 22:49:45 diff --git a/sql/updates/auth/2015_08_26_00_auth.sql b/sql/updates/auth/2015_08_26_00_auth.sql new file mode 100644 index 00000000000..e01f9c50a24 --- /dev/null +++ b/sql/updates/auth/2015_08_26_00_auth.sql @@ -0,0 +1,8 @@ +DROP TABLE IF EXISTS `battlenet_account_toys`; + +CREATE TABLE `battlenet_account_toys` ( + `accountId` int(10) unsigned NOT NULL, + `itemId` int(11) NOT NULL DEFAULT '0', + `isFavourite` tinyint(1) DEFAULT '0', + PRIMARY KEY (`accountId`,`itemId`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; diff --git a/sql/updates/hotfixes/2015_08_26_00_hotfixes.sql b/sql/updates/hotfixes/2015_08_26_00_hotfixes.sql new file mode 100644 index 00000000000..3ccd8ac3eeb --- /dev/null +++ b/sql/updates/hotfixes/2015_08_26_00_hotfixes.sql @@ -0,0 +1,21 @@ +DROP TABLE IF EXISTS `toy`; + +CREATE TABLE `toy` ( + `ID` int(10) unsigned NOT NULL DEFAULT '0', + `ItemID` int(10) unsigned NOT NULL DEFAULT '0', + `Flags` int(10) unsigned NOT NULL DEFAULT '0', + `Description` text, + `CategoryFilter` int(10) NOT NULL DEFAULT '0', + `VerifiedBuild` smallint(6) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +DROP TABLE IF EXISTS `toy_locale`; + +CREATE TABLE `toy_locale` ( + `ID` int(10) unsigned NOT NULL DEFAULT '0', + `locale` varchar(4) NOT NULL, + `Description_lang` text NOT NULL, + `VerifiedBuild` smallint(6) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`,`locale`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- cgit v1.2.3