Skip to content

Commit

Permalink
Fixed upgrades from pre-0.3.x tables.
Browse files Browse the repository at this point in the history
Should fix #506.
  • Loading branch information
evert committed Mar 17, 2016
1 parent a128902 commit b00c2f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ChangeLog
0.4.1 (2016-??-??)
------------------

* #506: Fix Sqlite upgrades from people that are upgrading from 0.2.7 or
earlier.


0.4.0 (2016-03-15)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ protected function upgrade($sVersionFrom, $sVersionTo) {
transparent bool
);');

$pdo->exec('INSERT INTO calendars SELECT * FROM calendars' . $tmpTable);
$pdo->exec('INSERT INTO addressbooks SELECT * FROM addressbooks' . $tmpTable);
$pdo->exec('INSERT INTO calendars SELECT id, principaluri, displayname, uri, synctoken, description, calendarorder, calendarcolor, timezone, components, transparent FROM calendars' . $tmpTable);
$pdo->exec('INSERT INTO addressbooks SELECT id, principaluri, displayname, uri, description, synctoken FROM addressbooks' . $tmpTable);

$this->aSuccess[] = 'Updated calendars and addressbooks tables';

Expand Down

0 comments on commit b00c2f3

Please sign in to comment.