Parcourir la source

Merge pull request #3910 from adityahase/fix-maxlength-comparison

Make sure that max_length[0][0] is comparable with new_length
version-14
Rushabh Mehta il y a 8 ans
committed by GitHub
Parent
révision
1b9dd05481
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      frappe/model/db_schema.py

+ 1
- 1
frappe/model/db_schema.py Voir le fichier

@@ -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:


Chargement…
Annuler
Enregistrer