Skip to content

Commit 46b3dfd

Browse files
authored
Adding IF NOT EXISTS to CREATE log_event_dropped (#3304)
* Adding IF NOT EXISTS to CREATE log_event_dropped * DROP TABLE before CREATE log_event_dropped
1 parent 55ffdd5 commit 46b3dfd

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
@@ -131,6 +131,7 @@ final class SchemaManager extends SQLiteOpenHelper {
131131

132132
private static final SchemaManager.Migration MIGRATION_TO_V5 =
133133
db -> {
134+
db.execSQL(DROP_LOG_EVENT_DROPPED_SQL);
134135
db.execSQL(CREATE_LOG_EVENT_DROPPED_TABLE);
135136
db.execSQL(CREATE_GLOBAL_LOG_EVENT_STATE_TABLE);
136137
db.execSQL(CREATE_INITIAL_GLOBAL_LOG_EVENT_STATE_VALUE_SQL);

0 commit comments

Comments
 (0)