Fixes: #8578
Change-Id: Ic79c19748d5bb00353d0a97f3a4b4f5eb9fdbb0c
new_onupdate = self.onupdate._copy()
new_onupdate._set_parent(other)
+ if self.index and not other.index:
+ other.index = True
+
+ if self.unique and not other.unique:
+ other.unique = True
+
for const in self.constraints:
if not const._type_bound:
new_const = const._copy()
("nullable", True),
("nullable", False),
("type", BigInteger()),
+ ("index", True),
+ ("unique", True),
argnames="paramname, value",
)
@testing.combinations(True, False, argnames="optional")
("server_default", func.foo()),
("nullable", True),
("nullable", False),
+ ("index", True),
+ ("unique", True),
("type", BigInteger()),
("type", Enum("one", "two", "three", create_constraint=True)),
argnames="paramname, value",