Skip to content
Snippets Groups Projects
Commit 3a1c93a3 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #650748 by yched: tablename for deleted fields.

parent 87bdade9
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -40,7 +40,12 @@ function field_sql_storage_field_storage_info() {
* A string containing the generated name for the database table
*/
function _field_sql_storage_tablename($field) {
return "field_data_{$field['field_name']}" . ($field['deleted'] ? "_{$field['id']}" : '');
if ($field['deleted']) {
return "field_deleted_data_{$field['id']}";
}
else {
return "field_data_{$field['field_name']}";
}
}
/**
......@@ -52,7 +57,12 @@ function _field_sql_storage_tablename($field) {
* A string containing the generated name for the database table
*/
function _field_sql_storage_revision_tablename($field) {
return "field_revision_{$field['field_name']}" . ($field['deleted'] ? "_{$field['id']}" : '');
if ($field['deleted']) {
return "field_deleted_revision_{$field['id']}";
}
else {
return "field_revision_{$field['field_name']}";
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment