I tried to migrate custom fixtures to production and got following error:
frappe.core.doctype.doctype.doctype.NonUniqueError: OAuth Authorization Code: Fieldtype Text for Authorization Code cannot be unique
So what I did is:
- Assigned DocTypes that I changed fields in to my custom app
- Added this to hooks.py of my app
fixtures = [
# export all records from the Custom Field table
“Custom Field”,
“DocType”,
] - Pushed and pulled apps repo
- Ran
bench migrate
- Got
frappe.core.doctype.doctype.doctype.NonUniqueError: OAuth Authorization Code: Fieldtype Text for Authorization Code cannot be unique