Skip to content
This repository has been archived by the owner on Jan 22, 2018. It is now read-only.

Commit

Permalink
db:structure:load now does not require password
Browse files Browse the repository at this point in the history
  • Loading branch information
hkdobrev committed Sep 16, 2013
1 parent ef36251 commit 840d5b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Task/Db/Structure/Load.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ protected function _execute(array $options)

if ($options['force'] === NULL OR 'yes' === Minion_CLI::read("This will destroy database ".$db['database']." Are you sure? [yes/NO]"))
{
$command = strtr("mysql -u:username -p:password :database < :file ", array(
$command = strtr("mysql -u:username :password :database < :file ", array(
':username' => $db['username'],
':password' => $db['password'],
':password' => $db['password'] ? '-p'.$db['password'] : '',
':database' => $db['database'],
':file' => $file
));
Expand Down

0 comments on commit 840d5b7

Please sign in to comment.