mirror of
https://github.com/wassname/talk.git
synced 2026-07-08 05:39:25 +08:00
Merge branch '142993479-tags' of github.com:coralproject/talk into 142993479-tags
This commit is contained in:
+15
-2
@@ -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
@@ -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": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user