From fce7e94942a8178b9d8f858895f378b55b14cec3 Mon Sep 17 00:00:00 2001 From: Tom Needham Date: Sat, 30 Mar 2013 01:18:36 +0000 Subject: [PATCH] Contacts, Calendars and Bookmarks: Fix migration scripts for user export/import --- appinfo/migrate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appinfo/migrate.php b/appinfo/migrate.php index 2abc8272..46b7b9d0 100644 --- a/appinfo/migrate.php +++ b/appinfo/migrate.php @@ -34,7 +34,7 @@ class OC_Migration_Provider_Bookmarks 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 `bookmarks` WHERE `user_id` LIKE ?" ); + $query = $this->content->prepare( "SELECT * FROM bookmarks WHERE user_id = ?" ); $results = $query->execute( array( $this->olduid ) ); $idmap = array(); while( $row = $results->fetchRow() ) { @@ -51,7 +51,7 @@ class OC_Migration_Provider_Bookmarks extends OC_Migration_Provider{ } // Now tags foreach($idmap as $oldid => $newid) { - $query = $this->content->prepare( "SELECT * FROM `bookmarks_tags` WHERE `bookmark_id` LIKE ?" ); + $query = $this->content->prepare( "SELECT * FROM bookmarks_tags WHERE bookmark_id = ?" ); $results = $query->execute( array( $oldid ) ); while( $row = $results->fetchRow() ) { // Import the tags for this bookmark, using the new bookmark id