Fix SQL errors after upgrade

Enhance the logic to check entity type has any bundles inside the workflow Re-add the entity type CURD to fix missing SQL table error

Merge request reports

Loading