Fix line endings
Remove the unnecessary select from INFORMATION_SCHEMA.VIEWS and make the index as a separate step in the command.