如何使用character varying(3)[]类型的Phinx通过其addColumn应用程序接口添加列?
深入研究源代码看起来可能不是supported feature
发布于 2020-06-19 05:49:33
Phinx支持custom types,你可以放弃类型检查,编写自己的自定义类型:
addColumn(
'MY_COLUMN_NAME',
Literal::from('CHARACTER VARYING(3)[]'),
[
'null' => true,
'comment' => 'SOME COMMENT ABOUT MY COLUMN'
])https://stackoverflow.com/questions/62459562
复制相似问题