slow SQL #46
Closed
slow SQL #46
Comments
CREATE TABLE `tag` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'primary key',
`gmt_create` datetime NOT NULL COMMENT 'create time',
`gmt_modified` datetime NOT NULL COMMENT 'modified time',
`name` varchar(100) NOT NULL COMMENT 'module name',
`tag` varchar(30) NOT NULL COMMENT 'tag name',
`version` varchar(30) NOT NULL COMMENT 'module version',
`module_id` bigint(20) unsigned NOT NULL COMMENT 'module id',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`, `tag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='module tag';
-- ALTER TABLE `tag` ADD `module_id` BIGINT( 20 ) UNSIGNED NOT NULL ; |
我会在tag增加一个module_id |
fengmk2
added a commit
that referenced
this issue
Dec 10, 2013
* make sure module_id exists * make sure author is same
fengmk2
added a commit
that referenced
this issue
Dec 11, 2013
fix sql, change test to fit my local database, fixed #46
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
有问题
The text was updated successfully, but these errors were encountered: