Uploaded image for project: 'Realm Cocoa SDK'
  1. Realm Cocoa SDK
  2. RCOCOA-1262

DevMode generates invalid schema: Invalid schema change (UPLOAD): destructive schema change

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • Q2-22FY
    • Affects Version/s: None
    • Component/s: None

      Goals

      Create a synced schema based on a current local realm schema. The schema contains relationships

      Expected Results

      When running MongoDb Realm in devmode, the schema should be generated correctly.

      Actual Results

      Sync fails since it says that it is an invalid schema change.

      "Sync: Connection[2]: Session[2]: Received: ERROR "Invalid schema change (UPLOAD): destructive schema change: cannot change field "deletedPropertyName" in table "AnObject" from "string" to a relationship" (error_code=225, try_again=0)"

      It looks like all relationships in the generated schema is of type "string" instead of relationship and this will cause sync to fail even though I am running the app in dev mode with the goal of generating a schema

      Steps for others to Reproduce

      1: Create an realm schema containing a relationship
      2: Run MongoDb Realm in devmode

      Version of Realm and Tooling

      Realm framework version: 10.7.5

            Assignee:
            diana.perez@mongodb.com Diana Maria Perez Afanador (Inactive)
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: