Merge "Fix missing migration default value"
This commit is contained in:
commit
b4c8114f79
@ -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")
|
||||||
|
|
||||||
|
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user