I have the following in hooks.py on my custom app:
fixtures = ["Custom Field", "Custom Script",
"Naming Series", "Property Setter",
{"doctype": "DocType",
"filters": { "custom" : ["=", "1"] }
}
]
I currently have 4 custom scripts in my system.
After running bench export-fixtures
and doing a bench migrate
on my dev install or updating my production install with the same code, I get errors like the following:
frappe.exceptions.DuplicateEntryError: (u’Custom Script’, u’Account Programming-Client’, IntegrityError(1062, u"Duplicate entry ‘Account Programming-Client’ for key ‘PRIMARY’"))
It seems like the bench migrate
that is performed during bench update
or manually is trying to create additional scripts instead of updating the exisiting.
Thanks for any tips on how to clear this up.