[fix] tests
This commit is contained in:
parent
a9e3df6e82
commit
174cbd99f7
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ class CustomField(Document):
|
|||
|
||||
# update the schema
|
||||
if (self.fieldname not in frappe.db.get_table_columns(self.dt)
|
||||
or self._old_fieldtype != self.fieldtype):
|
||||
or getattr(self, "_old_fieldtype", None) != self.fieldtype):
|
||||
from frappe.model.db_schema import updatedb
|
||||
updatedb(self.dt)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue