$revision_table = $table_mapping->getDedicatedRevisionTableName($storage_definition); $revision_new_table = $table_mapping->getDedicatedRevisionTableName($storage_definition, TRUE); $this->database->schema()->renameTable($revision_table, $revision_new_table); } } else{ // Move the field data from the shared table to a dedicated one in order
// to allow it to be purged like any other field.
$shared_table_field_columns = $table_mapping->getColumnNames($storage_definition->getName());
// Refresh the table mapping to use the deleted storage definition.
$deleted_storage_definition = $this->deletedFieldsRepository()->getFieldStorageDefinitions()[$storage_definition->getUniqueStorageIdentifier()]; $table_mapping = $this->getTableMapping($this->entityType, [$deleted_storage_definition]);