[1.7.x] Fixed adding new GIS column in PostGIS 1.x migration

Refs #22451.
Backport of fb09a489c from master.
[1.7.x] Fixed removal of GIS column in PostGIS 1.x migration

Refs #22481.
Backport of 2f9d1576e from master, squashed with 2f9d1576e8.
[1.7.x] Fixed table cleanup in GIS migration tests

Backport of ab90c4707b from master.