diff --git a/bin/cli-migration b/bin/cli-migration index 9c3e077b1..036ac8b02 100755 --- a/bin/cli-migration +++ b/bin/cli-migration @@ -32,6 +32,19 @@ async function runMigrations() { try { + let {backedUp} = await inquirer.prompt([ + { + type: 'confirm', + name: 'backedUp', + message: 'Did you perform a database backup', + default: false + } + ]); + + if (!backedUp) { + throw new Error('Please backup your databases prior to migrations occuring'); + } + // Get the migrations to run. let migrations = await MigrationService.listPending(); @@ -41,7 +54,7 @@ async function runMigrations() { console.log(`\tmigrations/${filename}`); } - let answers = await inquirer.prompt([ + let {confirm} = await inquirer.prompt([ { type: 'confirm', name: 'confirm', @@ -50,7 +63,7 @@ async function runMigrations() { } ]); - if (answers.confirm) { + if (confirm) { // Run the migrations. await MigrationService.run(migrations); diff --git a/package.json b/package.json index 4d4d14af8..40fa97fd8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "talk", - "version": "1.8.0", + "version": "1.9.0", "description": "A better commenting experience from Mozilla, The New York Times, and the Washington Post. https://coralproject.net", "main": "app.js", "scripts": { diff --git a/plugins.default.json b/plugins.default.json index 753eb9000..2fb3aaa21 100644 --- a/plugins.default.json +++ b/plugins.default.json @@ -4,7 +4,7 @@ "coral-plugin-like", "coral-plugin-respect", "coral-plugin-offtopic", - "coral-plugin-facebook-auth", + "coral-plugin-facebook-auth" ], "client": [ "coral-plugin-respect",