[1.7.x] Fixed remove_field for spatialite schema changes.

Backport of f915d39afe3565ac2355de57c11843530b96f3bc from master.