You are here

function domain_update_7300 in Domain Access 7.3

Add sorting to domains.

File

./domain.install, line 204
Install file.

Code

function domain_update_7300(&$sandbox) {
  if (db_field_exists('domain', 'weight')) {
    return t('No update required');
  }
  db_add_field('domain', 'weight', array(
    'type' => 'int',
    'unsigned' => FALSE,
    'not null' => TRUE,
    'default' => 0,
  ), array());
  db_add_index('domain', 'weight', array(
    'weight',
  ));
  variable_del('domain_sort');
  return t('Domain sorting added.');
}