diff --git a/share/schema.sql b/share/schema.sql index c644b44..78ff9e2 100644 --- a/share/schema.sql +++ b/share/schema.sql @@ -23,4 +23,6 @@ CREATE TABLE destination_files ( FOREIGN KEY (destination_id) REFERENCES destinations(id) ); +CREATE INDEX sourcefiles_by_name ON source_files (filename,id); + COMMIT;