function node_update_8300

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

File

core/modules/node/node.install, line 228

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.