top-think/think-migration

"encoding" is not a valid column option.

suunnn opened this issue · 0 comments

->addColumn('content', 'string', ['encoding' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci'])
php think migrate:run
报错:
[RuntimeException]
"encoding" is not a valid column option.

think-migration version: 1.*
thinkphp version: 5.0.14

phinx官方文档上说string有encoding选项
http://docs.phinx.org/en/latest/migrations.html#valid-column-options
image