Skip to content

Commit

Permalink
fixes #1066
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Nov 14, 2024
1 parent 588d985 commit d634daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrations/096_fix_v3.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ public function up()
$new_plugin_id = $db->query("SELECT MAX(pluginid) FROM plugins")->fetchColumn() + 1;

if (!empty($old_plugin_id) && !empty($new_plugin_id)) {
$stmt = $db->prepare("UPDATE tools_activated SET plugin_id = ':new' WHERE plugin_id = ':old'");
$stmt = $db->prepare("UPDATE tools_activated SET plugin_id = :new WHERE plugin_id = :old");
$stmt->execute([
':new' => $new_plugin_id,
':old' => $old_plugin_id
]);

$stmt = $db->prepare("UPDATE plugins_activated SET pluginid = ':new' WHERE pluginid = ':old'");
$stmt = $db->prepare("UPDATE plugins_activated SET pluginid = :new WHERE pluginid = :old");
$stmt->execute([
':new' => $new_plugin_id,
':old' => $old_plugin_id
Expand Down

0 comments on commit d634daf

Please sign in to comment.