- Patch #853030 by Stevel: revision_id() is part of a primary key, but is not marked as NOT NULL.

merge-requests/26/head
Dries Buytaert 2010-10-03 02:43:47 +00:00
parent 10244a9d78
commit c4d1e88a85
1 changed files with 2 additions and 1 deletions

View File

@ -218,8 +218,9 @@ function _field_sql_storage_schema($field) {
// use the IN operator.
$revision = $current;
$revision['description'] = "Revision archive storage for {$deleted}field {$field['id']} ({$field['field_name']})";
$revision['revision_id']['description'] = 'The entity revision id this data is attached to';
$revision['primary key'] = array('etid', 'revision_id', 'deleted', 'delta', 'language');
$revision['fields']['revision_id']['not null'] = TRUE;
$revision['fields']['revision_id']['description'] = 'The entity revision id this data is attached to';
return array(
_field_sql_storage_tablename($field) => $current,