migration - Add comment to SQL table -


how can add comment specific sql-table in yii2 migration?

sql code:

alter table my_table comment 'hello world'

i wand in within migration in orm way

in yii2 format

  • addcommentoncolumn($table, $column, $comment)
  • dropcommentfromcolumn($table, $column)
  • addcommentontable($table, $comment)
  • dropcommentfromtable($table)

example: in migration file

$this->addcommentoncolumn('user','role_id','relation table of role'); 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -