DB Migration 14 doesn't create all image_tags columns

Bug #1043041 reported by Brian Waldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Critical
Brian Waldon

Bug Description

Migration 14, the creation of the image_tags table, is depending on the register_models magic function to fully create the table. It is missing created_at, updated_at, deleted_at, and deleted from its table definition.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/12090

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/12090
Committed: http://github.com/openstack/glance/commit/3917fdf3b0c69019303522109d96b9c3d9ff19e2
Submitter: Jenkins
Branch: master

commit 3917fdf3b0c69019303522109d96b9c3d9ff19e2
Author: Brian Waldon <email address hidden>
Date: Tue Aug 28 18:50:06 2012 -0700

    Add missing columns to migration 14

    This adds created_at, updated_at, and deleted_at to database
    migration 14.

    Background Info!

    If a new database is created at version 14, it doesn't run any
    migrations scripts. It lets sqlalchemy create the database from a
    set of sqlalchemy models.

    When an existing database is upgraded to version 14, it will use
    the migration script. What's important to note is that this is
    currently impossible due to bug 1042925.

    While it is typically bad practice to alter a migration script, this
    is a special case as nobody could have used it. What this patch does
    is complete the migration script in preparation for a future patch
    down the road to fix the bug referenced above.

    Fixes bug 1043041

    Change-Id: I6dc2afa735fb2f82df71d58b10c1e1530fce2f89

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: folsom-rc1 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.