You are here

function node_update_8300 in Drupal 8

Change {node_access}.fallback from an int to a tinyint as it is a boolean.

File

core/modules/node/node.install, line 228
Install, update and uninstall functions for the node module.

Code

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',
  ]);
}