mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
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:
parent
9e4b6cc97a
commit
f3750a6646
|
@ -36,9 +36,9 @@ export class CredentialsEntity implements ICredentialsDb {
|
||||||
@Column('json')
|
@Column('json')
|
||||||
nodesAccess: ICredentialNodeAccess[];
|
nodesAccess: ICredentialNodeAccess[];
|
||||||
|
|
||||||
@Column('timestamp')
|
@Column('datetime')
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
|
|
||||||
@Column('timestamp')
|
@Column('datetime')
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,10 +36,10 @@ export class ExecutionEntity implements IExecutionFlattedDb {
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
retrySuccessId: string;
|
retrySuccessId: string;
|
||||||
|
|
||||||
@Column('timestamp')
|
@Column('datetime')
|
||||||
startedAt: Date;
|
startedAt: Date;
|
||||||
|
|
||||||
@Column('timestamp')
|
@Column('datetime')
|
||||||
stoppedAt: Date;
|
stoppedAt: Date;
|
||||||
|
|
||||||
@Column('json')
|
@Column('json')
|
||||||
|
|
|
@ -35,10 +35,10 @@ export class WorkflowEntity implements IWorkflowDb {
|
||||||
@Column('json')
|
@Column('json')
|
||||||
connections: IConnections;
|
connections: IConnections;
|
||||||
|
|
||||||
@Column('timestamp')
|
@Column('datetime')
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
|
|
||||||
@Column('timestamp')
|
@Column('datetime')
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
|
|
Loading…
Reference in a new issue