cake3 has migration wrapper phinx. here line create table:
bin/cake bake migration createjobs name:string age:integer cakephp has docs here: http://book.cakephp.org/3.0/en/migrations.html; however, not specify how limit field sizes.
q how can specify size of field? left editing migration file manually?
i'm thinking like:
bin/cake bake migration createjobs name:string(100) age:tinyint but not work.
custom length values not supported on cli (you may want suggest enhancement on @ github), instead default value based on type used, see
github.com/cakephp/migrations/blob/1.1.4/readme.md#generating-migrations-from-the-cli
lengths columns defaulted:
- string: 255
- integer: 11
- biginteger: 20
so have modify generated files afterwards, or create extended migration shell/task uses column parser capable of handling length values.
Comments
Post a Comment