Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-70

Design Migration API

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API design
    • Labels:
      None

      Realm Java right now exposes a manual migration API, while Cocoa/JS/.NET as an almost automatic migration.

      Back when these API's where developed we discussed the pros and cons for both approaches. After 3-4 years with both of these API's it is probably safe to conclude that neither negative consequences for these API's have materialized in any meaningful other.

       

      So for the sake of moving fast it is probably easier to expose automatic migration, since that would require less API's from us.

       

      TODO/Questions

      • Figure out exactly how migrations should work in Realm Kotlin. What interfaces/API's are needed to support an automatic upgrade process
      • If we later decide to re-add support for manual migrations. How can this be done? Ideally it can be done without a breaking change.

            Assignee:
            claus.rorbech@mongodb.com Claus Rørbech
            Reporter:
            christian.melchior@mongodb.com Christian Melchior (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: