GreenDaoUpgradeHelper icon indicating copy to clipboard operation
GreenDaoUpgradeHelper copied to clipboard

To solve database upgrade of greenDao and just need one line code

Results 14 GreenDaoUpgradeHelper issues
Sort by recently updated
recently updated
newest added

警告: [unchecked] 对于类型为Class>[]的 varargs 参数, 泛型数组创建未经过检查 MigrationHelper.migrate(db, new MigrationHelper.ReCreateAllTableListener() { ^

MigrationHelper ![2549795510f1129c7dcf4cd3f8172a3](https://user-images.githubusercontent.com/8410255/104675463-88c34280-5720-11eb-9767-a00f4f11dbd1.png)

#51 关于重载回调与反射再数据库升级中存在的一些问题,已在评论中指出,怕作者看不到,故重提一下

I use this library to help migrating greendao DB tables in Application onCreate() method. java.lang.RuntimeException:Unable to create application my.app.pakcage: android.database.sqlite.SQLiteException: Failed to change locale for db '/data/data/my.app.pakcage/databases/addressDb' to 'zh_CN'. java.lang.RuntimeException:Unable...

`MigrationHelper.java` 中大量使用 try catch 结构捕获异常, 但是捕获后仅输出了异常日志, 没有真正意义上地处理异常. 这会埋下不少隐患. 随便举个例子, 比如`generateTempTables` 时, 哪怕并未成功创建临时表, 迁移依然不会终止, 后续的删除数据库操作仍然会执行, 这样就导致了老数据的遗失. 有计划处理一下类似隐患吗?

android.database.sqlite.SQLiteException: table "APP_MESSAGE" already exists (code 1 SQLITE_ERROR) at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method) at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:748) at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:754) at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:64) at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1778) at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1705) at org.greenrobot.greendao.database.StandardDatabase.execSQL(StandardDatabase.java:37) at com.eiot.kids.dao.AppMessageDao.createTable(AppMessageDao.java:54) at com.eiot.kids.dao.DaoMaster.createAllTables(DaoMaster.java:24) at com.eiot.kids.dao.DaoMaster$OpenHelper.onCreate(DaoMaster.java:125) at...

使用SqlCipher加密后迁移数据不成功

数据过多的话,会不会导致卡顿啊

数据库表增加字段升级数据库时 原有的数据中有id自增长 @Id(autoincrement = true) private Long id; 报 UNIQUE constraint failed: PLAY_LIST_INFO._id (Sqlite code 1555 SQLITE_CONSTRAINT_PRIMARYKEY)