Skip to content

Commit

Permalink
Updates the migration to use the connection entered in the configurat…
Browse files Browse the repository at this point in the history
…ion file.
  • Loading branch information
arthurmarchesi authored and romanzipp committed Jul 13, 2024
1 parent 4046d96 commit 36a2005
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions migrations/2018_02_05_000000_create_queue_monitor_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@

class CreateQueueMonitorTable extends Migration
{
/**
* Get the customized connection name.
*
* @return string|null
*/
public function getConnection()
{
return config('queue-monitor.connection');
}

public function up()
{
Schema::create(config('queue-monitor.table'), function (Blueprint $table) {
Expand Down

0 comments on commit 36a2005

Please sign in to comment.