mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor(core): Standardize filename casing for controllers and databases (no-changelog) (#10564)
This commit is contained in:
27
packages/cli/src/databases/entities/execution-data.ts
Normal file
27
packages/cli/src/databases/entities/execution-data.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Column, Entity, ManyToOne, PrimaryColumn } from '@n8n/typeorm';
|
||||
import { idStringifier } from '../utils/transformers';
|
||||
import { ExecutionEntity } from './execution-entity';
|
||||
import { jsonColumnType } from './abstract-entity';
|
||||
import { IWorkflowBase } from 'n8n-workflow';
|
||||
|
||||
@Entity()
|
||||
export class ExecutionData {
|
||||
@Column('text')
|
||||
data: string;
|
||||
|
||||
// WARNING: the workflowData column has been changed from IWorkflowDb to IWorkflowBase
|
||||
// when ExecutionData was introduced as a separate entity.
|
||||
// This is because manual executions of unsaved workflows have no workflow id
|
||||
// and IWorkflowDb has it as a mandatory field. IWorkflowBase reflects the correct
|
||||
// data structure for this entity.
|
||||
@Column(jsonColumnType)
|
||||
workflowData: IWorkflowBase;
|
||||
|
||||
@PrimaryColumn({ transformer: idStringifier })
|
||||
executionId: string;
|
||||
|
||||
@ManyToOne('ExecutionEntity', 'data', {
|
||||
onDelete: 'CASCADE',
|
||||
})
|
||||
execution: ExecutionEntity;
|
||||
}
|
||||
Reference in New Issue
Block a user