function views_update_6014

Add a drupal core version field.

File

./views.install, line 567

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