alter_view procedure allows changing a view's query without any down time, which can be useful for migrations. The procedure will create a new view with the new query and will start populating it. Once the new view is ready, it will be swapped with the old view atomically.
|view_name||The existing view name for which to change the query.|
|new_query||The new query for the view.|
Altering a view: