Skip to content

Commit 705cc6e

Browse files
committed
Merge pull request foxykeep#26 from superthib/patch-1
Table upgrade was done again with next table version
2 parents a1431ac + 0879b51 commit 705cc6e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
2-
if (oldVersion <= %1$d) {
1+
if (oldVersion < %1$d) {
32
db.execSQL("CREATE TABLE " + TABLE_NAME + "_tmp (" + %2$s%3$s%4$s + ");");
43

54
db.execSQL("INSERT INTO " + TABLE_NAME + "_tmp SELECT " + %5$s + ", %6$s FROM " + TABLE_NAME + ";");
65

76
db.execSQL("DROP TABLE " + TABLE_NAME + ";");
87
db.execSQL("ALTER TABLE " + TABLE_NAME + "_tmp RENAME TO " + TABLE_NAME + ";");
98
oldVersion = %1$d;
10-
}
9+
}

0 commit comments

Comments
 (0)