From d1513883d7ee7202a09612ea6ad41e0a82fbd4b9 Mon Sep 17 00:00:00 2001 From: Jonathan Flueren <11487762+JonOfUs@users.noreply.github.com> Date: Wed, 6 Oct 2021 17:04:21 +0200 Subject: [PATCH] Use correct SQL syntax in repair step One space was missing --- lib/Migration/TimestampMigration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Migration/TimestampMigration.php b/lib/Migration/TimestampMigration.php index 404820e..f028202 100644 --- a/lib/Migration/TimestampMigration.php +++ b/lib/Migration/TimestampMigration.php @@ -35,7 +35,7 @@ class TimestampMigration implements \OCP\Migration\IRepairStep foreach ($timestamps as $timestamp) { $timestampEpoch = (new DateTime($timestamp["timestamp"]))->format("U"); $sql = 'UPDATE `*PREFIX*gpodder_episode_action` ' - . 'SET `timestamp_epoch` = ' . $timestampEpoch + . 'SET `timestamp_epoch` = ' . $timestampEpoch . ' ' . 'WHERE `timestamp_epoch` = 0'; $result = $this->db->executeUpdate($sql);