Skip to content

Commit

Permalink
version 2.0.1,fix issue #29
Browse files Browse the repository at this point in the history
  • Loading branch information
yuweiguocn committed Nov 21, 2017
1 parent bccc897 commit 5a91877
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The original code is from [stackoverflow](http://stackoverflow.com/a/30334668/71
```
dependencies {
compile 'org.greenrobot:greendao:3.2.0'
compile 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.0.0'
compile 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.0.1'
}
```
or (greendao 3.0 below)
Expand Down
2 changes: 1 addition & 1 deletion README_CH.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ GreenDaoUpgradeHelper是一个greenDao的数据库升级帮助类。使用它可
```
dependencies {
compile 'org.greenrobot:greendao:3.2.0'
compile 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.0.0'
compile 'com.github.yuweiguocn:GreenDaoUpgradeHelper:v2.0.1'
}
```
如果你使用的greendao是3.0以前的版本,请使用下面的依赖:
Expand Down
6 changes: 3 additions & 3 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 9
targetSdkVersion 23
versionCode 200
versionName "2.0"
versionCode 201
versionName "2.0.1"
}
buildTypes {
release {
Expand All @@ -32,7 +32,7 @@ publish {
userOrg = 'yuweiguocn'//用户名
groupId = 'io.github.yuweiguocn'//包名
artifactId = 'GreenDaoUpgradeHelper'//类库名
publishVersion = '2.0.0'//版本号
publishVersion = '2.0.1'//版本号
desc = 'To solve database upgrade of greenDao and just need one line code.'//描述
website = 'https://github.com/yuweiguocn/GreenDaoUpgradeHelper'//对应的github网址
}
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private static void restoreData(Database db, Class<? extends AbstractDao<?, ?>>.
final String columnSQL = TextUtils.join(",", properties);

StringBuilder insertTableStringBuilder = new StringBuilder();
insertTableStringBuilder.append("INSERT INTO ").append(tableName).append(" (");
insertTableStringBuilder.append("REPLACE INTO ").append(tableName).append(" (");
insertTableStringBuilder.append(columnSQL);
insertTableStringBuilder.append(") SELECT ");
insertTableStringBuilder.append(columnSQL);
Expand Down

0 comments on commit 5a91877

Please sign in to comment.