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
Post a Comment