CiviCRM database issue with views and the definer
It is possible to recreate the views using the following script. (It also recreates the triggers and stored functions that can have the same problem

&lt;?php
   civicrm_initialize();
   Civi::service('sql_triggers')-&gt;rebuild(null, false);
   CRM_Case_BAO_Case::createCaseViews();


Run the script with drush scr &lt;script.php&gt;