mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
CharDB Schema/Cleanup: cleanup channels table:
* rename columns (remove m_ prefix and convert to lowerCamel case); * rename prepared statements to conform to standards (there is no CLEAN statement).
This commit is contained in:
@@ -267,14 +267,14 @@ DROP TABLE IF EXISTS `channels`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `channels` (
|
||||
`m_name` varchar(128) NOT NULL,
|
||||
`m_team` int(10) unsigned NOT NULL,
|
||||
`m_announce` tinyint(3) unsigned NOT NULL DEFAULT '1',
|
||||
`m_ownership` tinyint(3) unsigned NOT NULL DEFAULT '1',
|
||||
`m_password` varchar(32) DEFAULT NULL,
|
||||
`BannedList` text,
|
||||
`last_used` int(10) unsigned NOT NULL,
|
||||
PRIMARY KEY (`m_name`,`m_team`)
|
||||
`name` varchar(128) NOT NULL,
|
||||
`team` int(10) unsigned NOT NULL,
|
||||
`announce` tinyint(3) unsigned NOT NULL DEFAULT '1',
|
||||
`ownership` tinyint(3) unsigned NOT NULL DEFAULT '1',
|
||||
`password` varchar(32) DEFAULT NULL,
|
||||
`bannedList` text,
|
||||
`lastUsed` int(10) unsigned NOT NULL,
|
||||
PRIMARY KEY (`name`,`team`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Channel System';
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE `channels` CHANGE COLUMN `m_name` `name` varchar(128) NOT NULL,
|
||||
CHANGE COLUMN `m_team` `team` int(10) unsigned NOT NULL,
|
||||
CHANGE COLUMN `m_announce` `announce` tinyint(3) unsigned NOT NULL DEFAULT '1',
|
||||
CHANGE COLUMN `m_ownership` `ownership` tinyint(3) unsigned NOT NULL DEFAULT '1',
|
||||
CHANGE COLUMN `m_password` `password` varchar(32) DEFAULT NULL,
|
||||
CHANGE COLUMN `BannedList` `bannedList` text,
|
||||
CHANGE COLUMN `last_used` `lastUsed` int(10) unsigned NOT NULL;
|
||||
Reference in New Issue
Block a user