test for generating column comment(#93,#260)

This commit is contained in:
Kononnable 2020-03-19 23:26:22 +01:00
parent 5f16cc5a46
commit f35e212dab
2 changed files with 27 additions and 0 deletions

View 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;
}

View File

@ -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)