]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix wrong column name in db migration script of ryu plugin
authorYoshihiro Kaneko <ykaneko0929@gmail.com>
Wed, 7 Aug 2013 11:01:46 +0000 (20:01 +0900)
committerYoshihiro Kaneko <ykaneko0929@gmail.com>
Wed, 7 Aug 2013 11:28:53 +0000 (20:28 +0900)
Fixes bug #1209172

A column name of tunnelkeys table which db migration script of ryu
plugin creates is wrong.
This patch fixes the column name.

Change-Id: Ic3a445ea200111c0d7db93951804e7c4570420f2

neutron/db/migration/alembic_migrations/versions/5a875d0e5c_ryu.py

index cedc215f5cbb429ec3b6c16f5d9e76f1531d5e1a..b819b6d5d310578d753e06a0b883b335dc304d76 100644 (file)
@@ -51,11 +51,11 @@ def upgrade(active_plugin=None, options=None):
     op.create_table(
         'tunnelkeys',
         sa.Column('network_id', sa.String(length=36), nullable=False),
-        sa.Column('last_key', sa.Integer(), autoincrement=False,
+        sa.Column('tunnel_key', sa.Integer(), autoincrement=False,
                   nullable=False),
         sa.ForeignKeyConstraint(['network_id'], ['networks.id'],
                                 ondelete='CASCADE'),
-        sa.PrimaryKeyConstraint('last_key')
+        sa.PrimaryKeyConstraint('tunnel_key')
     )
 
     op.create_table(