Merge "Fix enable_snat column migration for Postgres + SQLite" into stable/icehouse
This commit is contained in:
commit
d786f55f27
|
@ -59,7 +59,8 @@ def upgrade(active_plugins=None, options=None):
|
|||
return
|
||||
|
||||
op.add_column('routers', sa.Column('enable_snat', sa.Boolean(),
|
||||
nullable=False, default=True))
|
||||
nullable=False,
|
||||
server_default=sa.sql.true()))
|
||||
# Set enable_snat to True for existing routers
|
||||
op.execute("UPDATE routers SET enable_snat=True")
|
||||
|
||||
|
|
Loading…
Reference in New Issue