Migrating a table in knex: storing media, image or a blob Migrating a table in knex: storing media, image or a blob postgresql postgresql

Migrating a table in knex: storing media, image or a blob


Looks like table.binary should fit the bill.

The PostgreSQL data type should be bytea.


binary — table.binary(name, [length])Adds a binary column, with optional length argument for MySQL.