~danwent/nova/qmanager-new

« back to all changes in this revision

Viewing changes to nova/db/sqlalchemy/migrate_repo/versions/044_add_network_priority.py

  • Committer: Dan Wendlandt
  • Date: 2011-09-02 19:11:28 UTC
  • Revision ID: dan@nicira.com-20110902191128-mtwi21wycffmlic0
more review cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
# Add priority column to networks table
26
26
priority = Column('priority', Integer())
27
27
 
 
28
networks = Table('networks', meta, autoload=True)
28
29
 
29
30
def upgrade(migrate_engine):
30
31
    meta.bind = migrate_engine
31
32
 
32
 
    # grab tables and (column for dropping later)
33
 
    networks = Table('networks', meta, autoload=True)
34
 
 
35
33
    try:
36
34
        networks.create_column(priority)
37
35
    except Exception: