more
This commit is contained in:
parent
81fe37de50
commit
08b9729c72
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user