diff --git a/src/Database/Adapter/MariaDB.php b/src/Database/Adapter/MariaDB.php index e0e514fcc..90ea0ae8c 100644 --- a/src/Database/Adapter/MariaDB.php +++ b/src/Database/Adapter/MariaDB.php @@ -213,15 +213,7 @@ public function createCollection(string $name, array $attributes = [], array $in ->prepare($permissions) ->execute(); } catch (PDOException $e) { - $e = $this->processException($e); - - if (!($e instanceof DuplicateException)) { - $this->getPDO() - ->prepare("DROP TABLE IF EXISTS {$this->getSQLTable($id)}, {$this->getSQLTable($id . '_perms')};") - ->execute(); - } - - throw $e; + throw $this->processException($e); } return true;