Increase the length of Singles table columns (#5540)

This commit is contained in:
Nabin Hait 2018-05-08 15:12:00 +05:30 committed by GitHub
parent 439effed7d
commit 09cbf49ff1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 5 deletions

View file

@ -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):

View file

@ -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

View file

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