fix(core): Order skill ID migration after existing migrations

This commit is contained in:
Robin Braumann 2026-10-09 14:37:50 +02:00
parent 0424cb3242
commit 07cb0fbdb5
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ async function collectSkillIds(ctx: MigrationContext): Promise<IdMap> {
* The migration discards the skill ID mapping, so it cannot reverse normalization or random collision replacements.
* Keep existing task IDs because they also identify retained sandboxes.
*/
export class NormalizeAgentSkillIds1791454646995 implements IrreversibleMigration {
export class NormalizeAgentSkillIds1791549337362 implements IrreversibleMigration {
async up(ctx: MigrationContext) {
const skills = await collectSkillIds(ctx);
if (skills.size === 0) return;

View File

@ -9,7 +9,7 @@ import { Container } from '@n8n/di';
import { DataSource } from '@n8n/typeorm';
import { randomUUID } from 'node:crypto';
const migration = 'NormalizeAgentSkillIds1791454646995';
const migration = 'NormalizeAgentSkillIds1791549337362';
const agentId = 'Agent00000000001';
const projectId = 'Project000000001';
const skillId = 'skill_1111111111111111';