Update views when migrating a database