From ff080cde5a447c15f68b576966e458732d759039 Mon Sep 17 00:00:00 2001 From: phot0n Date: Wed, 4 May 2022 10:43:43 +0530 Subject: [PATCH] minor: add patch for removing is_first_startup field --- frappe/patches.txt | 1 + frappe/patches/v14_0/remove_is_first_startup.py | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 frappe/patches/v14_0/remove_is_first_startup.py diff --git a/frappe/patches.txt b/frappe/patches.txt index 845ccee09a..80f4e382e3 100644 --- a/frappe/patches.txt +++ b/frappe/patches.txt @@ -189,6 +189,7 @@ frappe.patches.v14_0.save_ratings_in_fraction #23-12-2021 frappe.patches.v14_0.transform_todo_schema frappe.patches.v14_0.remove_post_and_post_comment frappe.patches.v14_0.reset_creation_datetime +frappe.patches.v14_0.remove_is_first_startup [post_model_sync] frappe.patches.v14_0.drop_data_import_legacy diff --git a/frappe/patches/v14_0/remove_is_first_startup.py b/frappe/patches/v14_0/remove_is_first_startup.py new file mode 100644 index 0000000000..b7d34204e5 --- /dev/null +++ b/frappe/patches/v14_0/remove_is_first_startup.py @@ -0,0 +1,7 @@ +import frappe + + +def execute(): + frappe.db.sql( + """DELETE FROM `tabSingles` where doctype = 'System Settings' and field = 'is_first_startup'""" + )