Skip to content

Commit 5c63279

Browse files
committed
Adding IF NOT EXISTS to CREATE log_event_dropped
1 parent 1b8e6dd commit 5c63279

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ final class SchemaManager extends SQLiteOpenHelper {
8484
private static final String DROP_PAYLOADS_SQL = "DROP TABLE IF EXISTS event_payloads";
8585

8686
private static final String CREATE_LOG_EVENT_DROPPED_TABLE =
87-
"CREATE TABLE log_event_dropped "
87+
"CREATE TABLE IF NOT EXISTS log_event_dropped "
8888
+ "(log_source VARCHAR(45) NOT NULL,"
8989
+ "reason INTEGER NOT NULL,"
9090
+ "events_dropped_count BIGINT NOT NULL,"

0 commit comments

Comments
 (0)