[fix] don't unique text fields
This commit is contained in:
parent
86e02861d5
commit
777774ced4
1 changed files with 2 additions and 2 deletions
|
|
@ -286,10 +286,10 @@ class DbColumn:
|
|||
if (current_def['index'] and not self.set_index):
|
||||
self.table.drop_index.append(self)
|
||||
|
||||
if (current_def['unique'] and not self.unique):
|
||||
if (current_def['unique'] and not self.unique) and not (column_def in ('text', 'longtext')):
|
||||
self.table.drop_index.append(self)
|
||||
|
||||
if (not current_def['index'] and self.set_index and not (column_def in ['text', 'longtext'])):
|
||||
if (not current_def['index'] and self.set_index) and not (column_def in ('text', 'longtext')):
|
||||
self.table.add_index.append(self)
|
||||
|
||||
# default
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue