You are here

function asset_update_2 in Asset 5

Same name and namespace in other branches
  1. 5.2 asset.install \asset_update_2()

File

./asset.install, line 82

Code

function asset_update_2() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
    case 'pgsql':
      $ret[] = update_sql("UPDATE {asset} SET dirname = TRIM('/' FROM REPLACE(dirname,'sites/default/files',''))");
      break;
  }
  return $ret;
}