Skip to content

Commit 54a0f68

Browse files
committed
Added ignored tables from any operations
1 parent 146a91a commit 54a0f68

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Classes/BaseHelper.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ abstract class BaseHelper
3434
* @var int
3535
*/
3636
private $allowedWhereInQueryNumber = 0;
37+
/**
38+
* @var array
39+
*/
40+
private $ignoredTables = ['migrations' , 'password_resets' , 'failed_jobs'];
3741

3842
/**
3943
* @return int
@@ -172,8 +176,10 @@ public function setAllTablesFromDatabase()
172176
$this->loopThrough(
173177
$this->getAllTablesFromDatabase()->getSavedItems(),
174178
function ($key, $item) use ($columnName) {
175-
$this->setTables($item->$columnName);
176-
});
179+
if (!in_array($item->$columnName, $this->ignoredTables)) {
180+
$this->setTables($item->$columnName);
181+
}
182+
});
177183

178184
return $this;
179185
}

0 commit comments

Comments
 (0)