You are here

function shurly_update_7101 in ShURLy 7

Make the source field case-sensitive.

File

./shurly.install, line 202
Shurly install file

Code

function shurly_update_7101() {
  db_drop_index('shurly', 'source');
  db_change_field('shurly', 'source', 'source', array(
    'description' => t('source path'),
    'type' => 'varchar',
    'length' => '255',
    'binary' => TRUE,
    'not null' => TRUE,
  ), array(
    'indexes' => array(
      'source' => array(
        'source',
      ),
    ),
  ));
}