UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    OTA-24 Devel/RC potential contacts data loss

    Scheduled Pinned Locked Moved OS
    4 Posts 2 Posters 987 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • flohackF Offline
      flohack
      last edited by

      While trying to roll out a new backend for contacts and addressbook data we faced some regressions that led us to the decision to revert the entire feature for now and work on it later.
      As many of you have already updated their devices to the latest devel or RC image you will now have to deal with the following issue: As the new feature involved changing databases a onetime migration was made, copying all old contacts to a new database. Contacts added/modified/deleted after Sep 28 2022 will now be reset or be missing. The contacts backend will again use the old database.

      Please go to your address-book App and export all contacts before you install latest devel or RC. In case you forget to do so there is a potential SQL query that can help with that. We will publish it in this thread later.

      Thanks for your patience and understanding!

      My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

      1 Reply Last reply Reply Quote 2
      • flohackF Offline
        flohack
        last edited by

        So the SQL statement would be:

        sqlite3 -header -csv /home/phablet/.local/share/system/privileged/Contacts/qtcontacts-sqlite/contacts.db "SELECT DisplayLabels.displayLabel,Names.firstName, Names.lastName,PhoneNumbers.phoneNumber, EmailAddresses.emailAddress, Contacts.modified FROM Contacts LEFT JOIN DisplayLabels ON DisplayLabels.contactId = Contacts.contactId LEFT JOIN EmailAddresses ON EmailAddresses.contactId = Contacts.contactId  LEFT JOIN Names ON Names.contactId = Contacts.contactId LEFT JOIN Nicknames ON Nicknames.contactId = Contacts.contactId LEFT JOIN PhoneNumbers ON PhoneNumbers.contactId = Contacts.contactId WHERE Contacts.collectionId = 1 ORDER BY Contacts.modified DESC;" > /home/phablet/Documents/contactsfromnewbackend.csv
        

        It outputs to Documents/contactsfromnewbackend.csv (csv with comma separation)

        My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

        1 Reply Last reply Reply Quote 1
        • UBportsNewsU UBportsNews referenced this topic on
        • D Offline
          domubpkm
          last edited by

          Hello @Flohack
          There was a proposed update in RC tonight. Before install it, is it test version of OTA-24 or other RC to come? Thanks

          flohackF 1 Reply Last reply Reply Quote 0
          • flohackF Offline
            flohack @domubpkm
            last edited by

            @domubpkm Hello, this RC is the final candidate for OTA-24

            My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

            1 Reply Last reply Reply Quote 1

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better πŸ’—

            Register Login
            • First post
              Last post