function shurly_install in ShURLy 6
Same name and namespace in other branches
- 8 shurly.install \shurly_install()
Implement hook_install().
File
- ./
shurly.install, line 130 - Shurly install file
Code
function shurly_install() {
drupal_install_schema('shurly');
// Run manual query to make the source field case sensitive
$ret = array();
db_drop_index($ret, 'shurly', 'source');
$ret[] = update_sql("ALTER TABLE {Shurly} CHANGE `Source` `Source` VARCHAR(255) BINARY NOT NULL");
db_add_index($ret, 'shurly', 'source', array(
'source' => 'source',
));
return $ret;
}