Removed obsolete mentions of a check constraint in BaseDatabaseSchemaEditor.add_constraint()/remove_constraint() docstrings.
This commit is contained in:
parent
e8d0d2a5ef
commit
d14fa04ab3
|
@ -344,13 +344,13 @@ class BaseDatabaseSchemaEditor:
|
||||||
self.execute(index.remove_sql(model, self))
|
self.execute(index.remove_sql(model, self))
|
||||||
|
|
||||||
def add_constraint(self, model, constraint):
|
def add_constraint(self, model, constraint):
|
||||||
"""Add a check constraint to a model."""
|
"""Add a constraint to a model."""
|
||||||
sql = constraint.create_sql(model, self)
|
sql = constraint.create_sql(model, self)
|
||||||
if sql:
|
if sql:
|
||||||
self.execute(sql)
|
self.execute(sql)
|
||||||
|
|
||||||
def remove_constraint(self, model, constraint):
|
def remove_constraint(self, model, constraint):
|
||||||
"""Remove a check constraint from a model."""
|
"""Remove a constraint from a model."""
|
||||||
sql = constraint.remove_sql(model, self)
|
sql = constraint.remove_sql(model, self)
|
||||||
if sql:
|
if sql:
|
||||||
self.execute(sql)
|
self.execute(sql)
|
||||||
|
|
Loading…
Reference in New Issue