function rules_update_7211

Creates the "owner" column.

File

./rules.install, line 484

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',
        ));
    }
}