Skip to content

Comment property #4386

Closed
Closed

Description

@NAlexandrov

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 tried to add this in this PR #4385 but tests was failed. Somebody can fix it?

Activity

  1. mickhansen commented on Aug 24, 2015

    @mickhansen
    Contributor

    I removed it at one point because it did not work with other features we wanted to implement, IIRC.

  2. NAlexandrov commented on Aug 25, 2015

    @NAlexandrov
    Author

    Do you have any plans to return support comments on columns? Or will you remove this feature from docs soon?

  3. flancer64 commented on Sep 18, 2015

    @flancer64

    MySQL dialect does not support comments on columns too. This feature is not supported at all. It is very sad, because comments on columns on the target database structure are very helpful for DB admins and developers.

  4. flancer64 commented on Sep 18, 2015

    @flancer64

    This is the last revision with support of the MySQL comments on columns. It would be very pretty to have this feature back.

    Thanks for Sequelize, guys :)

  5. added
    type: feature
    good first issue
    on Sep 18, 2015
  6. cesiya23 commented on Aug 17, 2016

    @cesiya23

    Why new versions remove the support of column comment of MYSQL?

  7. felixfbecker commented on Sep 1, 2016

    @felixfbecker
    Contributor

    Please don't +1 issues, it clutters notification feed and adds no value to the discussion. Use GitHub reactions. This issue is labeled as good-first-pr, so if you really want it, go ahead and reimplement it.

  8. AntSworD commented on Dec 9, 2016

    @AntSworD

    why don't remove code from document if it doesn't support of column comment?

  9. Anaphase commented on Dec 12, 2016

    @Anaphase

    @AntSworD is right; if this feature has been intentionally removed, the documentation should be updated to reflect that.

  10. adoyle-h commented on Dec 30, 2016

    @adoyle-h

    Does anyone can fix it? I think it is better to support comments on columns.

  11. plusmancn commented on Jan 7, 2017

    @plusmancn

    I'm waiting for this feature to back.

  12. aldafu commented on Jul 7, 2017

    @aldafu

    I'd argue this probot-stale is pretty useless. The issues remains. I get the stale tag, but closing the issue because of that isn't helpful.

  13. 5 remaining items

  14. wbget commented on May 22, 2018

    @wbget

    Any progress?

  15. Luomusha commented on Jun 19, 2018

    @Luomusha

    Any progress?

  16. mirkojotic commented on Jun 21, 2018

    @mirkojotic
    Contributor

    @janmeier Hi, I've made a pull request but tests for mssql dialect failed with:
    FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

    Nevertheless, I wasn't looking to get this merged immediately but to get some feedback on my direction.

  17. sushantdhiman commented on Jun 26, 2018

    @sushantdhiman
    Contributor

    Fixed #9573

  18. theRichu commented on Oct 25, 2018

    @theRichu

    In migration process, addColumn and comment is not working

    Postgres 10,

            return queryInterface.addColumn(
              {
                schema: 'project',
                tableName: 'scheduleAssigns'
              },
              'timeLogger',
              {
                type: Sequelize.JSONB,
                comment: 'Time Log on JSON',
                defaultValue: {}
              }
            )
    

    Generated Query:

    ALTER TABLE "project"."scheduleAssigns" ADD COLUMN "timeLogger" JSONB DEFAULT '{}' COMMENT Time Log on JSON;
    

    I've got ERROR: syntax error at or near "COMMENT"

    Should Be:

    ALTER TABLE "project"."scheduleAssigns" ADD COLUMN "timeLogger" JSONB DEFAULT '{}'; COMMENT ON "project"."scheduleAssigns"."timeLogger" IS 'Time Log on JSON';
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuetype: feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions