app migrate: Use = instead of LIKE as described in the comment above.

The LIKE operator is not defined on integers (probably any non-text) columns on PostgreSQL.

Should fix #3836 (also see comments). Needs testing.

@butonic @tomneedham