似乎支持postgres数组knex #226。是否存在超出原始sql的迁移语法? schema building docs没有提到它。
使用postgres array docs的原始sql数据类型可能是:
table.specificType('arrayfield', 'text[]')
但是有类似的东西:
table.string('arrayfield').array()
答案 0 :(得分:4)
是的,specificType
将是这里的方式,目前没有用于处理postgres特定类型的OO接口。