refactor(core): Move migrations to @n8n/db (#15362)

This commit is contained in:
Iván Ovejero
2025-05-14 11:46:48 +02:00
committed by GitHub
parent 44ecad5883
commit 249b7f8556
223 changed files with 344 additions and 339 deletions

View File

@@ -3,11 +3,14 @@ import { GlobalConfig } from '@n8n/config';
import type { User } from '@n8n/db';
import { ApiKeyRepository } from '@n8n/db';
import { Container } from '@n8n/di';
import type { ApiKeyScope } from '@n8n/permissions';
import {
getApiKeyScopesForRole,
getOwnerOnlyApiKeyScopes,
type ApiKeyScope,
} from '@n8n/permissions';
import { mock } from 'jest-mock-extended';
import type { License } from '@/license';
import { getApiKeyScopesForRole, getOwnerOnlyApiKeyScopes } from '@/public-api/permissions.ee';
import { PublicApiKeyService } from '@/services/public-api-key.service';
import { mockInstance } from '@test/mocking';