You are here

function weight_update_7209 in Weight 7.2

Add sync_translations column to weight_settings.

File

./weight.install, line 407

Code

function weight_update_7209() {

  // Due to previous schema mix-ups in update 7200, this field may already exist.
  if (db_field_exists('weight_settings', 'sync_translations')) {
    return;
  }
  $spec = array(
    'type' => 'int',
    'size' => 'tiny',
    'unsigned' => FALSE,
    'not null' => TRUE,
    'default' => 0,
  );
  db_add_field('weight_settings', 'sync_translations', $spec);
}