You are here

function rules_update_7201 in Rules 7.2

Add in the exportable entity db columns as required by the entity API.

File

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

Code

function rules_update_7201() {

  // Previously this was update 7200, so check whether we need to run it really.
  // The update has been moved as 7200 needs to be the 6.x-7.x upgrade.
  if (!db_field_exists('rules_config', 'status')) {
    db_add_field('rules_config', 'status', array(
      'type' => 'int',
      'not null' => TRUE,
      'default' => ENTITY_CUSTOM,
      'size' => 'tiny',
      'description' => 'The exportable status of the entity.',
    ));

    // The module column did already exist before.
  }
}