19 require_once SQ_INCLUDE_PATH.
'/asset_management.inc';
43 Asset_Management::__construct($pm);
51 'remap_upon_webpath_change' => Array(
56 'never_delete_remap_default' => Array(
61 'preserve_url_parameters' => Array(
81 if (!parent::_upgrade($current_version))
return FALSE;
83 if (version_compare($current_version,
'0.2.2',
'<')) {
85 $rm = $GLOBALS[
'SQ_SYSTEM']->am->getSystemAsset(
'remap_manager');
87 $sql =
"SELECT custom_val FROM sq_ast_attr a, sq_ast_attr_val v where v.assetid = '".$rm->id.
"' AND a.name='never_delete_remap_default' AND a.attrid=v.attrid";
91 $rm->setAttrValue(
'never_delete_remap_default',
'1');
92 $rm->saveAttributes();