Skip to content

Commit

Permalink
Merge pull request #1788 from filipedeschamps/migrations-table-name
Browse files Browse the repository at this point in the history
Deixa mais claro qual é o nome da tabela em que são armazenadas as `migrations`
  • Loading branch information
aprendendofelipe authored Aug 30, 2024
2 parents 6d61380 + 8fb336c commit 369e453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions infra/migrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -24,7 +24,6 @@ async function listPendingMigrations() {
...defaultConfigurations,
dbClient: databaseClient,
dryRun: true,
migrationsTable: 'pgmigrations',
});

return pendingMigrations;
Expand All @@ -41,7 +40,6 @@ async function runPendingMigrations() {
...defaultConfigurations,
dbClient: databaseClient,
dryRun: false,
migrationsTable: 'pgmigrations',
});

return migratedMigrations;
Expand Down
3 changes: 1 addition & 2 deletions infra/under-maintenance.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import logger from 'infra/logger';
import webserver from 'infra/webserver';

import logger from './logger';

let underMaintenance;

try {
Expand Down

0 comments on commit 369e453

Please sign in to comment.