Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions modules/system/classes/UpdateManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,18 @@ public function bindContainerObjects()
$this->repository = App::make('migration.repository');
}

/**
* Sets the database connection to use for migrations.
* @param string $connection
* @return self
*/
public function setConnection($connection)
{
$this->migrator->setConnection($connection);

return $this;
}

/**
* Creates the migration table and updates
* @return self
Expand Down
4 changes: 3 additions & 1 deletion modules/system/console/WinterUp.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class WinterUp extends Command implements Isolatable
* @var string
*/
protected $signature = 'winter:up
{--seed : Included for compatibility with Laravel default signature, no effect at this time}';
{--seed : Included for compatibility with Laravel default signature, no effect at this time}
{--connection= : The database connection to use}';

/**
* The console command description.
Expand All @@ -47,6 +48,7 @@ public function handle()

UpdateManager::instance()
->setNotesOutput($this->output)
->setConnection($this->option('connection'))
->update();
}
}
Loading