From fe5688d31925b3ea03d29627cdd03b30405bc4b2 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula <42547589+terabytesoftw@users.noreply.github.com> Date: Wed, 12 Jun 2024 10:13:26 -0400 Subject: [PATCH] Fix #16116: Codeception: oci does not support enabling/disabling integrity check --- framework/CHANGELOG.md | 1 + framework/test/InitDbFixture.php | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 08982f47655..fe3470618fb 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -4,6 +4,7 @@ Yii Framework 2 Change Log 2.0.51 under development ------------------------ +- Bug #16116: Codeception: oci does not support enabling/disabling integrity check (@terabytesoftw) - Bug #20191: Fix `ActiveRecord::getDirtyAttributes()` for JSON columns with multi-dimensional array values (brandonkelly) - Bug #20175: Fix bad result for pagination when used with GridView (@lav45) diff --git a/framework/test/InitDbFixture.php b/framework/test/InitDbFixture.php index f18bd16b97a..6007b1a0ebd 100644 --- a/framework/test/InitDbFixture.php +++ b/framework/test/InitDbFixture.php @@ -95,6 +95,11 @@ public function checkIntegrity($check) if (!$this->db instanceof \yii\db\Connection) { return; } + + if ($this->db->getDriverName() === 'oci') { + return; + } + foreach ($this->schemas as $schema) { $this->db->createCommand()->checkIntegrity($check, $schema)->execute(); }