<?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_4_21($object)
{
    $sql[] = 'ALTER TABLE `' . _DB_PREFIX_ . 'anblog_blog_widgets` ADD `show_read_more` tinyint(1) unsigned NOT NULL DEFAULT 0  AFTER `relation` ';
    
    $return = true;
    foreach ($sql as $_sql) {
        $return = Db::getInstance()->Execute($_sql);
    }

    Configuration::updateValue('an_bl_listing_descr_max', 90);

    return true;
}
