Skip to content

Commit

Permalink
Fixed issue #19501: Upgrade broke at 430 with ComfortUpdateChecker (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle authored Jun 7, 2024
1 parent 2854458 commit 21403de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/helpers/update/updates/Update_430.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class Update_430 extends DatabaseUpdateBase
{
public function up()
{
$result = $this->db->createCommand('SELECT name FROM {{plugins}} WHERE name = ' . $this->db->quoteValue('ComfortUpdateChecker'))->queryAll();
if (empty($result)) {
$this->db->createCommand()->insert(
"{{plugins}}",
[
Expand All @@ -17,5 +19,6 @@ public function up()
'load_error_message' => null
]
);
}
}
}

0 comments on commit 21403de

Please sign in to comment.