function synonyms_update_7105 in Synonyms 7
Making actual module tables follow the declared schema.
File
- ./
synonyms.install, line 358 - Install, update, and uninstall functions for the Synonyms module.
Code
function synonyms_update_7105() {
db_drop_unique_key('synonyms_settings', 'behavior_implementation');
db_drop_unique_key('synonyms_settings', 'all_enabled');
db_change_field('synonyms_settings', 'provider', 'provider', array(
'description' => 'Provider name whose behavior implementation is stored in this row.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
), array(
'unique keys' => array(
'behavior_implementation' => array(
'behavior',
'entity_type',
'bundle',
'provider',
),
'all_enabled' => array(
'entity_type',
'bundle',
'provider',
'behavior',
),
),
));
}