diff --git a/vmware_nsx/db/migration/alembic_migrations/versions/mitaka/expand/312211a5725f_nsxv_lbv2.py b/vmware_nsx/db/migration/alembic_migrations/versions/mitaka/expand/312211a5725f_nsxv_lbv2.py index 913ebdb528..edda8b3ea5 100644 --- a/vmware_nsx/db/migration/alembic_migrations/versions/mitaka/expand/312211a5725f_nsxv_lbv2.py +++ b/vmware_nsx/db/migration/alembic_migrations/versions/mitaka/expand/312211a5725f_nsxv_lbv2.py @@ -62,7 +62,7 @@ def upgrade(): 'hm_id', 'edge_id')) op.create_table( 'nsxv_lbaas_certificate_bindings', - sa.Column('cert_id', sa.String(length=36), nullable=False), + sa.Column('cert_id', sa.String(length=128), nullable=False), sa.Column('edge_id', sa.String(length=36), nullable=False), sa.Column('edge_cert_id', sa.String(length=36), nullable=False), sa.PrimaryKeyConstraint('cert_id', 'edge_id')) diff --git a/vmware_nsx/db/nsxv_models.py b/vmware_nsx/db/nsxv_models.py index 7a817ee7bf..2d4b432d86 100644 --- a/vmware_nsx/db/nsxv_models.py +++ b/vmware_nsx/db/nsxv_models.py @@ -307,7 +307,7 @@ class NsxvLbaasCertificateBinding(model_base.BASEV2): __tablename__ = 'nsxv_lbaas_certificate_bindings' - cert_id = sa.Column(sa.String(36), primary_key=True) + cert_id = sa.Column(sa.String(128), primary_key=True) edge_id = sa.Column(sa.String(36), primary_key=True) edge_cert_id = sa.Column(sa.String(36), nullable=False)