database icon indicating copy to clipboard operation
database copied to clipboard

[Feature]: support column comment and table comment

Open shellphy opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

Could you add the ability to comment columns and tables?

Describe the solution you'd like

As laravel's migration provides:

$table->string('avatar')->nullable()->comment('图像');
$table->comment('交易');

Describe alternatives you've considered

Because when viewing a separate view database, if the field is more and more complex, it will be very confusing

Additional context

No response

shellphy avatar Oct 31 '24 16:10 shellphy

Related with https://github.com/cycle/database/issues/84

roxblnfk avatar Nov 01 '24 07:11 roxblnfk

This can likely be closed unless wanting to support table comments.

Support for column comments is already integrated: https://github.com/cycle/database/blob/2.x/tests/Database/Functional/Driver/Common/Schema/CommentTest.php

puzzledpolymath avatar Jun 29 '25 14:06 puzzledpolymath