I'm trying to create a migration in Phinx which will create a varbinary type field in a MySQL DB to store an ip_address.
This is what I have:
$table = $this->table('my_table');
$table->addColumn('ip_address', 'varbinary', ['after' => 'id', 'limit' => 16])
->save();
However this simply returns:
[InvalidArgumentException]
An invalid column type "varbinary" was specified for column "ip_address".
I tried using 'binary' but this just ended up as a BLOB. :/