mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
Contacts, Calendars and Bookmarks: Fix migration scripts for user export/import
This commit is contained in:
parent
34087aa557
commit
2c1104c3ed
@ -34,7 +34,7 @@ class OC_Migration_Provider_Contacts 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 `contacts_addressbooks` WHERE `userid` = ?' );
|
||||
$query = $this->content->prepare( 'SELECT * FROM contacts_addressbooks WHERE userid = ?' );
|
||||
$results = $query->execute( array( $this->olduid ) );
|
||||
$idmap = array();
|
||||
while( $row = $results->fetchRow() ) {
|
||||
@ -49,7 +49,7 @@ class OC_Migration_Provider_Contacts extends OC_Migration_Provider{
|
||||
// Now tags
|
||||
foreach($idmap as $oldid => $newid) {
|
||||
|
||||
$query = $this->content->prepare( 'SELECT * FROM `contacts_cards` WHERE `addressbookid` = ?' );
|
||||
$query = $this->content->prepare( 'SELECT * FROM contacts_cards WHERE addressbookid = ?' );
|
||||
$results = $query->execute( array( $oldid ) );
|
||||
while( $row = $results->fetchRow() ) {
|
||||
// Import the contacts
|
||||
|
Loading…
Reference in New Issue
Block a user