Merge table alters, keep SQL quoted, format SQL

As requested on the `dev` branch