mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
refactor(core): Use @/databases/
instead of @db/
(no-changelog) (#10573)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Waiting to run
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Waiting to run
This commit is contained in:
parent
9b35cc8c05
commit
ab9835126e
|
@ -7,8 +7,8 @@ import { ErrorReporterProxy as ErrorReporter } from 'n8n-workflow';
|
|||
|
||||
import { inTest } from '@/constants';
|
||||
import { wrapMigration } from '@/databases/utils/migration-helpers';
|
||||
import type { Migration } from '@db/types';
|
||||
import { getConnectionOptions } from '@db/config';
|
||||
import type { Migration } from '@/databases/types';
|
||||
import { getConnectionOptions } from '@/databases/config';
|
||||
|
||||
let connection: Connection;
|
||||
|
||||
|
|
|
@ -35,10 +35,10 @@ import type { AuthProviderType } from '@/databases/entities/auth-identity';
|
|||
import type { SharedCredentials } from '@/databases/entities/shared-credentials';
|
||||
import type { TagEntity } from '@/databases/entities/tag-entity';
|
||||
import type { AssignableRole, GlobalRole, User } from '@/databases/entities/User';
|
||||
import type { CredentialsRepository } from '@db/repositories/credentials.repository';
|
||||
import type { SettingsRepository } from '@db/repositories/settings.repository';
|
||||
import type { UserRepository } from '@db/repositories/user.repository';
|
||||
import type { WorkflowRepository } from '@db/repositories/workflow.repository';
|
||||
import type { CredentialsRepository } from '@/databases/repositories/credentials.repository';
|
||||
import type { SettingsRepository } from '@/databases/repositories/settings.repository';
|
||||
import type { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import type { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
import type { ExternalHooks } from './external-hooks';
|
||||
import type { LICENSE_FEATURES, LICENSE_QUOTAS } from './constants';
|
||||
import type { WorkflowWithSharingsAndCredentials } from './workflows/workflows.types';
|
||||
|
|
|
@ -11,7 +11,7 @@ import type { OpenAPIV3 } from 'openapi-types';
|
|||
import type { JsonObject } from 'swagger-ui-express';
|
||||
|
||||
import { License } from '@/license';
|
||||
import { UserRepository } from '@db/repositories/user.repository';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { UrlService } from '@/services/url.service';
|
||||
import type { AuthenticatedRequest } from '@/requests';
|
||||
import { GlobalConfig } from '@n8n/config';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type { ExecutionStatus, ICredentialDataDecryptedObject } from 'n8n-workflow';
|
||||
|
||||
import type { WorkflowEntity } from '@db/entities/workflow-entity';
|
||||
import type { WorkflowEntity } from '@/databases/entities/workflow-entity';
|
||||
import type { TagEntity } from '@/databases/entities/tag-entity';
|
||||
import type { Risk } from '@/security-audit/types';
|
||||
import type { AuthlessRequest, AuthenticatedRequest } from '@/requests';
|
||||
|
|
|
@ -14,7 +14,7 @@ import { ExternalHooks } from '@/external-hooks';
|
|||
import type { IDependency, IJsonSchema } from '../../../types';
|
||||
import type { CredentialRequest } from '@/requests';
|
||||
import { Container } from 'typedi';
|
||||
import { CredentialsRepository } from '@db/repositories/credentials.repository';
|
||||
import { CredentialsRepository } from '@/databases/repositories/credentials.repository';
|
||||
import { SharedCredentialsRepository } from '@/databases/repositories/shared-credentials.repository';
|
||||
import { ProjectRepository } from '@/databases/repositories/project.repository';
|
||||
import { EventService } from '@/events/event.service';
|
||||
|
|
|
@ -8,7 +8,7 @@ import type { ExecutionRequest } from '../../../types';
|
|||
import { getSharedWorkflowIds } from '../workflows/workflows.service';
|
||||
import { encodeNextCursor } from '../../shared/services/pagination.service';
|
||||
import { EventService } from '@/events/event.service';
|
||||
import { ExecutionRepository } from '@db/repositories/execution.repository';
|
||||
import { ExecutionRepository } from '@/databases/repositories/execution.repository';
|
||||
import { ConcurrencyControlService } from '@/concurrency/concurrency-control.service';
|
||||
|
||||
export = {
|
||||
|
|
|
@ -8,7 +8,7 @@ import { encodeNextCursor } from '../../shared/services/pagination.service';
|
|||
import { Container } from 'typedi';
|
||||
// eslint-disable-next-line n8n-local-rules/misplaced-n8n-typeorm-import
|
||||
import type { FindManyOptions } from '@n8n/typeorm';
|
||||
import { TagRepository } from '@db/repositories/tag.repository';
|
||||
import { TagRepository } from '@/databases/repositories/tag.repository';
|
||||
import { TagService } from '@/services/tag.service';
|
||||
|
||||
export = {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Container } from 'typedi';
|
||||
import { UserRepository } from '@db/repositories/user.repository';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import type { User } from '@/databases/entities/User';
|
||||
import pick from 'lodash/pick';
|
||||
import { validate as uuidValidate } from 'uuid';
|
||||
|
|
|
@ -9,7 +9,7 @@ import { v4 as uuid } from 'uuid';
|
|||
|
||||
import { ActiveWorkflowManager } from '@/active-workflow-manager';
|
||||
import config from '@/config';
|
||||
import { WorkflowEntity } from '@db/entities/workflow-entity';
|
||||
import { WorkflowEntity } from '@/databases/entities/workflow-entity';
|
||||
import { ExternalHooks } from '@/external-hooks';
|
||||
import { addNodeIds, replaceInvalidCredentials } from '@/workflow-helpers';
|
||||
import type { WorkflowRequest } from '../../../types';
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import { Container } from 'typedi';
|
||||
import * as Db from '@/Db';
|
||||
import type { User } from '@/databases/entities/User';
|
||||
import { WorkflowEntity } from '@db/entities/workflow-entity';
|
||||
import { WorkflowEntity } from '@/databases/entities/workflow-entity';
|
||||
import { WorkflowTagMapping } from '@/databases/entities/workflow-tag-mapping';
|
||||
import { SharedWorkflow, type WorkflowSharingRole } from '@/databases/entities/shared-workflow';
|
||||
import { WorkflowRepository } from '@db/repositories/workflow.repository';
|
||||
import { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
import { SharedWorkflowRepository } from '@/databases/repositories/shared-workflow.repository';
|
||||
import type { Project } from '@/databases/entities/project';
|
||||
import { TagRepository } from '@db/repositories/tag.repository';
|
||||
import { TagRepository } from '@/databases/repositories/tag.repository';
|
||||
import { License } from '@/license';
|
||||
import { WorkflowSharingService } from '@/workflows/workflow-sharing.service';
|
||||
import type { Scope } from '@n8n/permissions';
|
||||
|
|
|
@ -4,7 +4,7 @@ import { v4 as uuid } from 'uuid';
|
|||
import type { IExecuteResponsePromiseData, IRun } from 'n8n-workflow';
|
||||
import { createDeferredPromise } from 'n8n-workflow';
|
||||
import type { IWorkflowExecutionDataProcess } from '@/Interfaces';
|
||||
import type { ExecutionRepository } from '@db/repositories/execution.repository';
|
||||
import type { ExecutionRepository } from '@/databases/repositories/execution.repository';
|
||||
import { mock } from 'jest-mock-extended';
|
||||
import { ConcurrencyControlService } from '@/concurrency/concurrency-control.service';
|
||||
import { mockInstance } from '@test/mocking';
|
||||
|
|
|
@ -12,7 +12,7 @@ import { Workflow } from 'n8n-workflow';
|
|||
import { CredentialsHelper } from '@/credentials-helper';
|
||||
import { NodeTypes } from '@/node-types';
|
||||
import { LoadNodesAndCredentials } from '@/load-nodes-and-credentials';
|
||||
import { CredentialsRepository } from '@db/repositories/credentials.repository';
|
||||
import { CredentialsRepository } from '@/databases/repositories/credentials.repository';
|
||||
import { SharedCredentialsRepository } from '@/databases/repositories/shared-credentials.repository';
|
||||
import { mockInstance } from '@test/mocking';
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import type {
|
|||
IWorkflowExecutionDataProcess,
|
||||
} from '@/Interfaces';
|
||||
import { isWorkflowIdValid } from '@/utils';
|
||||
import { ExecutionRepository } from '@db/repositories/execution.repository';
|
||||
import { ExecutionRepository } from '@/databases/repositories/execution.repository';
|
||||
import { Logger } from '@/logger';
|
||||
import { ConcurrencyControlService } from './concurrency/concurrency-control.service';
|
||||
import config from './config';
|
||||
|
|
|
@ -30,7 +30,7 @@ import type { IWorkflowDb } from '@/Interfaces';
|
|||
import * as WebhookHelpers from '@/webhooks/webhook-helpers';
|
||||
import * as WorkflowExecuteAdditionalData from '@/workflow-execute-additional-data';
|
||||
|
||||
import type { WorkflowEntity } from '@db/entities/workflow-entity';
|
||||
import type { WorkflowEntity } from '@/databases/entities/workflow-entity';
|
||||
import { ActiveExecutions } from '@/active-executions';
|
||||
import { ExecutionService } from './executions/execution.service';
|
||||
import {
|
||||
|
@ -42,7 +42,7 @@ import { NodeTypes } from '@/node-types';
|
|||
import { ExternalHooks } from '@/external-hooks';
|
||||
import { WebhookService } from '@/webhooks/webhook.service';
|
||||
import { Logger } from './logger';
|
||||
import { WorkflowRepository } from '@db/repositories/workflow.repository';
|
||||
import { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
import { OrchestrationService } from '@/services/orchestration.service';
|
||||
import { ActivationErrorsService } from '@/activation-errors.service';
|
||||
import { ActiveWorkflowsService } from '@/services/activeWorkflows.service';
|
||||
|
|
|
@ -7,7 +7,7 @@ import config from '@/config';
|
|||
import { AUTH_COOKIE_NAME, Time } from '@/constants';
|
||||
import type { User } from '@/databases/entities/User';
|
||||
import type { InvalidAuthTokenRepository } from '@/databases/repositories/invalid-auth-token.repository';
|
||||
import type { UserRepository } from '@db/repositories/user.repository';
|
||||
import type { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { JwtService } from '@/services/jwt.service';
|
||||
import type { UrlService } from '@/services/url.service';
|
||||
import type { AuthenticatedRequest } from '@/requests';
|
||||
|
|
|
@ -7,7 +7,7 @@ import config from '@/config';
|
|||
import { AUTH_COOKIE_NAME, RESPONSE_ERROR_MESSAGES, Time } from '@/constants';
|
||||
import type { User } from '@/databases/entities/User';
|
||||
import { InvalidAuthTokenRepository } from '@/databases/repositories/invalid-auth-token.repository';
|
||||
import { UserRepository } from '@db/repositories/user.repository';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { AuthError } from '@/errors/response-errors/auth.error';
|
||||
import { ForbiddenError } from '@/errors/response-errors/forbidden.error';
|
||||
import { License } from '@/license';
|
||||
|
|
|
@ -2,7 +2,7 @@ import type { User } from '@/databases/entities/User';
|
|||
import { PasswordUtility } from '@/services/password.utility';
|
||||
import { Container } from 'typedi';
|
||||
import { isLdapLoginEnabled } from '@/ldap/helpers.ee';
|
||||
import { UserRepository } from '@db/repositories/user.repository';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { AuthError } from '@/errors/response-errors/auth.error';
|
||||
import { EventService } from '@/events/event.service';
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ import { PostHogClient } from '@/posthog';
|
|||
import { License } from '@/license';
|
||||
import { ExternalSecretsManager } from '@/external-secrets/external-secrets-manager.ee';
|
||||
import { initExpressionEvaluator } from '@/expression-evaluator';
|
||||
import { generateHostInstanceId } from '@db/utils/generators';
|
||||
import { generateHostInstanceId } from '@/databases/utils/generators';
|
||||
import { WorkflowHistoryManager } from '@/workflows/workflow-history/workflow-history-manager.ee';
|
||||
import { ShutdownService } from '@/shutdown/shutdown.service';
|
||||
import { TelemetryEventRelay } from '@/events/telemetry-event-relay';
|
||||
|
|
|
@ -5,8 +5,8 @@ import type { DataSourceOptions as ConnectionOptions } from '@n8n/typeorm';
|
|||
import { MigrationExecutor, DataSource as Connection } from '@n8n/typeorm';
|
||||
import { Container } from 'typedi';
|
||||
import { Logger } from '@/logger';
|
||||
import { getConnectionOptions } from '@db/config';
|
||||
import type { Migration } from '@db/types';
|
||||
import { getConnectionOptions } from '@/databases/config';
|
||||
import type { Migration } from '@/databases/types';
|
||||
import { wrapMigration } from '@/databases/utils/migration-helpers';
|
||||
|
||||
// This function is extracted to make it easier to unit test it.
|
||||
|
|
|
@ -9,7 +9,7 @@ import type { IWorkflowExecutionDataProcess } from '@/Interfaces';
|
|||
import { findCliWorkflowStart, isWorkflowIdValid } from '@/utils';
|
||||
import { BaseCommand } from './base-command';
|
||||
|
||||
import { WorkflowRepository } from '@db/repositories/workflow.repository';
|
||||
import { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
import { OwnershipService } from '@/services/ownership.service';
|
||||
|
||||
export class Execute extends BaseCommand {
|
||||
|
|
|
@ -13,7 +13,7 @@ import { ActiveExecutions } from '@/active-executions';
|
|||
import { WorkflowRunner } from '@/workflow-runner';
|
||||
import type { IWorkflowDb, IWorkflowExecutionDataProcess } from '@/Interfaces';
|
||||
import type { User } from '@/databases/entities/User';
|
||||
import { WorkflowRepository } from '@db/repositories/workflow.repository';
|
||||
import { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
import { OwnershipService } from '@/services/ownership.service';
|
||||
import { findCliWorkflowStart } from '@/utils';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import path from 'path';
|
|||
import { Credentials } from 'n8n-core';
|
||||
import type { ICredentialsDb, ICredentialsDecryptedDb } from '@/Interfaces';
|
||||
import { BaseCommand } from '../base-command';
|
||||
import { CredentialsRepository } from '@db/repositories/credentials.repository';
|
||||
import { CredentialsRepository } from '@/databases/repositories/credentials.repository';
|
||||
import Container from 'typedi';
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Flags } from '@oclif/core';
|
|||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { BaseCommand } from '../base-command';
|
||||
import { WorkflowRepository } from '@db/repositories/workflow.repository';
|
||||
import { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
import Container from 'typedi';
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@ import fs from 'fs';
|
|||
import glob from 'fast-glob';
|
||||
|
||||
import { UM_FIX_INSTRUCTION } from '@/constants';
|
||||
import type { WorkflowEntity } from '@db/entities/workflow-entity';
|
||||
import { generateNanoId } from '@db/utils/generators';
|
||||
import { UserRepository } from '@db/repositories/user.repository';
|
||||
import { WorkflowRepository } from '@db/repositories/workflow.repository';
|
||||
import type { WorkflowEntity } from '@/databases/entities/workflow-entity';
|
||||
import { generateNanoId } from '@/databases/utils/generators';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
import type { IWorkflowToImport } from '@/Interfaces';
|
||||
import { ImportService } from '@/services/import.service';
|
||||
import { BaseCommand } from '../base-command';
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import Container from 'typedi';
|
||||
import { LDAP_DEFAULT_CONFIGURATION, LDAP_FEATURE_NAME } from '@/ldap/constants';
|
||||
import { AuthIdentityRepository } from '@db/repositories/auth-identity.repository';
|
||||
import { AuthIdentityRepository } from '@/databases/repositories/auth-identity.repository';
|
||||
import { AuthProviderSyncHistoryRepository } from '@/databases/repositories/auth-provider-sync-history.repository';
|
||||
import { SettingsRepository } from '@db/repositories/settings.repository';
|
||||
import { UserRepository } from '@db/repositories/user.repository';
|
||||
import { SettingsRepository } from '@/databases/repositories/settings.repository';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { BaseCommand } from '../base-command';
|
||||
import { Flags } from '@oclif/core';
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Container } from 'typedi';
|
||||
import { SETTINGS_LICENSE_CERT_KEY } from '@/constants';
|
||||
import { BaseCommand } from '../base-command';
|
||||
import { SettingsRepository } from '@db/repositories/settings.repository';
|
||||
import { SettingsRepository } from '@/databases/repositories/settings.repository';
|
||||
import { License } from '@/license';
|
||||
|
||||
export class ClearLicenseCommand extends BaseCommand {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import Container from 'typedi';
|
||||
import { Flags } from '@oclif/core';
|
||||
import { WorkflowRepository } from '@db/repositories/workflow.repository';
|
||||
import { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
import { BaseCommand } from '../base-command';
|
||||
|
||||
export class ListWorkflowCommand extends BaseCommand {
|
||||
|
|
|
@ -21,8 +21,8 @@ import { OrchestrationService } from '@/services/orchestration.service';
|
|||
import { OrchestrationHandlerMainService } from '@/services/orchestration/main/orchestration.handler.main.service';
|
||||
import { PruningService } from '@/services/pruning.service';
|
||||
import { UrlService } from '@/services/url.service';
|
||||
import { SettingsRepository } from '@db/repositories/settings.repository';
|
||||
import { ExecutionRepository } from '@db/repositories/execution.repository';
|
||||
import { SettingsRepository } from '@/databases/repositories/settings.repository';
|
||||
import { ExecutionRepository } from '@/databases/repositories/execution.repository';
|
||||
import { FeatureNotLicensedError } from '@/errors/feature-not-licensed.error';
|
||||
import { WaitTracker } from '@/wait-tracker';
|
||||
import { BaseCommand } from './base-command';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Container } from 'typedi';
|
||||
import { Flags } from '@oclif/core';
|
||||
import { WorkflowRepository } from '@db/repositories/workflow.repository';
|
||||
import { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
import { BaseCommand } from '../base-command';
|
||||
|
||||
export class UpdateWorkflowCommand extends BaseCommand {
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { Container } from 'typedi';
|
||||
import type { CredentialsEntity } from '@/databases/entities/credentials-entity';
|
||||
import { User } from '@/databases/entities/User';
|
||||
import { CredentialsRepository } from '@db/repositories/credentials.repository';
|
||||
import { SettingsRepository } from '@db/repositories/settings.repository';
|
||||
import { CredentialsRepository } from '@/databases/repositories/credentials.repository';
|
||||
import { SettingsRepository } from '@/databases/repositories/settings.repository';
|
||||
import { SharedCredentialsRepository } from '@/databases/repositories/shared-credentials.repository';
|
||||
import { SharedWorkflowRepository } from '@/databases/repositories/shared-workflow.repository';
|
||||
import { UserRepository } from '@db/repositories/user.repository';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { BaseCommand } from '../base-command';
|
||||
import { ProjectRepository } from '@/databases/repositories/project.repository';
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import { badPasswords } from '@test/testData';
|
|||
import { mockInstance } from '@test/mocking';
|
||||
import { AuthUserRepository } from '@/databases/repositories/auth-user.repository';
|
||||
import { InvalidAuthTokenRepository } from '@/databases/repositories/invalid-auth-token.repository';
|
||||
import { UserRepository } from '@db/repositories/user.repository';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { MfaService } from '@/mfa/mfa.service';
|
||||
import { InvalidMfaCodeError } from '@/errors/response-errors/invalid-mfa-code.error';
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@ import type { AuthService } from '@/auth/auth.service';
|
|||
import config from '@/config';
|
||||
import { OwnerController } from '@/controllers/owner.controller';
|
||||
import type { User } from '@/databases/entities/User';
|
||||
import type { SettingsRepository } from '@db/repositories/settings.repository';
|
||||
import type { UserRepository } from '@db/repositories/user.repository';
|
||||
import type { SettingsRepository } from '@/databases/repositories/settings.repository';
|
||||
import type { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { BadRequestError } from '@/errors/response-errors/bad-request.error';
|
||||
import { License } from '@/license';
|
||||
import type { OwnerRequest } from '@/requests';
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { Request } from 'express';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import config from '@/config';
|
||||
import { SettingsRepository } from '@db/repositories/settings.repository';
|
||||
import { UserRepository } from '@db/repositories/user.repository';
|
||||
import { SettingsRepository } from '@/databases/repositories/settings.repository';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { ActiveWorkflowManager } from '@/active-workflow-manager';
|
||||
import { MessageEventBus } from '@/eventbus/message-event-bus/message-event-bus';
|
||||
import { License } from '@/license';
|
||||
|
|
|
@ -13,7 +13,7 @@ import { isSamlLicensedAndEnabled } from '@/sso/saml/saml-helpers';
|
|||
import { PasswordUtility } from '@/services/password.utility';
|
||||
import { PostHogClient } from '@/posthog';
|
||||
import type { User } from '@/databases/entities/User';
|
||||
import { UserRepository } from '@db/repositories/user.repository';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { BadRequestError } from '@/errors/response-errors/bad-request.error';
|
||||
import { ForbiddenError } from '@/errors/response-errors/forbidden.error';
|
||||
import { ExternalHooks } from '@/external-hooks';
|
||||
|
|
|
@ -9,7 +9,7 @@ import { OAuth1CredentialController } from '@/controllers/oauth/oauth1-credentia
|
|||
import { CredentialsEntity } from '@/databases/entities/credentials-entity';
|
||||
import type { User } from '@/databases/entities/User';
|
||||
import type { OAuthRequest } from '@/requests';
|
||||
import { CredentialsRepository } from '@db/repositories/credentials.repository';
|
||||
import { CredentialsRepository } from '@/databases/repositories/credentials.repository';
|
||||
import { SharedCredentialsRepository } from '@/databases/repositories/shared-credentials.repository';
|
||||
import { ExternalHooks } from '@/external-hooks';
|
||||
import { Logger } from '@/logger';
|
||||
|
|
|
@ -9,7 +9,7 @@ import { OAuth2CredentialController } from '@/controllers/oauth/oauth2-credentia
|
|||
import type { CredentialsEntity } from '@/databases/entities/credentials-entity';
|
||||
import type { User } from '@/databases/entities/User';
|
||||
import type { OAuthRequest } from '@/requests';
|
||||
import { CredentialsRepository } from '@db/repositories/credentials.repository';
|
||||
import { CredentialsRepository } from '@/databases/repositories/credentials.repository';
|
||||
import { SharedCredentialsRepository } from '@/databases/repositories/shared-credentials.repository';
|
||||
import { ExternalHooks } from '@/external-hooks';
|
||||
import { Logger } from '@/logger';
|
||||
|
|
|
@ -6,7 +6,7 @@ import type { ICredentialDataDecryptedObject, IWorkflowExecuteAdditionalData } f
|
|||
import { jsonParse, ApplicationError } from 'n8n-workflow';
|
||||
|
||||
import type { CredentialsEntity } from '@/databases/entities/credentials-entity';
|
||||
import { CredentialsRepository } from '@db/repositories/credentials.repository';
|
||||
import { CredentialsRepository } from '@/databases/repositories/credentials.repository';
|
||||
import { SharedCredentialsRepository } from '@/databases/repositories/shared-credentials.repository';
|
||||
import type { ICredentialsDb } from '@/Interfaces';
|
||||
import type { OAuthRequest } from '@/requests';
|
||||
|
|
|
@ -7,8 +7,8 @@ import { validateEntity } from '@/generic-helpers';
|
|||
import { GlobalScope, Post, RestController } from '@/decorators';
|
||||
import { PasswordUtility } from '@/services/password.utility';
|
||||
import { OwnerRequest } from '@/requests';
|
||||
import { SettingsRepository } from '@db/repositories/settings.repository';
|
||||
import { UserRepository } from '@db/repositories/user.repository';
|
||||
import { SettingsRepository } from '@/databases/repositories/settings.repository';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { PostHogClient } from '@/posthog';
|
||||
import { UserService } from '@/services/user.service';
|
||||
import { Logger } from '@/logger';
|
||||
|
|
|
@ -13,7 +13,7 @@ import type { PublicUser } from '@/Interfaces';
|
|||
import { AuthIdentity } from '@/databases/entities/auth-identity';
|
||||
import { SharedCredentialsRepository } from '@/databases/repositories/shared-credentials.repository';
|
||||
import { SharedWorkflowRepository } from '@/databases/repositories/shared-workflow.repository';
|
||||
import { UserRepository } from '@db/repositories/user.repository';
|
||||
import { UserRepository } from '@/databases/repositories/user.repository';
|
||||
import { UserService } from '@/services/user.service';
|
||||
import { listQueryMiddleware } from '@/middlewares';
|
||||
import { Logger } from '@/logger';
|
||||
|
|
|
@ -34,7 +34,7 @@ import { CredentialTypes } from '@/credential-types';
|
|||
import { CredentialsOverwrites } from '@/credentials-overwrites';
|
||||
import { RESPONSE_ERROR_MESSAGES } from './constants';
|
||||
|
||||
import { CredentialsRepository } from '@db/repositories/credentials.repository';
|
||||
import { CredentialsRepository } from '@/databases/repositories/credentials.repository';
|
||||
import { SharedCredentialsRepository } from '@/databases/repositories/shared-credentials.repository';
|
||||
import { CredentialNotFoundError } from './errors/credential-not-found.error';
|
||||
// eslint-disable-next-line n8n-local-rules/misplaced-n8n-typeorm-import
|
||||
|
|
|
@ -27,7 +27,7 @@ import type { CredentialRequest, ListQuery } from '@/requests';
|
|||
import { CredentialTypes } from '@/credential-types';
|
||||
import { OwnershipService } from '@/services/ownership.service';
|
||||
import { Logger } from '@/logger';
|
||||
import { CredentialsRepository } from '@db/repositories/credentials.repository';
|
||||
import { CredentialsRepository } from '@/databases/repositories/credentials.repository';
|
||||
import { SharedCredentialsRepository } from '@/databases/repositories/shared-credentials.repository';
|
||||
import { Service } from 'typedi';
|
||||
import { CredentialsTester } from '@/services/credentials-tester.service';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type { WorkflowEntity } from '@db/entities/workflow-entity';
|
||||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { WorkflowEntity } from '@/databases/entities/workflow-entity';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class UniqueWorkflowNames1620821879465 implements ReversibleMigration {
|
||||
protected indexSuffix = '943d8f922be094eb507cb9a7f9';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type { IWorkflowBase } from 'n8n-workflow';
|
||||
import type { CredentialsEntity } from '@/databases/entities/credentials-entity';
|
||||
import type { WorkflowEntity } from '@db/entities/workflow-entity';
|
||||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { WorkflowEntity } from '@/databases/entities/workflow-entity';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
type Credential = Pick<CredentialsEntity, 'id' | 'name' | 'type'>;
|
||||
type ExecutionWithData = { id: string; workflowData: string | IWorkflowBase };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type { INode } from 'n8n-workflow';
|
||||
import type { WorkflowEntity } from '@db/entities/workflow-entity';
|
||||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { WorkflowEntity } from '@/databases/entities/workflow-entity';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
|
||||
type Workflow = Pick<WorkflowEntity, 'id'> & { nodes: string | INode[] };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { isObjectLiteral } from '@/utils';
|
||||
import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
|
||||
import type { MigrationContext, IrreversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, IrreversibleMigration } from '@/databases/types';
|
||||
|
||||
type OldPinnedData = { [nodeName: string]: IDataObject[] };
|
||||
type NewPinnedData = { [nodeName: string]: INodeExecutionData[] };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
type Workflow = { id: number };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
import { StatisticsNames } from '@/databases/entities/workflow-statistics';
|
||||
|
||||
export class RemoveWorkflowDataLoadedFlag1671726148419 implements ReversibleMigration {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
import { LDAP_DEFAULT_CONFIGURATION, LDAP_FEATURE_NAME } from '@/ldap/constants';
|
||||
|
||||
export class CreateLdapEntities1674509946020 implements ReversibleMigration {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type { WorkflowEntity } from '@db/entities/workflow-entity';
|
||||
import type { MigrationContext, IrreversibleMigration } from '@db/types';
|
||||
import type { WorkflowEntity } from '@/databases/entities/workflow-entity';
|
||||
import type { MigrationContext, IrreversibleMigration } from '@/databases/types';
|
||||
|
||||
interface Workflow {
|
||||
id: number;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class RemoveResetPasswordColumns1690000000030 implements ReversibleMigration {
|
||||
async up({ schemaBuilder: { dropColumns } }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class CreateWorkflowNameIndex1691088862123 implements ReversibleMigration {
|
||||
async up({ schemaBuilder: { createIndex } }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
const tableName = 'workflow_history';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class DisallowOrphanExecutions1693554410387 implements ReversibleMigration {
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class AddWorkflowMetadata1695128658538 implements ReversibleMigration {
|
||||
async up({ schemaBuilder: { addColumns, column } }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
const tableName = 'workflow_history';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
import { ApplicationError } from 'n8n-workflow';
|
||||
|
||||
export class AddGlobalAdminRole1700571993961 implements ReversibleMigration {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
type Table = 'user' | 'shared_workflow' | 'shared_credentials';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { IrreversibleMigration, MigrationContext } from '@db/types';
|
||||
import type { IrreversibleMigration, MigrationContext } from '@/databases/types';
|
||||
|
||||
export class RemoveFailedExecutionStatus1711018413374 implements IrreversibleMigration {
|
||||
async up({ escape, runQuery }: MigrationContext) {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { readFile, writeFile, rm } from 'node:fs/promises';
|
|||
import Container from 'typedi';
|
||||
import { Cipher, InstanceSettings } from 'n8n-core';
|
||||
import { jsonParse } from 'n8n-workflow';
|
||||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
/**
|
||||
* Move SSH key pair from file system to database, to enable SSH connections
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { IrreversibleMigration, MigrationContext } from '@db/types';
|
||||
import type { IrreversibleMigration, MigrationContext } from '@/databases/types';
|
||||
|
||||
export class RemoveNodesAccess1712044305787 implements IrreversibleMigration {
|
||||
async up({ schemaBuilder: { dropColumns } }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
import type { ProjectRole } from '@/databases/entities/project-relation';
|
||||
import type { User } from '@/databases/entities/User';
|
||||
import { generateNanoId } from '@/databases/utils/generators';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
import { nanoid } from 'nanoid';
|
||||
|
||||
export class AddConstraintToExecutionMetadata1720101653148 implements ReversibleMigration {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
const tableName = 'invalid_auth_token';
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class InitialMigration1588157391238 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class WebhookModel1592447867632 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class CreateIndexStoppedAt1594902918301 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class MakeStoppedAtNullable1607431743767 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class AddWebhookId1611149998770 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class ChangeDataSize1615306975123 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class CreateTagEntity1617268711084 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class ChangeCredentialDataSize1620729500000 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, IrreversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, IrreversibleMigration } from '@/databases/types';
|
||||
|
||||
export class CertifyCorrectCollation1623936588000 implements IrreversibleMigration {
|
||||
async up({ queryRunner, tablePrefix, dbType, dbName }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class AddWaitColumnId1626183952959 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class AddExecutionEntityIndexes1644424784709 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { InsertResult, MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { InsertResult, MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
|
||||
export class CreateUserManagement1646992772331 implements ReversibleMigration {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, IrreversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, IrreversibleMigration } from '@/databases/types';
|
||||
|
||||
export class LowerCaseUserEmail1648740597343 implements IrreversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class CommunityNodes1652254514003 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class AddUserSettings1652367743993 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class AddAPIKeyColumn1652905585850 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class IntroducePinData1654090101303 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class CreateCredentialsUserRole1660062385367 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class CreateWorkflowsEditorRole1663755770894 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class WorkflowStatistics1664196174002 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class CreateCredentialUsageTable1665484192213 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class RemoveCredentialUsageTable1665754637026 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class AddTriggerCountColumn1669823906994 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class MessageEventBusDestinations1671535397530 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class DeleteExecutionsWithWorkflows1673268682475 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class AddStatusToExecutions1674138566000 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, IrreversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, IrreversibleMigration } from '@/databases/types';
|
||||
|
||||
export class MigrateExecutionStatus1676996103000 implements IrreversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, IrreversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, IrreversibleMigration } from '@/databases/types';
|
||||
|
||||
export class UpdateRunningExecutionStatus1677236788851 implements IrreversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class CreateVariables1677501636753 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class CreateExecutionMetadataTable1679416281779 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
import type { UserSettings } from '@/Interfaces';
|
||||
|
||||
export class AddUserActivatedProperty1681134145996 implements ReversibleMigration {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { IrreversibleMigration, MigrationContext } from '@db/types';
|
||||
import type { IrreversibleMigration, MigrationContext } from '@/databases/types';
|
||||
|
||||
export class RemoveSkipOwnerSetup1681134145997 implements IrreversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, IrreversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, IrreversibleMigration } from '@/databases/types';
|
||||
|
||||
const COLLATION_57 = 'utf8mb4_general_ci';
|
||||
const COLLATION_80 = 'utf8mb4_0900_ai_ci';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class SeparateExecutionData1690000000030 implements ReversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, IrreversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, IrreversibleMigration } from '@/databases/types';
|
||||
|
||||
export class FixExecutionDataType1690000000031 implements IrreversibleMigration {
|
||||
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { MigrationContext, ReversibleMigration } from '@db/types';
|
||||
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
||||
|
||||
export class AddActivatedAtUserSetting1717498465931 implements ReversibleMigration {
|
||||
async up({ queryRunner, escape }: MigrationContext) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { Migration } from '@db/types';
|
||||
import type { Migration } from '@/databases/types';
|
||||
import { InitialMigration1588157391238 } from './1588157391238-InitialMigration';
|
||||
import { WebhookModel1592447867632 } from './1592447867632-WebhookModel';
|
||||
import { CreateIndexStoppedAt1594902918301 } from './1594902918301-CreateIndexStoppedAt';
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue