Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File format upgrade might trigger migration #7139

Closed
wants to merge 1 commit into from

Conversation

kneth
Copy link
Contributor

@kneth kneth commented Nov 15, 2023

What, How & Why?

Upgrading the Realm file format might trigger a migration, and when deleting the file as migration (typically done during development), users can experience data loss.

The file foo.realm has been generated by the following script and Realm JS v10.9.1:

const Realm = require("realm");
const schema = {
  name: "Object",
  properties: {
    value: "int"
  },
};

let realm = new Realm({ path: "foo.realm", schema: [schema] });
realm.write(() => {
  realm.create("Object", { value: 42 } );
});
realm.close();

☑️ ToDos

  • 📝 Changelog update
  • 🚦 Tests (or not relevant)
  • C-API, if public C++ API changed
  • bindgen/spec.yml, if public C++ API changed

@jedelbo jedelbo assigned jedelbo and unassigned kneth Nov 15, 2023
@jedelbo
Copy link
Contributor

jedelbo commented Nov 15, 2023

This is actually working as designed

@jedelbo jedelbo closed this Nov 15, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants