You are here

function asset_update_1 in Asset 5

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

File

./asset.install, line 70

Code

function asset_update_1() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
    case 'pgsql':
      $ret[] = update_sql("ALTER TABLE {asset} ADD COLUMN type varchar(32) NOT NULL default ''");
      $ret[] = update_sql("UPDATE {asset} SET type='local'");
      break;
  }
  return $ret;
}