// added php file drop_image_type_non_unique_index.php for upgrade (used in 1.5.0.2.sql )

This commit is contained in:
mMarinetti
2012-01-10 17:40:52 +00:00
parent bf29b994f6
commit a6d1b79f11
@@ -0,0 +1,8 @@
<?php
function drop_image_type_non_unique_index()
{
$index = Db::getInstance()->executeS('SHOW index FROM ps_image_type where column_name = "name" and non_unique=1');
// do not use pSql, this function is not defined
Db::getInstance()->execute('ALTER TABLE `PREFIX_image_type` DROP INDEX "'.$index.'"');
}