Drupal 8.7.x to 8.8.x composer 升級筆記
編輯composer.json,更替版本資訊
vi composer.json
"webflo/drupal-core-require-dev": "^8.7.0" change to "^8.8.0"
composer update webflo/drupal-core-require-dev drupal/core --with-dependencies
composer 建置好後
執行 drush updatedb
可以看到下列的畫面
Requirements check reports errors. Do you wish to continue? (yes/no) [yes]:
> yes
---------- ------------------ --------------- --------------------------------
Module Update ID Type Description
---------- ------------------ --------------- --------------------------------
system 8801 hook_update_n Remove 'path.temporary' config
if redundant.
system 8802 hook_update_n Fix system.theme:admin when
the default theme is used as
the admin theme.
system 8803 hook_update_n Install the 'path_alias'
entity type.
system 8804 hook_update_n Convert path aliases to
entities.
path create_language_ post-update Create the language content
content_settings settings configuration object
for path aliases.
search block_page post-update Configures default search page
for instantiated blocks.
system entity_reference post-update Populate the new 'match_limit'
_autocomplete_ma setting for the ER
tch_limit autocomplete widget.
system layout_plugin_sc post-update Clear the schema cache.
hema_change
taxonomy configure_status post-update Add status with settings to
_field_widget all form displays for taxonomy
entities.
text add_required_sum post-update Update text_with_summary
mary_flag fields and widgets to add
summary required flags.
views limit_operator_d post-update Define default values for
efaults limit operators settings in
all filters.
---------- ------------------ --------------- --------------------------------
Do you wish to run the specified pending updates? (yes/no) [yes]:
> yes
輸入yes時可完成更新
> [notice] Update started: system_update_8801
> [notice] Update completed: system_update_8801
> [notice] Update started: system_update_8802
> [notice] Update completed: system_update_8802
> [notice] Update started: system_update_8803
> [notice] The "path_alias" entity type has been installed.
> [notice] Update completed: system_update_8803
> [notice] Update started: system_update_8804
> [notice] Path aliases have been converted to entities.
> [notice] Update completed: system_update_8804
> [notice] Update started: path_post_update_create_language_content_settings
> [notice] Update completed: path_post_update_create_language_content_settings
> [notice] Update started: search_post_update_block_page
> [notice] Update completed: search_post_update_block_page
> [notice] Update started: system_post_update_entity_reference_autocomplete_match_limit
> [notice] Update completed: system_post_update_entity_reference_autocomplete_match_limit
> [notice] Update started: system_post_update_layout_plugin_schema_change
> [notice] Update completed: system_post_update_layout_plugin_schema_change
> [notice] Update started: taxonomy_post_update_configure_status_field_widget
> [notice] Update completed: taxonomy_post_update_configure_status_field_widget
> [notice] Update started: text_post_update_add_required_summary_flag
> [notice] Update completed: text_post_update_add_required_summary_flag
> [notice] Update started: views_post_update_limit_operator_defaults
> [notice] Update completed: views_post_update_limit_operator_defaults
> [notice] Message: The /views_url_alias_node/ table has been successfully rebuilt.
>
[success] Finished performing updates.
不過8.7升8.8有點問題,因為pathauto在8.8有整合進去,我在轉換時出錯,所以用還原回8.7
後來我有升級成功了!
先把Pathauto升到 8.x-1.6-beta1 再進行核心升級,即可順利升級成功
vi composer.json
"webflo/drupal-core-require-dev": "^8.7.0" change to "^8.8.0"
composer update webflo/drupal-core-require-dev drupal/core --with-dependencies
composer 建置好後
執行 drush updatedb
可以看到下列的畫面
Requirements check reports errors. Do you wish to continue? (yes/no) [yes]:
> yes
---------- ------------------ --------------- --------------------------------
Module Update ID Type Description
---------- ------------------ --------------- --------------------------------
system 8801 hook_update_n Remove 'path.temporary' config
if redundant.
system 8802 hook_update_n Fix system.theme:admin when
the default theme is used as
the admin theme.
system 8803 hook_update_n Install the 'path_alias'
entity type.
system 8804 hook_update_n Convert path aliases to
entities.
path create_language_ post-update Create the language content
content_settings settings configuration object
for path aliases.
search block_page post-update Configures default search page
for instantiated blocks.
system entity_reference post-update Populate the new 'match_limit'
_autocomplete_ma setting for the ER
tch_limit autocomplete widget.
system layout_plugin_sc post-update Clear the schema cache.
hema_change
taxonomy configure_status post-update Add status with settings to
_field_widget all form displays for taxonomy
entities.
text add_required_sum post-update Update text_with_summary
mary_flag fields and widgets to add
summary required flags.
views limit_operator_d post-update Define default values for
efaults limit operators settings in
all filters.
---------- ------------------ --------------- --------------------------------
Do you wish to run the specified pending updates? (yes/no) [yes]:
> yes
輸入yes時可完成更新
> [notice] Update started: system_update_8801
> [notice] Update completed: system_update_8801
> [notice] Update started: system_update_8802
> [notice] Update completed: system_update_8802
> [notice] Update started: system_update_8803
> [notice] The "path_alias" entity type has been installed.
> [notice] Update completed: system_update_8803
> [notice] Update started: system_update_8804
> [notice] Path aliases have been converted to entities.
> [notice] Update completed: system_update_8804
> [notice] Update started: path_post_update_create_language_content_settings
> [notice] Update completed: path_post_update_create_language_content_settings
> [notice] Update started: search_post_update_block_page
> [notice] Update completed: search_post_update_block_page
> [notice] Update started: system_post_update_entity_reference_autocomplete_match_limit
> [notice] Update completed: system_post_update_entity_reference_autocomplete_match_limit
> [notice] Update started: system_post_update_layout_plugin_schema_change
> [notice] Update completed: system_post_update_layout_plugin_schema_change
> [notice] Update started: taxonomy_post_update_configure_status_field_widget
> [notice] Update completed: taxonomy_post_update_configure_status_field_widget
> [notice] Update started: text_post_update_add_required_summary_flag
> [notice] Update completed: text_post_update_add_required_summary_flag
> [notice] Update started: views_post_update_limit_operator_defaults
> [notice] Update completed: views_post_update_limit_operator_defaults
> [notice] Message: The /views_url_alias_node/ table has been successfully rebuilt.
>
[success] Finished performing updates.
不過8.7升8.8有點問題,因為pathauto在8.8有整合進去,我在轉換時出錯,所以用還原回8.7
後來我有升級成功了!
先把Pathauto升到 8.x-1.6-beta1 再進行核心升級,即可順利升級成功
留言