mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
refactor(core): Remove unneeded call from CreateWorkflowHistoryTable
migration (no-changelog) (#7072)
https://github.com/n8n-io/n8n/pull/7069/files#r1312786460
This commit is contained in:
parent
95cb127dfa
commit
fa3d7070b0
|
@ -3,7 +3,7 @@ import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||||
const tableName = 'workflow_history';
|
const tableName = 'workflow_history';
|
||||||
|
|
||||||
export class CreateWorkflowHistoryTable1692967111175 implements ReversibleMigration {
|
export class CreateWorkflowHistoryTable1692967111175 implements ReversibleMigration {
|
||||||
async up({ schemaBuilder: { createTable, column }, queryRunner }: MigrationContext) {
|
async up({ schemaBuilder: { createTable, column } }: MigrationContext) {
|
||||||
await createTable(tableName)
|
await createTable(tableName)
|
||||||
.withColumns(
|
.withColumns(
|
||||||
column('versionId').varchar(36).primary.notNull,
|
column('versionId').varchar(36).primary.notNull,
|
||||||
|
@ -17,8 +17,7 @@ export class CreateWorkflowHistoryTable1692967111175 implements ReversibleMigrat
|
||||||
tableName: 'workflow_entity',
|
tableName: 'workflow_entity',
|
||||||
columnName: 'id',
|
columnName: 'id',
|
||||||
onDelete: 'CASCADE',
|
onDelete: 'CASCADE',
|
||||||
})
|
});
|
||||||
.execute(queryRunner);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async down({ schemaBuilder: { dropTable } }: MigrationContext) {
|
async down({ schemaBuilder: { dropTable } }: MigrationContext) {
|
||||||
|
|
Loading…
Reference in a new issue