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

数据库表结构更改 #374

Closed
Reginer opened this Issue Mar 28, 2019 · 5 comments

Comments

Projects
None yet
2 participants
@Reginer
Copy link

commented Mar 28, 2019

Aria版本

3.6.2debug

什么问题

数据库表是不是变动过 ?从以前3.4升级上来之后,再使用下载就提示数据库报错。
组下载

如何复现此问题

使用旧版本,打开一次apk。之后使用现在版本,打开apk使用组下载功能

控制台日志

android.database.sqlite.SQLiteException: foreign key mismatch - "DownloadGroupTaskEntity" referencing "DownloadGroupEntity" (code 1): , while compiling: UPDATE DownloadGroupEntity SET currentProgress=?,urls=?,fileSize=?,convertFileSize=?,groupHash=?,completeTime=?,stopTime=?,dirPath=?,state=?,percent=?,isComplete=? WHERE rowid=?

@AriaLyy

This comment has been minimized.

Copy link
Owner

commented Mar 28, 2019

是的,3.6.2版本去掉了一些没有的外键

@Reginer

This comment has been minimized.

Copy link
Author

commented Mar 28, 2019

那要是想流畅的升级到最新版而不至于让功能异常,Aria有没有提供什么api可以清理下载数据库的数据,或者有其他什么办法 ?

@AriaLyy

This comment has been minimized.

Copy link
Owner

commented Mar 28, 2019

暂时还在研究怎么处理,你可以自己清除数据库的数据,数据库名:AndroidAria.db

@Reginer

This comment has been minimized.

Copy link
Author

commented Mar 28, 2019

@AriaLyy

This comment has been minimized.

Copy link
Owner

commented Mar 28, 2019

3q

AriaLyy added a commit that referenced this issue Mar 29, 2019

@AriaLyy AriaLyy closed this Apr 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.