Unverified Commit c02ff068 authored by alexpott's avatar alexpott
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
......@@ -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);
}
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