HEX
Server: Apache
System: Linux dev.epsylon.net 3.10.0-1160.144.1.el7.tuxcare.els2.x86_64 #1 SMP Sun Feb 15 11:22:42 UTC 2026 x86_64
User: graficav (1037)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/graficav/holatimbres.cl/modules/themeconfigurator/upgrade/install-0.8.php
<?php

// File Example for upgrade

if (!defined('_PS_VERSION_'))
	exit;

// object module ($this) available
function upgrade_module_0_8($object)
{
	$upgrade_version = '0.8';

	$object->upgrade_detail[$upgrade_version] = array();

	// Change url type from varchar to text to avoid url length issues
	$query = 'ALTER TABLE  `'._DB_PREFIX_.'themeconfigurator` CHANGE  `url`  `url` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL';

	if (!Db::getInstance()->execute($query))
		$object->upgrade_detail[$upgrade_version][] = $object->l(sprintf('Can\'t change %s type', _DB_PREFIX_.'themeconfigurator.url'));


	return (bool)!count($object->upgrade_detail[$upgrade_version]);
}