https://wiki.postgresql.org/wiki/Alter_column_position The three workarounds from this article are: Recreate the table Add columns and move data Hide the differences with a view
A simpler, faster alternative to git-filter-branch for deleting big files and removing passwords from Git history. https://rtyley.github.io/bfg-repo-cleaner/