Difficult migration from Postgres 8.1 (postgis 1.5) to Postgres 9.4 (postgis 2.1)
Follow the hard upgrade procedure which uses postgis_restore.pl to help translate the differences between the versions.