From 9bc8b9967631064821112b5c7ff3b65fb0b176f6 Mon Sep 17 00:00:00 2001 From: Yoshihiro Kaneko Date: Wed, 7 Aug 2013 20:01:46 +0900 Subject: [PATCH] Fix wrong column name in db migration script of ryu plugin 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 --- .../migration/alembic_migrations/versions/5a875d0e5c_ryu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/db/migration/alembic_migrations/versions/5a875d0e5c_ryu.py b/neutron/db/migration/alembic_migrations/versions/5a875d0e5c_ryu.py index cedc215f5..b819b6d5d 100644 --- a/neutron/db/migration/alembic_migrations/versions/5a875d0e5c_ryu.py +++ b/neutron/db/migration/alembic_migrations/versions/5a875d0e5c_ryu.py @@ -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( -- 2.45.2