36 lines
974 B
PHP
36 lines
974 B
PHP
<?php
|
|
/**
|
|
* 2024 Anvanto
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Academic Free License (AFL 3.0)
|
|
*
|
|
* @author Anvanto <anvantoco@gmail.com>
|
|
* @copyright 2024 Anvanto
|
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
|
*/
|
|
|
|
if (!defined('_PS_VERSION_')) {
|
|
exit;
|
|
}
|
|
|
|
function upgrade_module_3_0_5($object, $install = false)
|
|
{
|
|
|
|
$ret = (bool)Db::getInstance()->execute('
|
|
ALTER TABLE `' . _DB_PREFIX_ . 'anblogcat_lang`
|
|
ADD (`meta_title` text);
|
|
');
|
|
|
|
$ret &= (bool)Db::getInstance()->execute('
|
|
CREATE TABLE IF NOT EXISTS `'._DB_PREFIX_.'anblog_blog_categories` (
|
|
`id_anblog_blog` int(11) NOT NULL DEFAULT \'0\',
|
|
`id_anblogcat` int(11) NOT NULL DEFAULT \'0\',
|
|
`position` int(11) NOT NULL DEFAULT \'0\',
|
|
PRIMARY KEY (`id_anblog_blog`,`id_anblogcat`)
|
|
) ENGINE='._MYSQL_ENGINE_.' DEFAULT CHARSET=utf8;
|
|
');
|
|
return $ret;
|
|
}
|