Copying site to local ruins database views

I noticed recently that copying my live site to local via the app was causing a react page to stop working properly. I narrowed the cause down to a database view queried in the API called by the page. When the database is copied down, instead of using the proper DDL for the view the local site has a view with hard-coded values:

create view ViewName as
select 1 AS COL1,
1 AS COL2
…;

This worked before - not sure if the app changed or if the new “preferred” environment is to blame. Anyone else experiencing this?

Edit: I’m using the mac version of Local - version 2.4.2 - with the latest VirtualBox (5.2.18).