test for generating column comment(#93,#260)
This commit is contained in:
parent
5f16cc5a46
commit
f35e212dab
22
test/integration/github-issues/93/entity/Post.ts
Normal file
22
test/integration/github-issues/93/entity/Post.ts
Normal file
@ -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;
|
||||
}
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user