Questions tagged [realm-migration]

Realm is a databasing system for iOS and Android mobile applications. Then a change is made in the database model it must be "Migrated" to the 'realm' for it to be incorporated into the database scheme.

Realm is a databasing system for iOS and Android mobile applications. When a change is made in the database model it must be "Migrated" to the 'realm' for it to be incorporated into the database scheme.

For information:
https://realm.io/docs/swift/latest/#migrations
https://realm.io/docs/swift/latest/api/

207 questions
0
votes
1 answer

Reusing snapshots of Realm databases

I have a Realm database being populated with data a number of times each second. I am viewing the database as plotted MPChartLib data. My goal is to snap a picture of the database at a particular point in time and reuse that information a bit…
T_Dun
  • 101
  • 1
  • 10
0
votes
1 answer

"Bad Realm file header (#1)" Exception when opening Realm file in iOS

I am using REALM version 0.98.1 (For Objective C), and sometimes getting "Bad Realm file header" exception while compressing DB size on app launch. Below is the method calling sequence in AppDelegate application didFinishLaunch.... [self…
iLearner
  • 1,670
  • 2
  • 19
  • 45
0
votes
1 answer

Error when migrating from Swift 1.2 to Swift 2

I use Realm in my project and so far it has been great ! I have migrated from swift 1.2 to Swift 2 and now I have an error when compiling my code on the device (not on simulator). Here is the error : dyld: Library not loaded:…
Zipette
  • 79
  • 7
0
votes
1 answer

Realm Migration for Column type long

I have created a new long field in my RealmModel class and I have to migrate the existing schema. But as it turn out there is no ColumnType.LONG. When I use any other ColumnType I get - JNI DETECTED ERROR IN APPLICATION: input is not valid Modified…
mihirjoshi
  • 12,161
  • 7
  • 47
  • 78
0
votes
1 answer

Realm - Column Type is not vaid

I am using realm in my current application and I thought of an updating my app. Now, this process takes migrating of tables and new entities and schema if you are using database in the app to save some values. My issue here is that I am having some…
mike20132013
  • 5,357
  • 3
  • 31
  • 41
0
votes
2 answers

Android Realm not saving the variable in database

I created a modal class @RealmClass class Temp extends RealmObject{ var1 var2 var3 getter setter of all above variables. } and save this data to database Temp temp =…
Amit Singh Kaira
  • 119
  • 1
  • 12
0
votes
3 answers

Realm.io RealmSwift Other Realms Migration

I need to do a migration for my Other Realm . I get my realm path via this method (AppDelegate). If a user logged in before, i will retrieve the user's realm else i will just use the Default Realm. func getRealmPath() -> String { let…
perwyl
  • 323
  • 3
  • 14
0
votes
1 answer

Clear db when migration realm needed

There's a way for Android to achieve this but I still puzzled on iOS approached. I don't want to do migration every time I have new update so I prefer clear db to start over if it is so. I found this question related to this I can only use this code…
shoujo_sm
  • 3,173
  • 4
  • 37
  • 60
0
votes
1 answer

Realm primary key migration - objective C

Old RLMObject is there below and primaryKey is AttributeId. I want to change this key to @"Id" next build. UserItemObject.m @implementation UserItemObject { } + ( NSString * )primaryKey; { return…
-1
votes
1 answer

dagger multibinding, Map> cannot be provided without an @Provides-annotated method

I am trying to implement Realm Version management with dagger2, with this link Adavis Realm Migration, but getting following error, [Dagger/MissingBinding] java.util.Map> cannot be provided without an @Provides-annotated method. public abstract…
Reprator
  • 2,859
  • 2
  • 32
  • 55
-1
votes
1 answer

App contains default.realm file yet "No default RealmConfiguration was found. Call setDefaultConfiguration() first"

I am Converting CSV file to realm file on APP ONE then shipping this as the primary database in the APP TWO and setting as default database using SharedPreferences wmbPreference = PreferenceManager.getDefaultSharedPreferences(this); boolean…
phpdroid
  • 1,642
  • 1
  • 18
  • 36
-1
votes
1 answer

No default RealmConfiguration was found. even after declaration

I am defining default database at the first run then calling the default database i don't why it is asking me to call setDefaultConfuration when i have already created default.realm file. here is the declaration:- boolean isFirstRun =…
phpdroid
  • 1,642
  • 1
  • 18
  • 36
1 2 3
13
14