diff --git a/tests/_data/fixtures/Migrations/AbstractMigration.php b/tests/_data/fixtures/Migrations/AbstractMigration.php index eab196399ad..9d87e0a6074 100644 --- a/tests/_data/fixtures/Migrations/AbstractMigration.php +++ b/tests/_data/fixtures/Migrations/AbstractMigration.php @@ -78,16 +78,9 @@ public function clear() 'delete from ' . $this->table . ';' ); } else { - $schema = getenv('DATA_POSTGRES_SCHEMA'); - $exists = $this - ->connection - ->query("SELECT to_regclass('$schema.$this->table') AS exists;") - ->fetchColumn(); - if ($exists) { - $this->connection->exec( - 'truncate table ' . $this->table . ' cascade;' - ); - } + $this->connection->exec( + 'truncate table ' . $this->table . ' cascade;' + ); } } }