fix: allow default for text and long text when altering table (#21109)

This commit is contained in:
Ritwik Puri 2023-05-26 11:09:28 +05:30 committed by GitHub
parent dfa411bdc5
commit e277b94714
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -247,7 +247,6 @@ class DbColumn:
self.default_changed(current_def)
and (self.default not in frappe.db.DEFAULT_SHORTCUTS)
and not cstr(self.default).startswith(":")
and not (column_type in ["text", "longtext"])
):
self.table.set_default.append(self)