Added indexes to category table

This commit is contained in:
Franck Allimant
2014-01-27 17:11:23 +01:00
parent c5cc6aae76
commit 1f379f60ab
2 changed files with 10 additions and 1 deletions

View File

@@ -20,7 +20,9 @@ CREATE TABLE `category`
`version` INTEGER DEFAULT 0,
`version_created_at` DATETIME,
`version_created_by` VARCHAR(100),
PRIMARY KEY (`id`)
PRIMARY KEY (`id`),
INDEX `idx_parent` (`parent`),
INDEX `idx_parent_position` (`parent`, `position`)
) ENGINE=InnoDB;
-- ---------------------------------------------------------------------