summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2016-10-26 18:27:29 (GMT)
committerAlex Pott2016-10-26 18:27:29 (GMT)
commit64c4d8e2c0b56b7a3e3695d9f28698b45e34cfec (patch)
treebca0d2039d730e5a8114726a3fd447f4ee851583
parent87fdc923be2a1bf5fdf8c7c367a45ed10874be39 (diff)
Issue #2613190 by LOBsTerr, fenstrat, quietone, Chi, nicrodgers: Specify size for node_access.fallback column
-rw-r--r--core/modules/node/node.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/modules/node/node.install b/core/modules/node/node.install
index c754880..720a7e0 100644
--- a/core/modules/node/node.install
+++ b/core/modules/node/node.install
@@ -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',
+ ]);
+}