From 2bc9a506124bc963e0ef3df056d43f4dfab1505c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geraldo=20Magalh=C3=A3es?= Date: Mon, 30 Dec 2024 20:32:54 -0300 Subject: [PATCH] Ignores tables that are secondary objects created by the ODCIIndexCreate method of the Oracle Data Cartridge --- src/Oci8/Schema/Grammars/OracleGrammar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Oci8/Schema/Grammars/OracleGrammar.php b/src/Oci8/Schema/Grammars/OracleGrammar.php index ffd1eae8..c9c69057 100644 --- a/src/Oci8/Schema/Grammars/OracleGrammar.php +++ b/src/Oci8/Schema/Grammars/OracleGrammar.php @@ -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;