Make sure that max_length[0][0] is comparable with new_length
This commit is contained in:
parent
c275f8fcfd
commit
5cc6903cd5
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ class DbTable:
|
|||
else:
|
||||
raise
|
||||
|
||||
if max_length and max_length[0][0] > new_length:
|
||||
if max_length and max_length[0][0] and max_length[0][0] > new_length:
|
||||
current_type = self.current_columns[col.fieldname]["type"]
|
||||
current_length = re.findall('varchar\(([\d]+)\)', current_type)
|
||||
if not current_length:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue