db icon indicating copy to clipboard operation
db copied to clipboard

Add comment property to database classes

Open michaelarnauts opened this issue 8 years ago • 3 comments

A database can contain comments on the columns and the table itself. The comment of the columns can be read out trough the ColumnSchema class, but the comment on the table itself isn't.

Is this something that is open for inclusion in Yii 2? This is a bit related to #6093, but that PR wasn't accepted, so I want to avoid to work on this if it won't be accepted.

This could be used to generate usefull phpdoc with Gii based on the database comments.

michaelarnauts avatar Dec 07 '16 14:12 michaelarnauts

I'm OK having it.

samdark avatar Dec 07 '16 14:12 samdark

me too. Table comments are useful, like i.e. for sorting in Navicat.

dynasource avatar Dec 07 '16 15:12 dynasource

https://github.com/yiisoft/yii2/pull/13162

samdark avatar Apr 23 '19 21:04 samdark

done.

terabytesoftw avatar Feb 18 '23 18:02 terabytesoftw