From e277b947142a052b127c4c30cb5ad6e7c49461fd Mon Sep 17 00:00:00 2001 From: Ritwik Puri Date: Fri, 26 May 2023 11:09:28 +0530 Subject: [PATCH] fix: allow default for text and long text when altering table (#21109) --- frappe/database/schema.py | 1 - 1 file changed, 1 deletion(-) diff --git a/frappe/database/schema.py b/frappe/database/schema.py index 11948eda66..e65d7b980b 100644 --- a/frappe/database/schema.py +++ b/frappe/database/schema.py @@ -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)