Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295668

Refactor custom_block upgrade path to create tables using hook_schema_0() instead of in block_update_N()

$
0
0

Follow up for #1871772-108: Convert custom blocks to content entities

Problem/Motivation

+++ b/core/modules/block/block.install
@@ -194,6 +195,246 @@ function block_update_8006() {
+ db_create_table('custom_block', array(
...
+ db_create_table('custom_block_revision', array(
Normally we handle this case via hook_schema_0() implementations + update_module_enable(), but we can clean that up later.

Proposed resolution

Refactor upgrade path as indicated

Remaining tasks

Refactor upgrade path as indicated


Viewing all articles
Browse latest Browse all 295668


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>