Try ERPNext Buy Support Partners Foundation

pymysql.err.ProgrammingError: ('DocType', 'Website Route Redirect')

I have tried to upgrade from my current ERPNext:

ERPNext: v12.x.x-develop () (develop)
Frappe Framework: v11.0.3-beta.22 () (develop)
Ubuntu 18.04

1. New Installation and Restore Database:
I can successfully install a fresh ERPNext and done initial setup, then I have tried to restore my DB to new installation. However there is the Problem with Website Route Redirect

2. For upgrading from current installation:
I have tried many solutions that suggest in our forum




But no luck. And at the end, it showed the same problem pymysql.err.ProgrammingError: (‘DocType’, ‘Website Route Redirect’)

Can any one help me to resolve the problem with (‘DocType’, ‘Website Route Redirect’)?
Thank you very much