Skip to content

Commit 93ba4a7

Browse files
committed
Insert or Ignore.
1 parent 016221d commit 93ba4a7

File tree

1 file changed

+1
-1
lines changed
  • firebase-firestore/src/main/java/com/google/firebase/firestore/local

1 file changed

+1
-1
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/local/SQLiteSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ private void createDataMigrationTable() {
657657
}
658658

659659
private void addPendingDataMigration(String migration) {
660-
db.execSQL("INSERT INTO data_migrations (migration_name) VALUES (?)", new String[] {migration});
660+
db.execSQL("INSERT OR IGNORE INTO data_migrations (migration_name) VALUES (?)", new String[] {migration});
661661
}
662662

663663
private boolean tableExists(String table) {

0 commit comments

Comments
 (0)