Skip to content

Commit c3d0d7f

Browse files
committed
Removed total size calculation method
1 parent 2671cbb commit c3d0d7f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/Console/Commands/FindRiskyDatabaseColumns.php

-11
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,4 @@ private function formatBytes(int $size, int $precision): string
210210
$suffix = $suffixes[$index];
211211
return round(1024 ** ($base - floor($base)), $precision).$suffix;
212212
}
213-
protected function getTableSize($connection, string $table)
214-
{
215-
$result = $connection->selectOne(
216-
'SELECT (data_length + index_length) AS size FROM information_schema.TABLES WHERE table_schema = ? AND table_name = ?', [
217-
$connection->getDatabaseName(),
218-
$table,
219-
]
220-
);
221-
222-
return Arr::wrap((array) $result)['size'];
223-
}
224213
}

0 commit comments

Comments
 (0)