0

How do I add a column using Phinx of type character varying(3)[] using their addColumn api?

Digging into the source code seems like it might not be a supported feature?

Dan
  • 2,455
  • 3
  • 19
  • 53

1 Answers1

0

Phinx support custom types and you can forgo type check and write your own custom types:

addColumn(
    'MY_COLUMN_NAME',
    Literal::from('CHARACTER VARYING(3)[]'),
    [
        'null' => true,
        'comment' => 'SOME COMMENT ABOUT MY COLUMN'
    ])
Dan
  • 2,455
  • 3
  • 19
  • 53