Merge "Set create_constraint=True for boolean constraint test"

This commit is contained in:
Zuul 2020-06-22 17:21:09 +00:00 committed by Gerrit Code Review
commit 654ec1e1ba
1 changed files with 1 additions and 1 deletions

View File

@ -905,7 +905,7 @@ class TestMigrationUtils(db_test_base._DbTestCase):
table_name = 'abc'
table = Table(table_name, self.meta,
Column('id', Integer, primary_key=True),
Column('deleted', Boolean))
Column('deleted', Boolean(create_constraint=True)))
ck = [
const for const in table.constraints if
isinstance(const, CheckConstraint)][0]