Skip to content

Commit

Permalink
parent::__construct() moved after ->DBGroup assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
arashsaffari committed May 20, 2023
1 parent 6e653ce commit 4e1568e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class CreateAuthTables extends Migration

public function __construct(?Forge $forge = null)
{
parent::__construct($forge);

/** @var Auth $authConfig */
$authConfig = config('Auth');

Expand All @@ -30,6 +28,8 @@ public function __construct(?Forge $forge = null)

$this->tables = $authConfig->tables;
$this->attributes = ($this->db->getPlatform() === 'MySQLi') ? ['ENGINE' => 'InnoDB'] : [];

parent::__construct($forge);
}

public function up(): void
Expand Down

0 comments on commit 4e1568e

Please sign in to comment.