Merge "[apic] fix proxy_group migration default"
This commit is contained in:
commit
2d5067aeb7
|
@ -28,7 +28,8 @@ class GroupProxyMapping(model_base.BASEV2):
|
|||
sa.ForeignKey('gp_policy_target_groups.id',
|
||||
ondelete="SET NULL"))
|
||||
proxy_type = sa.Column(sa.String(24))
|
||||
enforce_service_chains = sa.Column(sa.Boolean)
|
||||
enforce_service_chains = sa.Column(sa.Boolean, default=True,
|
||||
nullable=False)
|
||||
|
||||
|
||||
class ProxyGatewayMapping(model_base.BASEV2):
|
||||
|
|
|
@ -30,7 +30,8 @@ def upgrade():
|
|||
|
||||
op.add_column(
|
||||
'gp_group_proxy_mappings',
|
||||
sa.Column('enforce_service_chains', sa.Boolean, default=True)
|
||||
sa.Column('enforce_service_chains', sa.Boolean,
|
||||
server_default=sa.sql.true())
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue