Increase the length of Singles table columns (#5540)
This commit is contained in:
parent
439effed7d
commit
09cbf49ff1
3 changed files with 15 additions and 5 deletions
|
|
@ -61,10 +61,11 @@ class RolePermissionforPageandReport(Document):
|
|||
def get_roles(self):
|
||||
roles = []
|
||||
for data in self.roles:
|
||||
roles.append({
|
||||
'role': data.role,
|
||||
'parenttype': 'Custom Role'
|
||||
})
|
||||
if data.role != "All":
|
||||
roles.append({
|
||||
'role': data.role,
|
||||
'parenttype': 'Custom Role'
|
||||
})
|
||||
return roles
|
||||
|
||||
def update_status(self):
|
||||
|
|
|
|||
|
|
@ -200,4 +200,5 @@ frappe.patches.v9_1.resave_domain_settings
|
|||
frappe.patches.v9_1.revert_domain_settings
|
||||
frappe.patches.v9_1.move_feed_to_activity_log
|
||||
execute:frappe.delete_doc('Page', 'data-import-tool', ignore_missing=True)
|
||||
frappe.patches.v10_0.reload_countries_and_currencies
|
||||
frappe.patches.v10_0.reload_countries_and_currencies
|
||||
frappe.patches.v10_0.increase_single_table_column_length
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
"""
|
||||
Run this after updating country_info.json and or
|
||||
"""
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
for col in ("field", "doctype"):
|
||||
frappe.db.sql_ddl("alter table `tabSingles` modify column `{0}` varchar(255)".format(col))
|
||||
Loading…
Add table
Reference in a new issue