Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    SQLite generic upgrader?

    App Development
    2
    2
    418
    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.
    • Flohack
      Flohack last edited by

      Hi there,
      seems I need to upgrade the Telegram App db, which is of course not a big deal. But what I know from other designs is to have an upgrade class that can be fed with upgrade steps according version numbers (version of Db, not App version) and it will check and upgrade (or even downgrade) as necessary.

      Would be great to have a generic version that can be used by all App builders. I recommend a static class inside a small lib which then gets configured with a map or smth like this of versions and their scripts.

      Is there already smth like that on this planet? 🙂

      BR

      H 1 Reply Last reply Reply Quote 0
      • H
        hans1977se @Flohack last edited by

        @Flohack I'm not a DB guy, but there is the Drupal project which provides an API for DB abstraction.

        I don't know how suitable that would be in this situation, but you could have a quick look at it to see it it seems to be something along the lines you're thinking. 🙂

        1 Reply Last reply Reply Quote 0
        • First post
          Last post