How to add table comments at migrations ? #32840
Replies: 11 comments 3 replies
-
in migration file add
|
Beta Was this translation helpful? Give feedback.
-
Hi @thisismhp https://laravel.com/docs/7.x/migrations#column-modifiers look for comment in the Column Modifiers table. |
Beta Was this translation helpful? Give feedback.
-
Hi @sergeByishimo |
Beta Was this translation helpful? Give feedback.
-
yeah sorry! @thisismhp that answer you provided is right! i wonder if a much nicer way is PR worthy!! |
Beta Was this translation helpful? Give feedback.
-
@sergeByishimo :) tnx |
Beta Was this translation helpful? Give feedback.
-
this is a feature request. |
Beta Was this translation helpful? Give feedback.
-
Moved to discussions. |
Beta Was this translation helpful? Give feedback.
-
May |
Beta Was this translation helpful? Give feedback.
-
Hi, Is this supported? |
Beta Was this translation helpful? Give feedback.
-
Table comments are now available from Version 9.14 on. See this PR and the Blog article Schema::table('posts', function (Blueprint $table) {
$table->comment('This is a comment');
}); |
Beta Was this translation helpful? Give feedback.
-
Before Laravel 9, only columns were allowed to comment. Since laravel 9 the ability to comment on the table itself has been added.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
How to add table comments at migrations ?
Beta Was this translation helpful? Give feedback.
All reactions