Skip to content

Commit ee0c235

Browse files
Fixed default value for hypertable and cagg rescue (#106)
1 parent 83eeb20 commit ee0c235

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Schema/BuilderWipe.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function dropAllContinuousAggregates(): void
1313
$continuousAggregates = $this->findRelations(
1414
rescue(
1515
callback: fn () => $this->getConnection()->table('timescaledb_information.continuous_aggregates')->select(['view_schema as schema', 'view_name as name'])->whereIn('view_schema', $this->getActiveSchemas())->get(),
16-
rescue: [],
16+
rescue: fn () => collect(),
1717
report: false,
1818
)
1919
);
@@ -27,7 +27,7 @@ public function dropAllHypertables(): void
2727
$hypertables = $this->findRelations(
2828
rescue(
2929
callback: fn () => $this->getConnection()->table('timescaledb_information.hypertables')->select(['hypertable_schema as schema', 'hypertable_name as name'])->whereIn('hypertable_schema', $this->getActiveSchemas())->get(),
30-
rescue: [],
30+
rescue: fn () => collect(),
3131
report: false,
3232
)
3333
);

0 commit comments

Comments
 (0)