From a9bfbf05c30918d90608f66321af7626d1abe153 Mon Sep 17 00:00:00 2001 From: Sergei Tigrov Date: Fri, 10 Nov 2023 13:30:22 +0700 Subject: [PATCH] Fix Oracle tests running locally (#232) --- tests/Support/Factory/OracleFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Support/Factory/OracleFactory.php b/tests/Support/Factory/OracleFactory.php index 44e2548..1b40a18 100644 --- a/tests/Support/Factory/OracleFactory.php +++ b/tests/Support/Factory/OracleFactory.php @@ -40,7 +40,7 @@ static function (string $id) use (&$container, $config): object { return match ($id) { ConnectionInterface::class => new OracleConnection( new OracleDriver( - 'oci:dbname=localhost:1521;charset=AL32UTF8', + 'oci:dbname=localhost:1521/XE;charset=AL32UTF8', 'system', 'root', ), @@ -83,7 +83,7 @@ public static function clearDatabase(ContainerInterface $container): void $command = $db->createCommand(); foreach ($tables as $table) { - $command->dropTable($table)->execute(); + $command->setSql('DROP TABLE "' . $table . '" CASCADE CONSTRAINTS')->execute(); } $db->close();