Skip to content

Commit

Permalink
Fixed upgrade when synctoken is null (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteHamster committed May 1, 2019
1 parent 900e7da commit 0a036ba
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -509,7 +509,7 @@ protected function upgrade($sVersionFrom, $sVersionTo) {
}

$pdo->exec(<<<SQL
INSERT INTO calendars (id, synctoken, components) SELECT id, synctoken, COALESCE(components,"VEVENT,VTODO,VJOURNAL") as components FROM $calendarBackup
INSERT INTO calendars (id, synctoken, components) SELECT id, COALESCE(synctoken,1) as synctoken, COALESCE(components,"VEVENT,VTODO,VJOURNAL") as components FROM $calendarBackup
SQL
);
$this->aSuccess[] = 'Migrated calendars table';
Expand Down

0 comments on commit 0a036ba

Please sign in to comment.