summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2017-05-07 10:42:05 (GMT)
committerAlex Pott2017-05-07 10:42:05 (GMT)
commit1058cb908cf00ebb4d0ced71f938b1569d6e9f8c (patch)
tree268c6f58c265dd5c7989948f99c663f2c96d27a5
parente67f64e52f5977c7f9ddbf7bb74b850e009cf7c8 (diff)
Issue #2863727 by Adita, JacobSanford, faline, abarrio, c.nish2k3, alexpott, joachim, valthebald: error in schema field description in node_access table
-rw-r--r--core/modules/node/node.install11
1 files changed, 10 insertions, 1 deletions
diff --git a/core/modules/node/node.install b/core/modules/node/node.install
index 4e2c240..6469245 100644
--- a/core/modules/node/node.install
+++ b/core/modules/node/node.install
@@ -74,7 +74,7 @@ function node_schema() {
'default' => 0,
],
'realm' => [
- 'description' => 'The realm in which the user must possess the grant ID. Each node access node can define one or more realms.',
+ 'description' => 'The realm in which the user must possess the grant ID. Modules can define one or more realms by implementing hook_node_grants().',
'type' => 'varchar_ascii',
'length' => 255,
'not null' => TRUE,
@@ -246,3 +246,12 @@ function node_update_8301() {
$entity_type->set('entity_keys', $keys);
$definition_update_manager->updateEntityType($entity_type);
}
+
+/**
+ * Fix realm column description on the node_access table.
+ */
+function node_update_8400() {
+ $schema = drupal_get_module_schema('node', 'node_access');
+ $schema['fields']['realm']['description'] = 'The realm in which the user must possess the grant ID. Modules can define one or more realms by implementing hook_node_grants().';
+ Database::getConnection()->schema()->changeField('node_access', 'realm', 'realm', $schema['fields']['realm']);
+}