Merge "Fix missing migration default value"

This commit is contained in:
Jenkins 2014-07-11 11:31:34 +00:00 committed by Gerrit Code Review
commit b4c8114f79
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ def upgrade(active_plugins=None, options=None):
return return
op.add_column('routers', sa.Column('enable_snat', sa.Boolean(), op.add_column('routers', sa.Column('enable_snat', sa.Boolean(),
nullable=False, default=True)) nullable=False, server_default="1"))
# Set enable_snat to True for existing routers # Set enable_snat to True for existing routers
op.execute("UPDATE routers SET enable_snat=True") op.execute("UPDATE routers SET enable_snat=True")

View File

@ -122,7 +122,7 @@ def upgrade(active_plugins=None, options=None):
) )
op.add_column('routers', sa.Column('enable_snat', sa.Boolean(), op.add_column('routers', sa.Column('enable_snat', sa.Boolean(),
nullable=False, default=True)) nullable=False, server_default="1"))
op.create_table( op.create_table(
'securitygroupportbindings', 'securitygroupportbindings',
sa.Column('port_id', sa.String(length=36), nullable=False), sa.Column('port_id', sa.String(length=36), nullable=False),