File Manager

Current Path : /webspace/www.babilon.be/html/shop/modules/themeconfigurator/upgrade/
Upload File :
Current File : /webspace/www.babilon.be/html/shop/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]);
}

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com