Merge pull request #37 from kjaenicke/mssql-timestamp-cols

Adds handling for mssql timestamp cols
This commit is contained in:
Kononnable 2018-02-18 23:37:27 +01:00 committed by GitHub
commit 1533c34944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -130,6 +130,9 @@ export class MssqlDriver extends AbstractDriver {
case "datetime":
colInfo.ts_type = "Date";
break;
case "timestamp":
colInfo.ts_type = "Date";
break;
case "char":
colInfo.ts_type = "string";
colInfo.char_max_lenght =

View File

@ -105,6 +105,9 @@ export class Post {
@Column("time")
timeObj: Date;
@Column("timestamp")
timestamp: Date;
// @Column("time")
// time: string;