Type adjustment in MySQL columns

* TIMESTAMP type columns have been replaced by DATETIME. Depending on
the version of MySQL and SQL_MODE, the DBMS does not accept to create
TIMESTAMP NOT NULL columns without a default value;
This commit is contained in:
Guilherme Almeida Girardi
2020-02-10 14:43:21 -03:00
parent 9e4b6cc97a
commit f3750a6646
3 changed files with 6 additions and 6 deletions

View File

@@ -36,9 +36,9 @@ export class CredentialsEntity implements ICredentialsDb {
@Column('json')
nodesAccess: ICredentialNodeAccess[];
@Column('timestamp')
@Column('datetime')
createdAt: Date;
@Column('timestamp')
@Column('datetime')
updatedAt: Date;
}