first commit

This commit is contained in:
2024-12-17 13:43:22 +01:00
commit 8e6cd8b410
21292 changed files with 3514826 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
/**
* Blog for PrestaShop module by Krystian Podemski from PrestaHome.
*
* @author Krystian Podemski <krystian@prestahome.com>
* @copyright Copyright (c) 2014-2016 Krystian Podemski - www.PrestaHome.com / www.Podemski.info
* @license You only can use module, nothing more!
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_1_2_0_0($object)
{
// Cover
Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'simpleblog_category` ADD cover VARCHAR(5) NOT NULL AFTER id_simpleblog_category');
// Position
Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'simpleblog_category` ADD position int(10) UNSIGNED NOT NULL DEFAULT 0 AFTER cover');
// Likes
Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'simpleblog_post` ADD likes INT(11) UNSIGNED NOT NULL DEFAULT 0 AFTER author');
// Views
Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'simpleblog_post` ADD views INT(11) UNSIGNED NOT NULL DEFAULT 0 AFTER likes');
Configuration::updateValue('PH_BLOG_DISPLAY_CATEGORY_IMAGE', '1');
Configuration::updateValue('PH_BLOG_DISPLAY_LIKES', '1');
Configuration::updateValue('PH_BLOG_DISPLAY_VIEWS', '1');
return true;
}