Added indexes to category table
This commit is contained in:
@@ -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;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
|
||||
@@ -12,6 +12,13 @@
|
||||
<column name="postscriptum" type="LONGVARCHAR" />
|
||||
<column name="meta_title" size="255" type="VARCHAR" />
|
||||
<column name="meta_description" type="LONGVARCHAR" />
|
||||
<column name="meta_keywords" type="LONGVARCHAR" />
|
||||
<index name="idx_parent">
|
||||
<index-column name="parent" />
|
||||
</index>
|
||||
<index name="idx_parent_position">
|
||||
<index-column name="parent" />
|
||||
<index-column name="position" />
|
||||
</index>
|
||||
<behavior name="i18n">
|
||||
<parameter name="i18n_columns" value="title, description, chapo, postscriptum, meta_title, meta_description, meta_keywords" />
|
||||
|
||||
Reference in New Issue
Block a user