function node_update_7005

7.x node.install node_update_7005()

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

Related topics

File

drupal-7.x/modules/node/node.install, line 593
Install, update and uninstall functions for the node module.

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