Fixes ISSUE-47694: materialized view recreation
Now a materialized view will only be recreated if:
- Its definition has changed
- Depends on any view
- Depends on any other materialized view
- Depends on a function that will be deleted/recreated
- Depends on a table that is going to be updated on the current update.database run