mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
More TODOs
This commit is contained in:
parent
db7ac51f66
commit
9741fdcfcd
|
@ -14,8 +14,8 @@ import { ActiveExecutions } from '@/active-executions';
|
||||||
import { ActiveWorkflowManager } from '@/active-workflow-manager';
|
import { ActiveWorkflowManager } from '@/active-workflow-manager';
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
import { EDITOR_UI_DIST_DIR, LICENSE_FEATURES } from '@/constants';
|
import { EDITOR_UI_DIST_DIR, LICENSE_FEATURES } from '@/constants';
|
||||||
import { DatabaseExportService } from '@/databases/import-export/database-export.service';
|
// import { DatabaseExportService } from '@/databases/import-export/database-export.service';
|
||||||
import { DatabaseImportService } from '@/databases/import-export/database-import.service';
|
// import { DatabaseImportService } from '@/databases/import-export/database-import.service';
|
||||||
import { ExecutionRepository } from '@/databases/repositories/execution.repository';
|
import { ExecutionRepository } from '@/databases/repositories/execution.repository';
|
||||||
import { SettingsRepository } from '@/databases/repositories/settings.repository';
|
import { SettingsRepository } from '@/databases/repositories/settings.repository';
|
||||||
import { FeatureNotLicensedError } from '@/errors/feature-not-licensed.error';
|
import { FeatureNotLicensedError } from '@/errors/feature-not-licensed.error';
|
||||||
|
@ -264,10 +264,10 @@ export class Start extends BaseCommand {
|
||||||
|
|
||||||
// @TEMP
|
// @TEMP
|
||||||
// await Container.get(DatabaseExportService).export();
|
// await Container.get(DatabaseExportService).export();
|
||||||
Container.get(DatabaseImportService).setConfig({
|
// Container.get(DatabaseImportService).setConfig({
|
||||||
importFilePath: '/tmp/backup/n8n-db-export-2024-09-24.tar.gz',
|
// importFilePath: '/tmp/backup/n8n-db-export-2024-09-24.tar.gz',
|
||||||
});
|
// });
|
||||||
await Container.get(DatabaseImportService).import();
|
// await Container.get(DatabaseImportService).import();
|
||||||
|
|
||||||
// Load settings from database and set them to config.
|
// Load settings from database and set them to config.
|
||||||
const databaseSettings = await Container.get(SettingsRepository).findBy({
|
const databaseSettings = await Container.get(SettingsRepository).findBy({
|
||||||
|
|
|
@ -15,6 +15,7 @@ import { FilesystemService } from '../../filesystem/filesystem.service';
|
||||||
import { DatabaseSchemaService } from '../database-schema.service';
|
import { DatabaseSchemaService } from '../database-schema.service';
|
||||||
|
|
||||||
// @TODO: Check minimum version for each DB type?
|
// @TODO: Check minimum version for each DB type?
|
||||||
|
// @TODO: Optional table exclude list
|
||||||
|
|
||||||
@Service()
|
@Service()
|
||||||
export class DatabaseExportService {
|
export class DatabaseExportService {
|
||||||
|
|
|
@ -22,6 +22,7 @@ import { DatabaseSchemaService } from '../database-schema.service';
|
||||||
|
|
||||||
// @TODO: Check minimum version for Postgres?
|
// @TODO: Check minimum version for Postgres?
|
||||||
// @TODO: Make all info logs debug
|
// @TODO: Make all info logs debug
|
||||||
|
// @TODO: Oclif commands
|
||||||
|
|
||||||
@Service()
|
@Service()
|
||||||
export class DatabaseImportService {
|
export class DatabaseImportService {
|
||||||
|
|
Loading…
Reference in a new issue