Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

Commit a4cc6c9

Browse files
committed
Add each constraint to the list when we get them
1 parent 22e4010 commit a4cc6c9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • core/src/main/java/novoda/lib/sqliteprovider/util

core/src/main/java/novoda/lib/sqliteprovider/util/DBUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ public static List<Constraint> getUniqueConstraints(SQLiteDatabase db, String ta
156156
columns.add(columnName);
157157
}
158158
columnCursor.close();
159+
constraints.add(new Constraint(columns));
159160
}
160161
}
161162
indexCursor.close();

0 commit comments

Comments
 (0)