Skip to content

Commit

Permalink
fix(mysql): don't prompt for mysql extension if user specifies sqlite
Browse files Browse the repository at this point in the history
closes #304
- don't add setup stage for mysql if sqlite is passed as the db param
  • Loading branch information
acburdine authored and ErisDS committed Jul 10, 2017
1 parent 8cdbad4 commit eccaa12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extensions/mysql/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ class MySQLExtension extends cli.Extension {
return;
}

// We don't want to prompt for mysql setup if user specifies sqlite as the db
if (argv.db === 'sqlite3') {
return;
}

cmd.addStage('mysql', this.setupMySQL.bind(this), [], 'a "ghost" mysql user');
}

Expand Down

0 comments on commit eccaa12

Please sign in to comment.