First cut of migrating rules for MySQL from PostgreSQL.