Skip to content

Commit f793d77

Browse files
authored
call DROP_GLOBAL_LOG_EVENT_STATE_SQL before inserting during migration (#3460)
1 parent 706561b commit f793d77

File tree

1 file changed

+1
-0
lines changed
  • transport/transport-runtime/src/main/java/com/google/android/datatransport/runtime/scheduling/persistence

1 file changed

+1
-0
lines changed

transport/transport-runtime/src/main/java/com/google/android/datatransport/runtime/scheduling/persistence/SchemaManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ final class SchemaManager extends SQLiteOpenHelper {
132132
private static final SchemaManager.Migration MIGRATION_TO_V5 =
133133
db -> {
134134
db.execSQL(DROP_LOG_EVENT_DROPPED_SQL);
135+
db.execSQL(DROP_GLOBAL_LOG_EVENT_STATE_SQL);
135136
db.execSQL(CREATE_LOG_EVENT_DROPPED_TABLE);
136137
db.execSQL(CREATE_GLOBAL_LOG_EVENT_STATE_TABLE);
137138
db.execSQL(CREATE_INITIAL_GLOBAL_LOG_EVENT_STATE_VALUE_SQL);

0 commit comments

Comments
 (0)