diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-06-27 21:18:15 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-06-27 21:18:31 +0000 |
commit | 426193cf6cd39ea5422190f7ab45b4435cd5ecf6 (patch) | |
tree | 557342db40c9046b05c4699778f05672a0518645 /apps/bookmarks | |
parent | 77b7f214d2dd2f7ef14ebfe0ed641a1f44a1a05f (diff) | |
download | nextcloud-server-426193cf6cd39ea5422190f7ab45b4435cd5ecf6.tar.gz nextcloud-server-426193cf6cd39ea5422190f7ab45b4435cd5ecf6.zip |
Migration: Fix contacts and bookmarks
Diffstat (limited to 'apps/bookmarks')
-rw-r--r-- | apps/bookmarks/appinfo/migrate.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/bookmarks/appinfo/migrate.php b/apps/bookmarks/appinfo/migrate.php index e7e572f52dc..f1353f1887e 100644 --- a/apps/bookmarks/appinfo/migrate.php +++ b/apps/bookmarks/appinfo/migrate.php @@ -40,8 +40,8 @@ class OC_Migration_Provider_Bookmarks extends OC_Migration_Provider{ $idmap = array(); while( $row = $results->fetchRow() ){ // Import each bookmark, saving its id into the map - $query = OCP\DB::prepare( "INSERT INTO *PREFIX*bookmarks(url, title, user_id, public, added, lastmodified) VALUES (?, ?, ?, ?, ?, ?)" ); - $query->execute( array( $row['url'], $row['title'], $this->uid, $row['public'], $row['added'], $row['lastmodified'] ) ); + $bookmarkquery = OCP\DB::prepare( "INSERT INTO *PREFIX*bookmarks(url, title, user_id, public, added, lastmodified) VALUES (?, ?, ?, ?, ?, ?)" ); + $bookmarkquery->execute( array( $row['url'], $row['title'], $this->uid, $row['public'], $row['added'], $row['lastmodified'] ) ); // Map the id $idmap[$row['id']] = OCP\DB::insertid(); } @@ -51,8 +51,8 @@ class OC_Migration_Provider_Bookmarks extends OC_Migration_Provider{ $results = $query->execute( array( $oldid ) ); while( $row = $results->fetchRow() ){ // Import the tags for this bookmark, using the new bookmark id - $query = OCP\DB::prepare( "INSERT INTO *PREFIX*bookmarks_tags(bookmark_id, tag) VALUES (?, ?)" ); - $query->execute( array( $newid, $row['tag'] ) ); + $tagquery = OCP\DB::prepare( "INSERT INTO *PREFIX*bookmarks_tags(bookmark_id, tag) VALUES (?, ?)" ); + $tagquery->execute( array( $newid, $row['tag'] ) ); } } // All done! |