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

Eliminate a redundant call to RLMRealmSetSchemaAndAlign when migrations occur #2142

Merged
merged 2 commits into from
Jul 2, 2015

Conversation

tgoyne
Copy link
Member

@tgoyne tgoyne commented Jun 30, 2015

I think this is a slightly more correct version of #2109. This still doesn't fix the root problem of that a lot of ridiculous things are done with the schema in the migrations codepath, but it at least avoids doing the specific bad thing that causes breakage (call RLMRealmSetSchemaAndAlign() on a single target schema multiple times) rather than trying to clean up afterwards.

segiddins and others added 2 commits June 30, 2015 11:09
…ns occur

It's not idempotent, so the extra call actively broke things when migrations ran.
@tgoyne tgoyne added the pr label Jun 30, 2015
@segiddins
Copy link
Contributor

👍

@jpsim
Copy link
Contributor

jpsim commented Jul 2, 2015

This does look like a more proper fix. 👍

tgoyne added a commit that referenced this pull request Jul 2, 2015
Eliminate a redundant call to RLMRealmSetSchemaAndAlign when migrations occur
@tgoyne tgoyne merged commit fe59598 into master Jul 2, 2015
@tgoyne tgoyne removed the pr label Jul 2, 2015
@tgoyne tgoyne deleted the tg-migration-column-alignment branch July 2, 2015 23:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 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.

3 participants