function node_update_7005

Add status/comment/promote and sticky columns to the {node_revision} table.

Related topics

File

modules/node/node.install, line 594

Code

function node_update_7005() {
    foreach (array(
        'status',
        'comment',
        'promote',
        'sticky',
    ) as $column) {
        db_add_field('node_revision', $column, array(
            'type' => 'int',
            'not null' => TRUE,
            'default' => 0,
        ));
    }
}

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