Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

CTOlet
Copy link

@CTOlet CTOlet commented Jul 13, 2015

Schema::integer()->comment('Definition');

@samdark
Copy link
Member

samdark commented Jul 13, 2015

comment() is not reserved keyword. Why adding it into __call()?

@samdark samdark self-assigned this Jul 13, 2015
@samdark samdark added this to the 2.0.6 milestone Jul 13, 2015
@CTOlet
Copy link
Author

CTOlet commented Jul 13, 2015

I got it just now, should I fix that by implementing comment() method?

@samdark
Copy link
Member

samdark commented Jul 13, 2015

Yes.

@vaseninm
Copy link
Contributor

It works on postgress?

@CTOlet
Copy link
Author

CTOlet commented Jul 13, 2015

I have not tested it on postgre, but as I know postgre has another writing rules about comments on columns

@vaseninm
Copy link
Contributor

@nemmo yes. It does not work on postgre. But your method must be a cross platform.

@valonsoft
Copy link

Explain

@cebe
Copy link
Member

cebe commented Jul 19, 2015

@samdark samdark modified the milestones: 2.0.7, 2.0.6 Jul 27, 2015
*/
protected function buildCommentString()
{
return $this->comment === null ? '' : " COMMENT '{$this->comment}'";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs sanitization

@samdark
Copy link
Member

samdark commented Sep 28, 2015

PR can't be merged because it's MySQL only and has issues.

@samdark samdark closed this Sep 28, 2015
@cebe cebe removed this from the 2.0.7 milestone Sep 28, 2015
@SilverFire
Copy link
Member

Implemented in fde8aa6

@SilverFire SilverFire assigned SilverFire and unassigned samdark Apr 19, 2016
@SilverFire SilverFire added this to the 2.0.8 milestone Apr 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants