Slide 15
Slide 15 text
Table Column Options
All column type share the same basic
options.
● limit / length
● default
● null
● after
● comment
And the specific types have their
specific options.
http://docs.phinx.org/en/latest/migra
tions.html#valid-column-options
$this→Table('ExampleTable')
→AddColumn('Title','string',[
'length' => 64,
'null' => TRUE,
'comment' => 'title of book'
])
→AddColumn('ViewCount','integer',[
'default' => 0,
'signed' => FALSE,
'comment' => 'how many times read'
]);