]> git.phdru.name Git - m_librarian.git/commitdiff
Add more indices
authorOleg Broytman <phd@phdru.name>
Sun, 17 Jan 2016 20:45:52 +0000 (23:45 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 17 Jan 2016 20:45:52 +0000 (23:45 +0300)
m_librarian/db.py

index 93787c712d598d409f3eaa81e1ddd7854478bfe8..9985eb96bc79e6f897f32cf01e5dc1567d6c10b8 100755 (executable)
@@ -91,8 +91,13 @@ class Book(SQLObject):
     language = ForeignKey('Language')
     title_idx = DatabaseIndex(title)
     series_idx = DatabaseIndex(series)
+    ser_no_idx = DatabaseIndex(ser_no)
     archive_file_idx = DatabaseIndex(archive, file, unique=True)
+    file_idx = DatabaseIndex(file)
+    size_idx = DatabaseIndex(size)
+    deleted_idx = DatabaseIndex(deleted)
     extension_idx = DatabaseIndex(extension)
+    date_idx = DatabaseIndex(date)
     language_idx = DatabaseIndex(language)