From a6f4b94099c53f0911d4cb0d365342c256f51551 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Tue, 26 Feb 2013 02:12:20 +0100 Subject: [PATCH] add index o source_file.filename --- share/schema.sql | 2 ++ 1 file changed, 2 insertions(+) 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;