Skip to content
Snippets Groups Projects
Unverified Commit c02ff068 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3098427 follow-up by amateescu, catch, alexpott: Manipulating the...

Issue #3098427 follow-up by amateescu, catch, alexpott: Manipulating the revision metadata keys before running the BC layer breaks the BC layer
parent cf0bc9a2
Branches
Tags
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!144Issue #2666286: Clean up menu_ui to conform to Drupal coding standards
......@@ -143,3 +143,22 @@ function workspaces_post_update_update_deploy_form_display() {
$form_display->removeComponent('parent')->save();
}
}
/**
* Removes the workspace association entity and field schema data.
*/
function workspaces_post_update_remove_association_schema_data() {
// Delete the entity and field schema data.
$keys = [
'workspace_association.entity_schema_data',
'workspace_association.field_schema_data.id',
'workspace_association.field_schema_data.revision_id',
'workspace_association.field_schema_data.uuid',
'workspace_association.field_schema_data.revision_default',
'workspace_association.field_schema_data.target_entity_id',
'workspace_association.field_schema_data.target_entity_revision_id',
'workspace_association.field_schema_data.target_entity_type_id',
'workspace_association.field_schema_data.workspace',
];
\Drupal::keyValue('entity.storage_schema.sql')->deleteMultiple($keys);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment