diff --git a/install-dev/data/db_structure.sql b/install-dev/data/db_structure.sql index dff571f67..6a5ab3c27 100644 --- a/install-dev/data/db_structure.sql +++ b/install-dev/data/db_structure.sql @@ -2035,7 +2035,7 @@ CREATE TABLE `PREFIX_image_shop` ( `id_image` INT( 11 ) UNSIGNED NOT NULL, `id_shop` INT( 11 ) UNSIGNED NOT NULL, `cover` tinyint(1) NOT NULL, - PRIMARY KEY (`id_image`, `id_shop`, `cover`), + KEY (`id_image`, `id_shop`, `cover`), KEY `id_shop` (`id_shop`) ) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8; diff --git a/install-dev/fixtures/apple/data/attribute.xml b/install-dev/fixtures/apple/data/attribute.xml index 57f1343ba..5327dcea3 100644 --- a/install-dev/fixtures/apple/data/attribute.xml +++ b/install-dev/fixtures/apple/data/attribute.xml @@ -19,9 +19,9 @@ - - - + + + diff --git a/install-dev/upgrade/sql/1.5.0.18.sql b/install-dev/upgrade/sql/1.5.0.18.sql index 7df70bf91..b009ab435 100644 --- a/install-dev/upgrade/sql/1.5.0.18.sql +++ b/install-dev/upgrade/sql/1.5.0.18.sql @@ -2,4 +2,4 @@ SET NAMES 'utf8'; ALTER TABLE `PREFIX_image_shop` ADD `cover` TINYINT(1) UNSIGNED NOT NULL AFTER `id_shop`; ALTER TABLE `PREFIX_image_shop` DROP PRIMARY KEY; -ALTER TABLE `PREFIX_image_shop` ADD PRIMARY KEY (`id_image`, `id_shop`, `cover`); +ALTER TABLE `PREFIX_image_shop` ADD ADD INDEX (`id_image`, `id_shop`, `cover`);