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

Issue #2613190 by LOBsTerr, fenstrat, quietone, Chi, nicrodgers: Specify size...

Issue #2613190 by LOBsTerr, fenstrat, quietone, Chi, nicrodgers: Specify size for node_access.fallback column
parent 87fdc923
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
......@@ -5,6 +5,7 @@
* Install, update and uninstall functions for the node module.
*/
use Drupal\Core\Database\Database;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\user\RoleInterface;
......@@ -63,6 +64,7 @@ function node_schema() {
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 1,
'size' => 'tiny',
),
'gid' => array(
'description' => "The grant ID a user must possess in the specified realm to gain this row's privileges on the node.",
......@@ -218,3 +220,17 @@ function node_update_8003() {
$manager->updateFieldStorageDefinition($manager->getFieldStorageDefinition($field_name, 'node'));
}
}
/**
* Change {node_access}.fallback from an int to a tinyint as it is a boolean.
*/
function node_update_8300() {
Database::getConnection()->schema()->changeField('node_access', 'fallback', 'fallback', [
'description' => 'Boolean indicating whether this record should be used as a fallback if a language condition is not provided.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 1,
'size' => 'tiny',
]);
}
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