Make view creation statments depend on related alter statements.

This ensures that views that depend on new rows added with an alter statement get created correctly.