1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 20:34:39 +01:00

Add an index to the magnatune table

This commit is contained in:
David Sansome 2010-05-09 21:21:08 +00:00
parent bef59ffd22
commit 739b0168ed
3 changed files with 6 additions and 1 deletions

View File

@ -87,5 +87,6 @@
<file>edit-undo.png</file>
<file>magnatune.png</file>
<file>schema-8.sql</file>
<file>schema-9.sql</file>
</qresource>
</RCC>

4
data/schema-9.sql Normal file
View File

@ -0,0 +1,4 @@
CREATE INDEX idx_magnatune_comp_artist ON magnatune_songs (effective_compilation, artist);
UPDATE schema_version SET version=9;

View File

@ -27,7 +27,7 @@
#include <QVariant>
const char* Database::kDatabaseFilename = "clementine.db";
const int Database::kSchemaVersion = 8;
const int Database::kSchemaVersion = 9;
int (*Database::_sqlite3_create_function) (
sqlite3*, const char*, int, int, void*,