Skip to content

Commit c2ccde4

Browse files
masterbaterGromNaN
authored andcommitted
fix: restore aggregate getTables
1 parent 8b27d10 commit c2ccde4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Schema/Builder.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ public function getTables($schema = null)
165165
continue;
166166
}
167167

168+
$stats = $db->selectCollection($collectionName)->aggregate([
169+
['$collStats' => ['storageStats' => ['scale' => 1]]],
170+
['$project' => ['storageStats.totalSize' => 1]],
171+
])->toArray();
172+
168173
$collections[] = [
169174
'name' => $collectionName,
170175
'schema' => $db->getDatabaseName(),

0 commit comments

Comments
 (0)