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

8.0.x
webchick 2013-02-27 21:42:15 -05:00
parent 9774810982
commit 5142b7881a
1 changed files with 0 additions and 18 deletions

View File

@ -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();
}