function rules_update_7203

Fix the length of the rules_config.name column.

File

./rules.install, line 353

Code

function rules_update_7203() {
    db_drop_unique_key('rules_config', 'name');
    $keys = array(
        'unique keys' => array(
            'name' => array(
                'name',
            ),
        ),
    );
    db_change_field('rules_config', 'name', 'name', array(
        'type' => 'varchar',
        'length' => '64',
        'not null' => TRUE,
        'description' => 'The name of the configuration.',
    ), $keys);
}