You are here

function node_update_7005 in Drupal 7

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

Related topics

File

modules/node/node.install, line 594
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,
    ));
  }
}