function node_update_7005

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

Related topics

Archivo

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

Código

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