realm-migration Questions
5
Solved
I'm using realm.io in a swift app. This is the first time I've had to run a migration since I have an app in production. I changed one of the models and added a couple of extra fields to it.
I fol...
Solmization asked 14/1, 2016 at 4:44
2
I am developing new app but I am getting following exception
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.example.myapplication/com.example.myapplication.MessengerActi...
Oneeyed asked 6/5, 2019 at 8:26
3
Solved
I was checking out the migration documentation, however, I'm not sure if I overlooked or it's not stated, but I noticed that the documentation only explains how to add column, what if I want to rem...
Pampuch asked 16/12, 2015 at 6:57
2
Solved
Conversation class previously had a string field named "message". Now this "message" field is removed and i have added a "RealmList allMessages" inside Conversation class instead of old "message" f...
Rowlett asked 16/7, 2018 at 17:8
1
Solved
I want to import existing token into tokenList as first item , for example if someone has a
token="abc" after migration , i want he/she has tokenList that tokenList[0]=="abc"
This is my migration...
Stalnaker asked 22/1, 2020 at 8:23
2
I copy and paste the code from realm doc. But don't know how to change teh section i commented next to to indicate. (at the bottom)
Below is the full error message I get:
error initializing newr...
Ackack asked 30/7, 2018 at 23:15
1
Solved
I have an app on production, so changes has to be applied with a RealmMigration
I've looked the documentation and this example but I didn't find how to do the following.
In current version I have...
Atmospheric asked 31/5, 2018 at 14:58
1
I use a "common" library in my iOS project. This library creates a Realm database. So far, I've been using this library on only iOS projects. I want to now use that same library with a macOS projec...
Virelay asked 20/12, 2017 at 21:7
5
I have a Realm model that I want to apply migrations. However, when I apply the migrations I get the error
Configurations cannot be different if used to open the same file.
The most likely cause...
Conventioneer asked 31/7, 2016 at 14:9
1
Solved
My existing app data is on SQlite. I am trying to migrate the data from Sqlite to Realm. I google how to migrate data, but didn't find any solution related to that.
I am planning to launch an upd...
Footwear asked 4/1, 2017 at 5:11
2
Solved
We use Realm for our app. Our app has been beta released. Now I want to add a field to one of our realm objects. So I got to write RealmMigration and I wrote one too. The Question here is how to ap...
Nahshun asked 7/3, 2016 at 5:28
2
Solved
Im using Realm v0.80.1 and I am trying to write migration code for a new property I added. The property is a RealmList. Im not sure how to properly add the new column or set a a value.
What I hav...
Popularize asked 28/5, 2015 at 19:56
2
I need to add a @PrimaryKey to two Realm models that are missing it due to idiocy. The models are referenced in multiple other models via direct relationships or RealmLists, one of both models al...
Holmquist asked 26/8, 2016 at 8:38
1
Solved
In my current app, I have a HolderObject (which extends RealmObject) with a long 'machineId'. In a new version of the app, this HolderObject will be able to contain more machines, in the form of a ...
Wolfson asked 6/6, 2016 at 11:44
1
Solved
I'd like to change field name in Realm DB migration process.
It seems that changing field name is not supported, and only copy-and-remove is the only way to do.
is this correct?
It consumes lots o...
Epigrammatist asked 27/5, 2016 at 18:53
2
Solved
I have the following models
class Area: Object {
// Specify properties to ignore (Realm won't persist these)
// override static func ignoredProperties() -> [String] {
// return []
// }
dyna...
Cordoba asked 16/12, 2015 at 8:27
3
Solved
So we have a scenario where a user has version 1.0 of an app. Version 2.0 comes out, but the user does not update. When version 3.0 comes out, the user decides to update.
Because the user has not...
Hawker asked 14/7, 2015 at 8:58
1
Solved
Are you able to create a realm Object during a migration? I am wanting to extract part of an existing realm object and create a new object with that data, but the migration always hangs up. Here is...
Ruddy asked 8/11, 2015 at 2:10
1
© 2022 - 2024 — McMap. All rights reserved.