Skip to content

Commit

Permalink
Merge pull request #1 from tricki/patch-1
Browse files Browse the repository at this point in the history
force new db settings (fixes #3)
  • Loading branch information
sdebacker committed Mar 27, 2015
2 parents 231ea4c + 9823158 commit 6d68377
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Commands/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ public function fire()
// Clear DB name in config
$this->laravel['config']['database.connections.mysql.database'] = '';

// Force the new login to be used
DB::purge();

// Create database if not exists
DB::unprepared('CREATE DATABASE IF NOT EXISTS `' . $dbName . '`');
DB::unprepared('USE `' . $dbName . '`');
Expand Down

0 comments on commit 6d68377

Please sign in to comment.