Merge branch '142993479-tags' of github.com:coralproject/talk into 142993479-tags

This commit is contained in:
Belen Curcio
2017-06-08 12:37:50 -03:00
3 changed files with 17 additions and 4 deletions
+15 -2
View File
@@ -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);
+1 -1
View File
@@ -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": {
+1 -1
View File
@@ -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",