From d40477a34745865c134983a8ccbb990f5df8a081 Mon Sep 17 00:00:00 2001 From: Felipe Barso <77860630+aprendendofelipe@users.noreply.github.com> Date: Thu, 29 Aug 2024 21:42:56 -0300 Subject: [PATCH 1/2] chore: fix default migrations table name to 'pgmigrations' --- infra/migrator.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/infra/migrator.js b/infra/migrator.js index 7f087bc2a..03968e124 100644 --- a/infra/migrator.js +++ b/infra/migrator.js @@ -7,7 +7,7 @@ import logger from 'infra/logger.js'; const defaultConfigurations = { dir: join(resolve('.'), 'infra', 'migrations'), direction: 'up', - migrationsTable: 'migrations', + migrationsTable: 'pgmigrations', verbose: true, log: (log) => { logger.info({ @@ -24,7 +24,6 @@ async function listPendingMigrations() { ...defaultConfigurations, dbClient: databaseClient, dryRun: true, - migrationsTable: 'pgmigrations', }); return pendingMigrations; @@ -41,7 +40,6 @@ async function runPendingMigrations() { ...defaultConfigurations, dbClient: databaseClient, dryRun: false, - migrationsTable: 'pgmigrations', }); return migratedMigrations; From 8fb336c4ae82c446f97aff44529cb39899c76f29 Mon Sep 17 00:00:00 2001 From: Felipe Barso <77860630+aprendendofelipe@users.noreply.github.com> Date: Thu, 29 Aug 2024 21:52:17 -0300 Subject: [PATCH 2/2] style: standardizes the import of `infra` modules --- infra/under-maintenance.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/infra/under-maintenance.js b/infra/under-maintenance.js index c6e6cbdb4..1f3dbcb86 100644 --- a/infra/under-maintenance.js +++ b/infra/under-maintenance.js @@ -1,7 +1,6 @@ +import logger from 'infra/logger'; import webserver from 'infra/webserver'; -import logger from './logger'; - let underMaintenance; try {