Merge pull request #479 from automatisch/feature/add-error-details-column
feat: Add error details jsonb column to execution steps
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
import { Knex } from 'knex';
|
||||||
|
|
||||||
|
export async function up(knex: Knex): Promise<void> {
|
||||||
|
return knex.schema.table('execution_steps', (table) => {
|
||||||
|
table.jsonb('error_details');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function down(knex: Knex): Promise<void> {
|
||||||
|
return knex.schema.table('execution_steps', (table) => {
|
||||||
|
table.dropColumn('error_details');
|
||||||
|
});
|
||||||
|
}
|
@@ -10,6 +10,7 @@ class ExecutionStep extends Base {
|
|||||||
stepId!: string;
|
stepId!: string;
|
||||||
dataIn!: Record<string, unknown>;
|
dataIn!: Record<string, unknown>;
|
||||||
dataOut!: Record<string, unknown>;
|
dataOut!: Record<string, unknown>;
|
||||||
|
errorDetails: Record<string, unknown>;
|
||||||
status = 'failure';
|
status = 'failure';
|
||||||
step: Step;
|
step: Step;
|
||||||
|
|
||||||
@@ -25,6 +26,7 @@ class ExecutionStep extends Base {
|
|||||||
dataIn: { type: 'object' },
|
dataIn: { type: 'object' },
|
||||||
dataOut: { type: 'object' },
|
dataOut: { type: 'object' },
|
||||||
status: { type: 'string', enum: ['success', 'failure'] },
|
status: { type: 'string', enum: ['success', 'failure'] },
|
||||||
|
errorDetails: { type: ['object', 'null'] },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user