[pre_model_sync]
xhiveframework.patches.v12_0.remove_deprecated_fields_from_doctype #3
execute:xhiveframework.utils.global_search.setup_global_search_table()
execute:xhiveframework.reload_doc('core', 'doctype', 'doctype_action', force=True) #2019-09-23
execute:xhiveframework.reload_doc('core', 'doctype', 'doctype_link', force=True) #2020-10-17
execute:xhiveframework.reload_doc('core', 'doctype', 'doctype_state', force=True) #2021-12-15
execute:xhiveframework.reload_doc('core', 'doctype', 'doctype', force=True) #2017-09-22
execute:xhiveframework.reload_doc('core', 'doctype', 'docfield', force=True) #2018-02-20
xhiveframework.patches.v11_0.drop_column_apply_user_permissions
execute:xhiveframework.reload_doc('core', 'doctype', 'custom_docperm')
execute:xhiveframework.reload_doc('core', 'doctype', 'docperm') #2018-05-29
execute:xhiveframework.reload_doc('core', 'doctype', 'comment')
execute:xhiveframework.reload_doc('core', 'doctype', 'document_naming_rule', force=True)
execute:xhiveframework.reload_doc('core', 'doctype', 'module_def') #2020-08-28
execute:xhiveframework.reload_doc('core', 'doctype', 'version') #2017-04-01
execute:xhiveframework.reload_doc('email', 'doctype', 'document_follow')
execute:xhiveframework.reload_doc('core', 'doctype', 'communication_link') #2019-10-02
execute:xhiveframework.reload_doc('core', 'doctype', 'has_role')
execute:xhiveframework.reload_doc('core', 'doctype', 'communication') #2019-10-02
execute:xhiveframework.reload_doc('core', 'doctype', 'server_script')
xhiveframework.patches.v11_0.replicate_old_user_permissions
xhiveframework.patches.v11_0.reload_and_rename_view_log #2019-01-03
xhiveframework.patches.v11_0.copy_fetch_data_from_options
xhiveframework.patches.v11_0.change_email_signature_fieldtype
execute:xhiveframework.reload_doc('core', 'doctype', 'activity_log')
execute:xhiveframework.reload_doc('core', 'doctype', 'deleted_document')
execute:xhiveframework.reload_doc('core', 'doctype', 'domain_settings')
xhiveframework.patches.v13_0.rename_custom_client_script
execute:xhiveframework.reload_doc('core', 'doctype', 'role') #2017-05-23
execute:xhiveframework.reload_doc('core', 'doctype', 'user') #2017-10-27
execute:xhiveframework.reload_doc('core', 'doctype', 'report_column')
execute:xhiveframework.reload_doc('core', 'doctype', 'report_filter')
execute:xhiveframework.reload_doc('core', 'doctype', 'report') #2020-08-25
execute:xhiveframework.reload_doc('core', 'doctype', 'error_snapshot')
execute:xhiveframework.get_doc("User", "Guest").save()
execute:xhiveframework.delete_doc("DocType", "Control Panel", force=1)
execute:xhiveframework.delete_doc("DocType", "Tag")
execute:xhiveframework.db.sql("delete from `tabProperty Setter` where `property` in ('idx', '_idx')")
execute:xhiveframework.db.sql("update tabUser set new_password='' where ifnull(new_password, '')!=''")
execute:xhiveframework.permissions.reset_perms("DocType")
execute:xhiveframework.db.sql("delete from `tabProperty Setter` where `property` = 'idx'")
execute:xhiveframework.db.sql("delete from tabSessions where user is null")
execute:xhiveframework.delete_doc("DocType", "Backup Manager")
execute:xhiveframework.permissions.reset_perms("Web Page")
execute:xhiveframework.permissions.reset_perms("Error Snapshot")
execute:xhiveframework.db.sql("delete from `tabWeb Page` where ifnull(template_path, '')!=''")
execute:xhiveframework.core.doctype.language.language.update_language_names() # 2017-04-12
execute:xhiveframework.db.set_value("Print Settings", "Print Settings", "add_draft_heading", 1)
execute:xhiveframework.db.set_default('language', '')
execute:xhiveframework.db.sql("update tabCommunication set communication_date = creation where time(communication_date) = 0")
execute:xhiveframework.rename_doc('Country', 'Macedonia, Republic of', 'Macedonia', ignore_if_exists=True)
execute:xhiveframework.rename_doc('Country', 'Iran, Islamic Republic of', 'Iran', ignore_if_exists=True)
execute:xhiveframework.rename_doc('Country', 'Tanzania, United Republic of', 'Tanzania', ignore_if_exists=True)
execute:xhiveframework.rename_doc('Country', 'Syrian Arab Republic', 'Syria', ignore_if_exists=True)
execute:xhiveframework.reload_doc('desk', 'doctype', 'notification_log')
execute:xhiveframework.db.sql('update tabReport set module="Desk" where name="ToDo"')
execute:xhiveframework.delete_doc('Page', 'data-import-tool', ignore_missing=True)
xhiveframework.patches.v10_0.reload_countries_and_currencies # 2021-02-03
xhiveframework.patches.v10_0.refactor_social_login_keys
xhiveframework.patches.v10_0.enable_chat_by_default_within_system_settings
xhiveframework.patches.v10_0.remove_custom_field_for_disabled_domain
execute:xhiveframework.delete_doc("Page", "chat")
xhiveframework.patches.v10_0.migrate_passwords_passlib
xhiveframework.patches.v11_0.rename_standard_reply_to_email_template
execute:xhiveframework.delete_doc_if_exists('Page', 'user-permissions')
xhiveframework.patches.v10_0.set_no_copy_to_workflow_state
xhiveframework.patches.v10_0.increase_single_table_column_length
xhiveframework.patches.v11_0.create_contact_for_user
xhiveframework.patches.v11_0.update_list_user_settings
xhiveframework.patches.v11_0.rename_workflow_action_to_workflow_action_master #13-06-2018
xhiveframework.patches.v11_0.rename_email_alert_to_notification #13-06-2018
xhiveframework.patches.v11_0.delete_duplicate_user_permissions
xhiveframework.patches.v11_0.set_dropbox_file_backup
xhiveframework.patches.v10_0.set_default_locking_time
xhiveframework.patches.v11_0.rename_google_maps_doctype
xhiveframework.patches.v10_0.modify_smallest_currency_fraction
xhiveframework.patches.v10_0.modify_naming_series_table
xhiveframework.patches.v10_0.enhance_security
xhiveframework.patches.v11_0.multiple_references_in_events
xhiveframework.patches.v11_0.set_allow_self_approval_in_workflow
xhiveframework.patches.v11_0.remove_skip_for_doctype
xhiveframework.patches.v11_0.migrate_report_settings_for_new_listview
xhiveframework.patches.v11_0.delete_all_prepared_reports
xhiveframework.patches.v11_0.fix_order_by_in_reports_json
execute:xhiveframework.delete_doc('Page', 'applications', ignore_missing=True)
xhiveframework.patches.v11_0.set_missing_creation_and_modified_value_for_user_permissions
xhiveframework.patches.v11_0.set_default_letter_head_source
xhiveframework.patches.v12_0.set_primary_key_in_series
execute:xhiveframework.delete_doc("Page", "modules", ignore_missing=True)
xhiveframework.patches.v12_0.setup_comments_from_communications
xhiveframework.patches.v12_0.replace_null_values_in_tables
xhiveframework.patches.v12_0.reset_home_settings
xhiveframework.patches.v12_0.update_print_format_type
xhiveframework.patches.v11_0.remove_doctype_user_permissions_for_page_and_report #2019-05-01
xhiveframework.patches.v11_0.apply_customization_to_custom_doctype
xhiveframework.patches.v12_0.remove_feedback_rating
xhiveframework.patches.v12_0.move_form_attachments_to_attachments_folder
xhiveframework.patches.v12_0.move_timeline_links_to_dynamic_links
xhiveframework.patches.v12_0.delete_feedback_request_if_exists #1
xhiveframework.patches.v12_0.rename_events_repeat_on
xhiveframework.patches.v12_0.fix_public_private_files
xhiveframework.patches.v12_0.move_email_and_phone_to_child_table
xhiveframework.patches.v12_0.delete_duplicate_indexes  # 2022-12-15
xhiveframework.patches.v12_0.set_default_incoming_email_port
xhiveframework.patches.v12_0.update_global_search
xhiveframework.patches.v12_0.setup_tags
xhiveframework.patches.v12_0.update_auto_repeat_status_and_not_submittable
xhiveframework.patches.v12_0.create_notification_settings_for_user
xhiveframework.patches.v11_0.make_all_prepared_report_attachments_private #2019-11-26
xhiveframework.patches.v12_0.setup_email_linking
xhiveframework.patches.v12_0.change_existing_dashboard_chart_filters
xhiveframework.patches.v12_0.set_correct_assign_value_in_docs #2020-07-13
execute:xhiveframework.delete_doc('DocType', 'Test Runner') # 2022-05-19
execute:xhiveframework.delete_doc_if_exists('DocType', 'Google Maps Settings')
execute:xhiveframework.db.set_default('desktop:home_page', 'workspace')
execute:xhiveframework.delete_doc_if_exists('DocType', 'GSuite Settings')
execute:xhiveframework.delete_doc_if_exists('DocType', 'GSuite Templates')
execute:xhiveframework.delete_doc_if_exists('DocType', 'GCalendar Account')
execute:xhiveframework.delete_doc_if_exists('DocType', 'GCalendar Settings')
xhiveframework.patches.v12_0.remove_example_email_thread_notify
execute:from xhiveframework.desk.page.setup_wizard.install_fixtures import update_genders;update_genders()
xhiveframework.patches.v12_0.set_correct_url_in_files
execute:xhiveframework.reload_doc('core', 'doctype', 'doctype') #2022-06-21
execute:xhiveframework.reload_doc('custom', 'doctype', 'property_setter')
xhiveframework.patches.v13_0.remove_invalid_options_for_data_fields
xhiveframework.patches.v13_0.website_theme_custom_scss
xhiveframework.patches.v13_0.make_user_type
xhiveframework.patches.v13_0.set_existing_dashboard_charts_as_public
xhiveframework.patches.v13_0.set_path_for_homepage_in_web_page_view
xhiveframework.patches.v13_0.migrate_translation_column_data
xhiveframework.patches.v13_0.set_read_times
xhiveframework.patches.v13_0.remove_web_view
xhiveframework.patches.v13_0.site_wise_logging
xhiveframework.patches.v13_0.set_unique_for_page_view
xhiveframework.patches.v13_0.remove_tailwind_from_page_builder
xhiveframework.patches.v13_0.rename_onboarding
xhiveframework.patches.v13_0.email_unsubscribe
execute:xhiveframework.delete_doc("Web Template", "Section with Left Image", force=1)
execute:xhiveframework.delete_doc("DocType", "Onboarding Slide")
execute:xhiveframework.delete_doc("DocType", "Onboarding Slide Field")
execute:xhiveframework.delete_doc("DocType", "Onboarding Slide Help Link")
xhiveframework.patches.v13_0.update_date_filters_in_user_settings
xhiveframework.patches.v13_0.update_duration_options
xhiveframework.patches.v13_0.replace_old_data_import # 2020-06-24
xhiveframework.patches.v13_0.create_custom_dashboards_cards_and_charts
xhiveframework.patches.v13_0.rename_is_custom_field_in_dashboard_chart
xhiveframework.patches.v13_0.add_standard_navbar_items # 2020-12-15
xhiveframework.patches.v13_0.generate_theme_files_in_public_folder
xhiveframework.patches.v13_0.increase_password_length
xhiveframework.patches.v12_0.fix_email_id_formatting
xhiveframework.patches.v13_0.add_toggle_width_in_navbar_settings
xhiveframework.patches.v13_0.rename_notification_fields
xhiveframework.patches.v13_0.remove_duplicate_navbar_items
xhiveframework.patches.v13_0.set_social_icons
xhiveframework.patches.v12_0.set_default_password_reset_limit
xhiveframework.patches.v13_0.set_route_for_blog_category
xhiveframework.patches.v13_0.enable_custom_script
xhiveframework.patches.v13_0.update_newsletter_content_type
execute:xhiveframework.db.set_value('Website Settings', 'Website Settings', {'navbar_template': 'Standard Navbar', 'footer_template': 'Standard Footer'})
xhiveframework.patches.v13_0.delete_event_producer_and_consumer_keys
xhiveframework.patches.v13_0.web_template_set_module #2020-10-05
xhiveframework.patches.v13_0.remove_custom_link
execute:xhiveframework.delete_doc("DocType", "Footer Item")
execute:xhiveframework.reload_doctype('user')
execute:xhiveframework.reload_doctype('docperm')
xhiveframework.patches.v13_0.replace_field_target_with_open_in_new_tab
xhiveframework.core.doctype.role.patches.v13_set_default_desk_properties
xhiveframework.patches.v13_0.add_switch_theme_to_navbar_settings
xhiveframework.patches.v13_0.update_icons_in_customized_desk_pages
execute:xhiveframework.db.set_default('desktop:home_page', 'space')
execute:xhiveframework.delete_doc_if_exists('Page', 'workspace')
execute:xhiveframework.delete_doc_if_exists('Page', 'dashboard', force=1)
xhiveframework.core.doctype.page.patches.drop_unused_pages
execute:xhiveframework.get_doc('Role', 'Guest').save() # remove desk access
xhiveframework.patches.v13_0.remove_chat
xhiveframework.patches.v13_0.rename_desk_page_to_workspace # 02.02.2021
xhiveframework.patches.v13_0.delete_package_publish_tool
xhiveframework.patches.v13_0.rename_list_view_setting_to_list_view_settings
xhiveframework.patches.v13_0.remove_twilio_settings
xhiveframework.patches.v12_0.rename_uploaded_files_with_proper_name
xhiveframework.patches.v13_0.queryreport_columns
xhiveframework.patches.v13_0.jinja_hook
xhiveframework.patches.v13_0.update_notification_channel_if_empty
xhiveframework.patches.v13_0.set_first_day_of_the_week
xhiveframework.patches.v13_0.encrypt_2fa_secrets
xhiveframework.patches.v13_0.reset_corrupt_defaults
xhiveframework.patches.v13_0.remove_share_for_std_users
execute:xhiveframework.reload_doc('custom', 'doctype', 'custom_field')
xhiveframework.patches.v14_0.update_workspace2 # 20.09.2021
xhiveframework.patches.v14_0.save_ratings_in_fraction #23-12-2021
xhiveframework.patches.v14_0.transform_todo_schema
xhiveframework.patches.v14_0.remove_post_and_post_comment
xhiveframework.patches.v14_0.reset_creation_datetime
xhiveframework.patches.v14_0.remove_is_first_startup
xhiveframework.patches.v14_0.clear_long_pending_stale_logs
xhiveframework.patches.v14_0.log_settings_migration
xhiveframework.patches.v14_0.setup_likes_from_feedback
xhiveframework.patches.v14_0.update_webforms
xhiveframework.patches.v14_0.delete_payment_gateways
xhiveframework.patches.v14_0.event_streaming_deprecation_warning

[post_model_sync]
xhiveframework.patches.v14_0.drop_data_import_legacy
xhiveframework.patches.v14_0.copy_mail_data #08.03.21
xhiveframework.patches.v14_0.update_github_endpoints #08-11-2021
xhiveframework.patches.v14_0.remove_db_aggregation
xhiveframework.patches.v14_0.update_color_names_in_kanban_board_column
xhiveframework.patches.v14_0.update_is_system_generated_flag
xhiveframework.patches.v14_0.update_auto_account_deletion_duration
xhiveframework.patches.v14_0.update_integration_request
xhiveframework.patches.v14_0.set_document_expiry_default
xhiveframework.patches.v14_0.delete_data_migration_tool
xhiveframework.patches.v14_0.set_suspend_email_queue_default
xhiveframework.patches.v14_0.different_encryption_key
xhiveframework.patches.v14_0.update_multistep_webforms
xhiveframework.patches.v14_0.drop_unused_indexes
xhiveframework.patches.v14_0.disable_email_accounts_with_oauth
xhiveframework.patches.v14_0.remove_manage_subscriptions_from_navbar
