Commit 5142b788 authored by webchick's avatar webchick

Issue #1919420 by sun: Remove datetime upgrade path check from its hook_install().

parent 97748109
......@@ -21,21 +21,3 @@ function datetime_field_schema($field) {
);
return array('columns' => $db_columns, 'indexes' => $indexes);
}
/**
* Install the new to D8 Datetime module.
*
* As part of adding this new module to Drupal 8, the Datetime namespace is now
* reserved for this module. This is a possible conflict with a popular contrib
* field DateTime that existed in D7. Hence, any Datetime fields that may have
* existed prior to D8 need to renamed for later upgrade by contrib modules like
* the Date module.
*/
function datetime_install() {
db_update('field_config')
->fields(array(
'type' => 'datetime_old',
))
->condition('type', 'datetime')
->execute();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment