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

    SQLite generic upgrader?

    Scheduled Pinned Locked Moved App Development
    2 Posts 2 Posters 553 Views 1 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

        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

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

        H 1 Reply Last reply Reply Quote 0
        • H Offline
          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