mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 10:34:56 +08:00
Added more warnings
This commit is contained in:
+15
-2
@@ -41,7 +41,20 @@ async function runMigrations() {
|
||||
console.log(`\tmigrations/${filename}`);
|
||||
}
|
||||
|
||||
let answers = await inquirer.prompt([
|
||||
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');
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
@@ -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