You are here

function weight_update_7204 in Weight 7.2

Alter database to allow for negative default weights.

File

./weight.install, line 280

Code

function weight_update_7204() {
  $spec = array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => FALSE,
    'not null' => TRUE,
    'default' => 0,
  );
  db_change_field('weight_settings', 'weight_default', 'weight_default', $spec);
}