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

View file

@ -36,10 +36,10 @@ export class ExecutionEntity implements IExecutionFlattedDb {
@Column({ nullable: true })
retrySuccessId: string;
@Column('timestamp')
@Column('datetime')
startedAt: Date;
@Column('timestamp')
@Column('datetime')
stoppedAt: Date;
@Column('json')

View file

@ -35,10 +35,10 @@ export class WorkflowEntity implements IWorkflowDb {
@Column('json')
connections: IConnections;
@Column('timestamp')
@Column('datetime')
createdAt: Date;
@Column('timestamp')
@Column('datetime')
updatedAt: Date;
@Column({