You are here

function rules_update_7211 in Rules 7.2

Creates the "owner" column.

File

./rules.install, line 484
Rules - Installation file.

Code

function rules_update_7211() {

  // Create a owner column.
  if (!db_field_exists('rules_config', 'owner')) {
    db_add_field('rules_config', 'owner', array(
      'description' => 'The name of the module via which the rule has been configured.',
      'type' => 'varchar',
      'length' => 255,
      'not null' => TRUE,
      'default' => 'rules',
    ));
  }
}