pymysql.err.ProgrammingError: ('DocType', 'Portal Menu Item')

After installing frappe & erpnext & custom_app I’m getting this error. But in migration there is no issue

bench --site mysite.localhost migrate

The above command working fine. I don’t know what is the reason

You can add the entire console log for review.