Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"encoding" is not a valid column option. #21

Open
suunnn opened this issue Aug 1, 2018 · 0 comments
Open

"encoding" is not a valid column option. #21

suunnn opened this issue Aug 1, 2018 · 0 comments

Comments

@suunnn
Copy link

suunnn commented Aug 1, 2018

->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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant