Skip to content

Commit

Permalink
Merge pull request #897 from geraldosm/master
Browse files Browse the repository at this point in the history
fix: OracleGrammar::compileDropAllTables method to ignore secondary objects.
  • Loading branch information
yajra authored Dec 31, 2024
2 parents eb88f91 + 2bc9a50 commit 26a1e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Oci8/Schema/Grammars/OracleGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public function compileDrop(Blueprint $blueprint, Fluent $command)
public function compileDropAllTables()
{
return 'BEGIN
FOR c IN (SELECT table_name FROM user_tables) LOOP
FOR c IN (SELECT table_name FROM user_tables WHERE secondary = \'N\') LOOP
EXECUTE IMMEDIATE (\'DROP TABLE "\' || c.table_name || \'" CASCADE CONSTRAINTS\');
END LOOP;
Expand Down

0 comments on commit 26a1e87

Please sign in to comment.