Skip to content

Column comments are persisted in MySQL but not PostgreSQL #4359

@rmainwork

Description

@rmainwork

Issue type:

  • question
  • bug report
  • feature request
  • documentation issue

Database system/driver:

  • cordova
  • mongodb
  • mssql
  • mysql / mariadb
  • oracle
  • postgres
  • cockroachdb
  • sqlite
  • sqljs
  • react-native
  • expo

TypeORM version:

  • latest
  • @next
  • 0.2.18 (or put your version here)

Steps to reproduce or a small repository showing the problem:

import {
  Entity, Column,
} from 'typeorm';

@Entity()
export class User {
  @Column({
    type: 'varchar',
    nullable: false,
    comment: 'The name of the user (i.e Samuel Jenkins)',
  })
  public name: string;
}

In MySQL this comment would be persisted to the database when a migration is generated (the migration would contain a SQL statement including the comment). In PostgreSQL.....that's not the case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions