From c5e62cac261d0c6bb42f2a8ca59272f44ae0d9d2 Mon Sep 17 00:00:00 2001 From: Ritwik Puri Date: Thu, 25 May 2023 12:29:20 +0530 Subject: [PATCH] fix: allow setting default in longtext and text columns (#21089) --- frappe/database/schema.py | 1 - 1 file changed, 1 deletion(-) diff --git a/frappe/database/schema.py b/frappe/database/schema.py index 7a8330595e..11948eda66 100644 --- a/frappe/database/schema.py +++ b/frappe/database/schema.py @@ -205,7 +205,6 @@ class DbColumn: self.default and (self.default not in frappe.db.DEFAULT_SHORTCUTS) and not cstr(self.default).startswith(":") - and column_def not in ("text", "longtext") ): column_def += f" default {frappe.db.escape(self.default)}"