[1.7.x] Fixed #23538 -- Added SchemaEditor for MySQL GIS.

Thanks Claude Paroz for suggestions and review.

Backport of 74e7f91e6d from master