Skip to content

Commit

Permalink
add DatabaseTableSizeCheck::setMaxTableSizeInGigabytes
Browse files Browse the repository at this point in the history
  • Loading branch information
david-d-h committed Oct 5, 2023
1 parent fc0ce97 commit e3cea66
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Checks/DatabaseTableSizeCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ public function onConnection(string $name): static
return $this;
}

public function setTableSizeThresholdsInMegabytes(array $config): static
public function setMaxTableSizeInGigabytes(array $config): static
{
return $this->setMaxTableSizeInMegabytes(
array_map(fn ($size) => $size * 1000, $config),
);
}

public function setMaxTableSizeInMegabytes(array $config): static
{
$this->tableSizeThresholds = $config;

Expand Down

0 comments on commit e3cea66

Please sign in to comment.