Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
test for generating column comment(#93,#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kononnable committed Mar 19, 2020
1 parent 5f16cc5 commit f35e212
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/integration/github-issues/93/entity/Post.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import {
Index,
Entity,
PrimaryColumn,
Column,
OneToOne,
OneToMany,
ManyToOne,
JoinColumn
} from "typeorm";

@Entity("Post")
export class Post {
@Column("integer", {
primary: true,
name: "id"
})
id: number;

@Column({ comment: "comment" })
body: string;
}
5 changes: 5 additions & 0 deletions test/integration/runTestsFromPath.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ function runTestForMultipleDrivers(
dbDriver
)
);
case "93":
return dbDrivers.filter(
dbDriver =>
["mysql", "mariadb"].includes(dbDriver) // Only db engines supported by typeorm at the time of writing
);
case "144":
return dbDrivers.filter(dbDriver =>
["mysql", "mariadb"].includes(dbDriver)
Expand Down

0 comments on commit f35e212

Please sign in to comment.