Skip to content
Snippets Groups Projects
Commit 5e67904d authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #24489 #24486 fix sql patchs

parent ed42c94e
Branches
Tags
3 merge requests!896Master,!850Master,!834Hotline #24489 #24486 fix sql patchs
......@@ -19,5 +19,10 @@ $adapter->query('CREATE TABLE IF NOT EXISTS `user_group_permission` ( id INT(11)
$adapter->query("UPDATE `user_group_categorie` SET `libelle` = 'Général' WHERE `user_group_categorie`.`libelle` = 'Catégorie par défaut' LIMIT 1;");
$adapter->query("ALTER IGNORE TABLE `user_groups` add column `id_bib` INT(11) NOT NULL DEFAULT '0', add key `id_bib` (`id_bib`);");
try {
$default_adapter = Zend_Db_Table_Abstract::getDefaultAdapter();
$default_adapter->query("SELECT id_bib from user_groups LIMIT 1");
} catch (Exception $e) {
$adapter->query("ALTER TABLE `user_groups` add column `id_bib` INT(11) NOT NULL DEFAULT '0', add key `id_bib` (`id_bib`);");
}
?>
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