update
This commit is contained in:
40
modules/creativeelements/upgrade/upgrade-2.5.7.php
Normal file
40
modules/creativeelements/upgrade/upgrade-2.5.7.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* Creative Elements - live Theme & Page Builder
|
||||
*
|
||||
* @author WebshopWorks
|
||||
* @copyright 2019-2022 WebshopWorks.com
|
||||
* @license One domain support license
|
||||
*/
|
||||
|
||||
defined('_PS_VERSION_') or die;
|
||||
|
||||
function upgrade_module_2_5_7($module)
|
||||
{
|
||||
require_once _CE_PATH_ . 'classes/CEDatabase.php';
|
||||
|
||||
// Add Custom Fonts tab
|
||||
$result = CEDatabase::updateTabs();
|
||||
|
||||
// Create table for Custom Fonts
|
||||
$ce_font = _DB_PREFIX_ . 'ce_font';
|
||||
$engine = _MYSQL_ENGINE_;
|
||||
|
||||
$result &= Db::getInstance()->execute("
|
||||
CREATE TABLE IF NOT EXISTS `$ce_font` (
|
||||
`id_ce_font` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`family` varchar(128) NOT NULL DEFAULT '',
|
||||
`files` text,
|
||||
PRIMARY KEY (`id_ce_font`)
|
||||
) ENGINE=$engine DEFAULT CHARSET=utf8;
|
||||
");
|
||||
|
||||
// Register delete action for ThemeVolty Blog post
|
||||
$result &= $module->registerHook('actionObjectTvcmsBlogPostsClassDeleteAfter');
|
||||
|
||||
// Clear caches
|
||||
CE\Plugin::instance()->files_manager->clearCache();
|
||||
Media::clearCache();
|
||||
|
||||
return $result;
|
||||
}
|
||||
Reference in New Issue
Block a user