deliciousbrains / wp-migrate-db

WordPress plugin that exports your database, does a find and replace on URLs and file paths, then allows you to save it to your computer.
https://wordpress.org/plugins/wp-migrate-db/
341 stars 515 forks source link

Treat spatial types as binary data #100

Open PerryRylance opened 5 years ago

PerryRylance commented 5 years ago

Suggested change

if(preg_match('/^GEOMETRY|POINT|POLYGON|LINESTRING|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION$/i', $struct->Type)) $bins[ strtolower( $struct->Field ) ] = '1';

In

/class/Common/Sql/Table.php

On line 630.

I tried to make a PR but couldn't.