- Patch #853030 by Stevel: revision_id() is part of a primary key, but is not marked as NOT NULL.
parent
10244a9d78
commit
c4d1e88a85
|
@ -218,8 +218,9 @@ function _field_sql_storage_schema($field) {
|
||||||
// use the IN operator.
|
// use the IN operator.
|
||||||
$revision = $current;
|
$revision = $current;
|
||||||
$revision['description'] = "Revision archive storage for {$deleted}field {$field['id']} ({$field['field_name']})";
|
$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['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(
|
return array(
|
||||||
_field_sql_storage_tablename($field) => $current,
|
_field_sql_storage_tablename($field) => $current,
|
||||||
|
|
Loading…
Reference in New Issue