chore: keep old field data for role profile around

Avoids potential data loss, it will get cleaned up over time.
This commit is contained in:
Ankush Menat 2024-02-10 13:45:55 +05:30
parent 19044c4be4
commit 37489d3715

View file

@ -8,7 +8,6 @@ def execute():
)
user_profiles = get_records_to_insert(users)
bulk_insert("User Role Profile", user_profiles, ignore_duplicates=True)
frappe.db.set_value("User", {}, "role_profile_name", None, update_modified=None)
def get_records_to_insert(users):