-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add comment method to SchemaBuilder #9089
Conversation
…mment('Definition');
|
I got it just now, should I fix that by implementing |
Yes. |
It works on postgress? |
I have not tested it on postgre, but as I know postgre has another writing rules about comments on columns |
@nemmo yes. It does not work on postgre. But your method must be a cross platform. |
Explain |
*/ | ||
protected function buildCommentString() | ||
{ | ||
return $this->comment === null ? '' : " COMMENT '{$this->comment}'"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs sanitization
PR can't be merged because it's MySQL only and has issues. |
Implemented in fde8aa6 |
Schema::integer()->comment('Definition');