字符串数组迁移的语法

时间:2014-07-31 15:26:15

标签: arrays postgresql knex.js

似乎支持postgres数组knex #226。是否存在超出原始sql的迁移语法? schema building docs没有提到它。

使用postgres array docs的原始sql数据类型可能是:

table.specificType('arrayfield', 'text[]')

但是有类似的东西:

table.string('arrayfield').array()

1 个答案:

答案 0 :(得分:4)

是的,specificType将是这里的方式,目前没有用于处理postgres特定类型的OO接口。