File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Illuminate/Database/Schema Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function dropAllTables()
19
19
$ hypertables = [];
20
20
21
21
$ excludedTables = $ this ->connection ->getConfig ('dont_drop ' ) ?? ['spatial_ref_sys ' ];
22
- $ hasTimescaleDB = !empty ($ this ->connection ->select ("SELECT 1 FROM pg_extension WHERE extname = 'timescaledb' " ));
22
+ $ hasTimescaleDB = ! empty ($ this ->connection ->select ("SELECT 1 FROM pg_extension WHERE extname = 'timescaledb' " ));
23
23
24
24
if ($ hasTimescaleDB ) {
25
25
$ hypertables = $ this ->connection ->select (
@@ -29,7 +29,7 @@ public function dropAllTables()
29
29
}
30
30
31
31
foreach ($ this ->getTables ($ this ->getCurrentSchemaListing ()) as $ table ) {
32
- if (!in_array ($ table ['name ' ], $ excludedTables ) && !in_array ($ table ['schema_qualified_name ' ], $ excludedTables )) {
32
+ if (! in_array ($ table ['name ' ], $ excludedTables ) && ! in_array ($ table ['schema_qualified_name ' ], $ excludedTables )) {
33
33
if (in_array ($ table ['schema_qualified_name ' ], $ hypertables )) {
34
34
$ this ->connection ->statement ("DROP TABLE IF EXISTS {$ table ['schema_qualified_name ' ]} CASCADE " );
35
35
} else {
You can’t perform that action at this time.
0 commit comments