From 480bab3c1a170b5d882f39812f493b9ff03ee227 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Thu, 8 Jun 2017 09:12:08 -0600 Subject: [PATCH] changed some text around --- bin/cli-migration | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/cli-migration b/bin/cli-migration index 83a84e29d..036ac8b02 100755 --- a/bin/cli-migration +++ b/bin/cli-migration @@ -32,15 +32,6 @@ async function runMigrations() { try { - // Get the migrations to run. - let migrations = await MigrationService.listPending(); - - console.log('Now going to run the following migrations:\n'); - - for (let {filename} of migrations) { - console.log(`\tmigrations/${filename}`); - } - let {backedUp} = await inquirer.prompt([ { type: 'confirm', @@ -54,6 +45,15 @@ async function runMigrations() { throw new Error('Please backup your databases prior to migrations occuring'); } + // Get the migrations to run. + let migrations = await MigrationService.listPending(); + + console.log('Now going to run the following migrations:\n'); + + for (let {filename} of migrations) { + console.log(`\tmigrations/${filename}`); + } + let {confirm} = await inquirer.prompt([ { type: 'confirm',