Contacts, Calendars and Bookmarks: Fix migration scripts for user export/import

master
Tom Needham 2013-03-30 01:18:36 +00:00
parent 7a703c0aff
commit fbc9a3865a
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class OC_Migration_Provider_Calendar extends OC_Migration_Provider{
switch( $this->appinfo->version ) {
default:
// All versions of the app have had the same db structure, so all can use the same import function
$query = $this->content->prepare( 'SELECT * FROM `calendar_calendars` WHERE `userid` = ?' );
$query = $this->content->prepare( 'SELECT * FROM calendar_calendars WHERE userid = ?' );
$results = $query->execute( array( $this->olduid ) );
$idmap = array();
while( $row = $results->fetchRow() ) {
@ -49,7 +49,7 @@ class OC_Migration_Provider_Calendar extends OC_Migration_Provider{
// Now tags
foreach($idmap as $oldid => $newid) {
$query = $this->content->prepare( 'SELECT * FROM `calendar_objects` WHERE `calendarid` = ?' );
$query = $this->content->prepare( 'SELECT * FROM calendar_objects WHERE calendarid = ?' );
$results = $query->execute( array( $oldid ) );
while( $row = $results->fetchRow() ) {
// Import the objects