fix: allow setting default in longtext and text columns (#21089)

This commit is contained in:
Ritwik Puri 2023-05-25 12:29:20 +05:30 committed by GitHub
parent af3213a445
commit c5e62cac26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)}"