Skip to content
Snippets Groups Projects
Commit a8ec5f8c authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

fix missing patch

parent db9778d2
2 merge requests!1132Hotline#29412 images des articles dans le resultat de recherche,!1120Master
<?php
$sql = Zend_Db_Table_Abstract::getDefaultAdapter();
try {
$sql->query('select `indexable` from custom_field_meta limit 1;');
} catch(Exception $e) {
$sql->query("alter table `custom_field_meta`
add column `indexable` INT(1) unsigned NOT NULL DEFAULT '0',
add key `indexable` (`indexable`);");
}
if (!$sql->query("select id from `codif_thesaurus` where id_thesaurus='CFCF';")
->fetch())
$sql->query("insert into `codif_thesaurus` (id_thesaurus, libelle, code) values ('CFCF', 'Champs personnalisés', 'Custom fields');");
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment