Skip to content

Commit

Permalink
Fixed selected_images_ni for fresh database
Browse files Browse the repository at this point in the history
Should do the unique index simply on imgid
  • Loading branch information
jenshannoschwalm authored and TurboGit committed May 27, 2024
1 parent 3f9ef28 commit 95c2bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/database.c
Original file line number Diff line number Diff line change
Expand Up @@ -3269,7 +3269,7 @@ static void _create_library_schema(dt_database_t *db)

sqlite3_exec(db->handle,
"CREATE UNIQUE INDEX main.selected_images_ni"
" ON selected_images (num, imgid)",
" ON selected_images (imgid)",
NULL, NULL, NULL);
////////////////////////////// history
sqlite3_exec(
Expand Down

0 comments on commit 95c2bd7

Please sign in to comment.