diff --git a/system/Database/Seeder.php b/system/Database/Seeder.php index 682b7cec859e..f024b3c0a740 100644 --- a/system/Database/Seeder.php +++ b/system/Database/Seeder.php @@ -41,6 +41,7 @@ use CodeIgniter\CLI\CLI; use CodeIgniter\Config\BaseConfig; +use CodeIgniter\Database\Forge; /** * Class Seeder @@ -122,6 +123,8 @@ public function __construct(BaseConfig $config, BaseConnection $db = null) } $this->db = & $db; + + $this->forge = \Config\Database::forge($this->DBGroup); } //--------------------------------------------------------------------