1 parent
dfb3bc9337
commit
347a816156
1 file changed
+1
-1
@@ -279,7 +279,7 @@ class TableHandler(TableHandlerInterface):
|
||||
ident = self.convert_name(self.table_name + "_" + ident)
|
||||
if database.has_constraint(constraint):
|
||||
where = ''
|
||||
if hasattr(constraint, 'where'):
|
||||
if getattr(constraint, 'where', None):
|
||||
where = ' WHERE ' + str(constraint.where)
|
||||
cursor.execute(
|
||||
'CREATE UNIQUE INDEX IF NOT EXISTS %s ON %s (%s) %s' % (
|
||||
|
||||
Reference in new issue
Block a user