Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

It seems postgres arrays are supported knex #226. Is there syntax for a migration beyond raw sql? The schema building docs don't mention it.

Presumably using raw sql using the postgres array docs would be:

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

But is there something like:

table.string('arrayfield').array()
share|improve this question
    
What is table.specificType('arrayfield', 'text[]') supposed to be? Doesn't look like valid SQL. –  Erwin Brandstetter 19 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.