Commit 3a1c93a3 authored by Dries's avatar Dries
Browse files

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

parent 87bdade9
......@@ -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']}";
}
}
/**
......
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