This commit is contained in:
Shish 2020-10-27 22:07:32 +00:00
parent 81fe37de50
commit 08b9729c72
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ class MimeSystem extends Extension
// adjustment needs to be made to the mime types.
if ($this->get_version(self::VERSION) < 1) {
if ($database->transaction) {
if ($database->is_transaction_open()) {
// Each of these commands could hit a lot of data, combining
// them into one big transaction would not be a good idea.
$database->commit();

View file

@ -186,7 +186,7 @@ class Upgrade extends Extension
if ($this->get_version("db_version") < 21) {
log_info("upgrade", "Setting predictable media values for known file types");
if ($database->transaction) {
if ($database->is_transaction_open()) {
// Each of these commands could hit a lot of data, combining
// them into one big transaction would not be a good idea.
$database->commit();