From fa3d7070b04525d7df13483e43a699b287b33635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Fri, 1 Sep 2023 12:16:24 +0200 Subject: [PATCH] refactor(core): Remove unneeded call from `CreateWorkflowHistoryTable` migration (no-changelog) (#7072) https://github.com/n8n-io/n8n/pull/7069/files#r1312786460 --- .../common/1692967111175-CreateWorkflowHistoryTable.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/databases/migrations/common/1692967111175-CreateWorkflowHistoryTable.ts b/packages/cli/src/databases/migrations/common/1692967111175-CreateWorkflowHistoryTable.ts index 5f047ccb8..73d411e46 100644 --- a/packages/cli/src/databases/migrations/common/1692967111175-CreateWorkflowHistoryTable.ts +++ b/packages/cli/src/databases/migrations/common/1692967111175-CreateWorkflowHistoryTable.ts @@ -3,7 +3,7 @@ import type { MigrationContext, ReversibleMigration } from '@db/types'; const tableName = 'workflow_history'; export class CreateWorkflowHistoryTable1692967111175 implements ReversibleMigration { - async up({ schemaBuilder: { createTable, column }, queryRunner }: MigrationContext) { + async up({ schemaBuilder: { createTable, column } }: MigrationContext) { await createTable(tableName) .withColumns( column('versionId').varchar(36).primary.notNull, @@ -17,8 +17,7 @@ export class CreateWorkflowHistoryTable1692967111175 implements ReversibleMigrat tableName: 'workflow_entity', columnName: 'id', onDelete: 'CASCADE', - }) - .execute(queryRunner); + }); } async down({ schemaBuilder: { dropTable } }: MigrationContext) {