I am trying to drush updb
with an argument that is passed to the hook_update_N()
implementation done from a module I wrote, which would use it to execute some update tasks.
function my_module_update_9001(&$value) {
switch ($value) {
case "unique":
_set_unique_identifier();
break;
case "get":
_get_field_typ_map();
break;
default:
echo "Something went wrong...";
}
}
function _set_unique_identifier() {
_get_database_shame_connector()->uniqueIdentifier();
}
function _get_field_typ_map() {
_get_database_shame_connector()->getFieldTypeMap();
}
How do I tell drush updb
to pass an argument to an hook_update_N()
implementation?
drush updb
doesn't accept such parameter; it only accepts four options.