chore: Use sql to set naming series in older projects (#24512)

* chore: Use sql to set naming series in older projects

* fix: Remove unncessary db.commit()
diff --git a/erpnext/patches.txt b/erpnext/patches.txt
index 348f98f..a2b3dda 100644
--- a/erpnext/patches.txt
+++ b/erpnext/patches.txt
@@ -749,4 +749,4 @@
 erpnext.patches.v13_0.set_company_in_leave_ledger_entry
 erpnext.patches.v13_0.convert_qi_parameter_to_link_field
 erpnext.patches.v13_0.setup_patient_history_settings_for_standard_doctypes
-erpnext.patches.v13_0.add_naming_series_to_old_projects
+erpnext.patches.v13_0.add_naming_series_to_old_projects # 1-02-2021