#1067 Page view SQL migration script fix