mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
DB/Structure
added proper keys to ?_comments
This commit is contained in:
@@ -346,7 +346,8 @@ CREATE TABLE `aowow_comments` (
|
|||||||
`responseUserId` int(10) unsigned NOT NULL DEFAULT '0',
|
`responseUserId` int(10) unsigned NOT NULL DEFAULT '0',
|
||||||
`responseBody` text,
|
`responseBody` text,
|
||||||
`responseRoles` smallint(5) unsigned NOT NULL DEFAULT '0',
|
`responseRoles` smallint(5) unsigned NOT NULL DEFAULT '0',
|
||||||
UNIQUE KEY `id` (`id`)
|
PRIMARY KEY (`id`),
|
||||||
|
INDEX `type_typeId` (`type`, `typeId`)
|
||||||
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
|
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
|||||||
4
setup/updates/1436903207_01.sql
Normal file
4
setup/updates/1436903207_01.sql
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
ALTER TABLE `aowow_comments`
|
||||||
|
DROP INDEX `id`,
|
||||||
|
ADD PRIMARY KEY (`id`),
|
||||||
|
ADD INDEX `type_typeId` (`type`, `typeId`);
|
||||||
Reference in New Issue
Block a user