function views_update_6014 in Views (for Drupal 7) 7.3
Add a drupal core version field.
File
- ./
views.install, line 543 - Contains install and update functions for Views.
Code
function views_update_6014() {
// Check because D6 installs may already have added this.
if (!db_field_exists('views_view', 'core')) {
$new_field = array(
'type' => 'int',
'default' => 0,
'description' => 'Stores the drupal core version of the view.',
);
db_add_field('views_view', 'core', $new_field);
}
}