We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12b6d1f commit 825a4feCopy full SHA for 825a4fe
src/Schema/Builder.php
@@ -165,6 +165,11 @@ public function getTables($schema = null)
165
continue;
166
}
167
168
+ $stats = $db->selectCollection($collectionName)->aggregate([
169
+ ['$collStats' => ['storageStats' => ['scale' => 1]]],
170
+ ['$project' => ['storageStats.totalSize' => 1]],
171
+ ])->toArray();
172
+
173
$collections[] = [
174
'name' => $collectionName,
175
'schema' => $db->getDatabaseName(),
0 commit comments