You are here

function support_update_6008 in Support Ticketing System 6

Same name and namespace in other branches
  1. 7 support.install \support_update_6008()

Remove unnecessary 'active' field from {support_assigned} table.

1 call to support_update_6008()
support_update_6009 in ./support.install
Make sure the 'active' field is removed from new installs.

File

./support.install, line 512

Code

function support_update_6008() {
  $ret = array();

  // Remove inactive entries from table.
  $ret[] = update_sql('DELETE FROM {support_assigned} WHERE active = 0');

  // Remove unnecessary status field.
  db_drop_field($ret, 'support_assigned', 'active');
  return $ret;
}