CharDB Schema/Cleanup: cleanup character_tutorial table:

* rename table to account_tutorial, because it holds account specific data;
* rename column account to accountId;
* introduce prepared statements for table.
This commit is contained in:
Azazel
2011-02-24 23:57:43 +06:00
parent 20ab3e4bda
commit bcd7e45e12
10 changed files with 102 additions and 88 deletions

View File

@@ -65,6 +65,36 @@ LOCK TABLES `account_instance_times` WRITE;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
--
-- Table structure for table `account_tutorial`
--
DROP TABLE IF EXISTS `account_tutorial`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_tutorial` (
`accountId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Account Identifier',
`tut0` int(10) unsigned NOT NULL DEFAULT '0',
`tut1` int(10) unsigned NOT NULL DEFAULT '0',
`tut2` int(10) unsigned NOT NULL DEFAULT '0',
`tut3` int(10) unsigned NOT NULL DEFAULT '0',
`tut4` int(10) unsigned NOT NULL DEFAULT '0',
`tut5` int(10) unsigned NOT NULL DEFAULT '0',
`tut6` int(10) unsigned NOT NULL DEFAULT '0',
`tut7` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`accountId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `account_tutorial`
--
LOCK TABLES `account_tutorial` WRITE;
/*!40000 ALTER TABLE `account_tutorial` DISABLE KEYS */;
/*!40000 ALTER TABLE `account_tutorial` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `addons`
--
@@ -1085,36 +1115,6 @@ LOCK TABLES `character_talent` WRITE;
/*!40000 ALTER TABLE `character_talent` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `character_tutorial`
--
DROP TABLE IF EXISTS `character_tutorial`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_tutorial` (
`account` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Account Identifier',
`tut0` int(10) unsigned NOT NULL DEFAULT '0',
`tut1` int(10) unsigned NOT NULL DEFAULT '0',
`tut2` int(10) unsigned NOT NULL DEFAULT '0',
`tut3` int(10) unsigned NOT NULL DEFAULT '0',
`tut4` int(10) unsigned NOT NULL DEFAULT '0',
`tut5` int(10) unsigned NOT NULL DEFAULT '0',
`tut6` int(10) unsigned NOT NULL DEFAULT '0',
`tut7` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`account`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `character_tutorial`
--
LOCK TABLES `character_tutorial` WRITE;
/*!40000 ALTER TABLE `character_tutorial` DISABLE KEYS */;
/*!40000 ALTER TABLE `character_tutorial` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `characters`
--