Fix for incorrect postgres datatype declaration for upgrading