Skip to content

added comment property support in postgres dialect - #4385

Closed
NAlexandrov wants to merge 2 commits into
sequelize:masterfrom
NAlexandrov:master
Closed

NAlexandrov wants to merge 2 commits into
sequelize:masterfrom
NAlexandrov:master

Conversation

@NAlexandrov

Copy link
Copy Markdown

If you open the url http://docs.sequelizejs.com/en/latest/docs/models-definition/ you can see that:

// Comments can be specified for each field for MySQL and PG
hasComment: { type: Sequelize.INTEGER, comment: "I'm a comment!" },

But this feature was not implemented in postgres dialect. I added this.

@NAlexandrov

Copy link
Copy Markdown
Author

Errors in travis-ci not related with my commits. And I can't fix it. I close this PR. May be someone else will add support a comment property for each field.

@NAlexandrov NAlexandrov mentioned this pull request Aug 24, 2015
@mickhansen mickhansen reopened this Aug 24, 2015
@mickhansen

Copy link
Copy Markdown
Contributor

Build looks green?

@janmeier

Copy link
Copy Markdown
Member

I restarted it :)

@mwain

mwain commented Nov 3, 2015

Copy link
Copy Markdown

Just came across this, i created a pull (#4767) for the same functionality and didn't see your pull.
While testing this it doesn't work for me, attribute.Model is undefined when using queryInterface. E.g:

queryInterface.createTable(
    'test',
    {
        id: {
            type: Sequelize.INTEGER,
            autoIncrement: true,
            primaryKey: true,
            comment: 'Unique identifier'
        }
    },
    {
        schema: 'playground'
    }
);

Also, will it handle schemas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants