fix: batch course sequence id issue

This commit is contained in:
Jannat Patel
2023-09-14 12:34:34 +05:30
parent 9c00a5561a
commit 29860583f4
4 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
import frappe
def execute():
frappe.db.create_sequence("Batch Course", check_not_exists=True)
frappe.db.set_next_sequence_val("Batch Course", 500, is_val_used=False)