mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-17 13:39:44 +02:00
fix(core): Order skill ID migration after existing migrations
This commit is contained in:
parent
0424cb3242
commit
07cb0fbdb5
|
|
@ -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;
|
||||
|
|
@ -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';
|
||||
Loading…
Reference in New Issue
Block a user