Skip to content
Snippets Groups Projects
Commit 1058cb90 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2863727 by Adita, JacobSanford, faline, abarrio, c.nish2k3, alexpott,...

Issue #2863727 by Adita, JacobSanford, faline, abarrio, c.nish2k3, alexpott, joachim, valthebald: error in schema field description in node_access table
parent e67f64e5
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
......@@ -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']);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment