Skip to content

Commit

Permalink
fix: closes #137 npm audit issues, updated all dependencies and fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor-Lopes authored and wesleytodd committed Jun 29, 2020
1 parent 310dd29 commit 805faa9
Show file tree
Hide file tree
Showing 14 changed files with 926 additions and 1,040 deletions.
2 changes: 1 addition & 1 deletion bin/migrate
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ program
.command('init', 'Initalize the migrations tool in a project')
.command('list', 'List migrations and their status')
.command('create [name]', 'Create a new migration')
.command('up [name]', 'Migrate up to a give migration', {isDefault: true})
.command('up [name]', 'Migrate up to a give migration', { isDefault: true })
.command('down [name]', 'Migrate down to a given migration')
.parse(process.argv)
1 change: 0 additions & 1 deletion bin/migrate-create
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ program

if (program.extention) {
console.log('create', '"--extention" argument is deprecated. Use "--extension" instead')
program.extension = program.extension
}

// Setup environment
Expand Down
4 changes: 2 additions & 2 deletions examples/custom-state-storage/custom-state-storage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'
const migrate = require('migrate')
const {Client} = require('pg')
const { Client } = require('pg')
const pg = new Client()

/**
Expand All @@ -13,7 +13,7 @@ const customStateStorage = {
await pg.connect()

// Load the single row of migration data from the database
const {rows} = await pg.query('SELECT data FROM schema.migrations')
const { rows } = await pg.query('SELECT data FROM schema.migrations')

if (rows.length !== 1) {
console.log('Cannot read migrations from database. If this is the first time you run migrations, then this is normal.')
Expand Down
Loading

0 comments on commit 805faa9

Please sign in to comment.