![]() No longer support byte array field as column in table.Add return value for LitePal.saveAll() method.Adding return value for runInTransaction() function for Kotlin.Support database index by adding = true) on field.If you find any bug when using LitePal, please report here. Each model which inherits from LitePalSupport would have the save() method for free. Change a field's annotation into nullable = false.īe careful of the above conditions which will cause losing data.Change a field's annotation into unique = true.Add a field which annotated as unique = true.All the data in album table except those removed columns will be retained.īut there are some upgrading conditions that LitePal can't handle and all data in the upgrading table will be cleaned: A releasedate column will be added into album table and the original price column will be removed. The tables will be upgraded next time you operate database. To makes the APIs simple, just configure the LitePalApplication in AndroidManifest.xml as below: You don't want to pass the Context param all the time. internal and external are the only valid options. storage configure where the database file should be stored.Each time you want to upgrade database, plus the value here. version configure the version of database.dbname configure the database name of project.This is the only configuration file, and the properties are simple.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |