We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit fea559bf authored by elleo's avatar elleo

Merge branch 'master' of gitorious.org:~Elleo/foocorp/elleos-gnu-fm

parents 272ab2d2 bf9bedc6
......@@ -371,31 +371,15 @@ if (isset($_POST['install'])) {
}
}
// uncomment these to solve performance problems with getRecentScrobbles
// $adodb->Execute("CREATE INDEX album_artistname_idx ON Album(artist_name)");
// $adodb->Execute("CREATE INDEX scrobbles_artist_idx ON Scrobbles(artist)");
// $adodb->Execute("CREATE INDEX scrobbles_time_idx ON Scrobbles(time)");
// $adodb->Execute("CREATE INDEX track_artist_idx ON Track(lower(artist_name))");
// $adodb->Execute("CREATE INDEX track_name_idx ON Track(lower(name))");
// $adodb->Execute("CREATE INDEX track_streamable_idx on Track(streamable);");
// $adodb->Execute("CREATE INDEX scrobbles_artist_idx on Scrobbles(lower(artist))");
// $adodb->Execute("CREATE INDEX scrobbles_track_idx on Scrobbles(lower(track))");
// $adodb->Execute("CREATE UNIQE INDEX groups_groupname_idx ON Groups(lower(groupname))");
// uncomment these if you're using postgresql and want to run the software as www-data
// $adodb->Execute("GRANT SELECT, UPDATE, INSERT, DELETE ON TABLE Album, Artist, Auth, ClientCodes, Delete_Request, Error, Invitation_Request, Invitations, Now_Playing, Places, Radio_Sessions, Scrobble_Sessions, Scrobbles, Scrobble_Track, Similar_Artist, Tags, Track, Users, User_Relationships, User_Relationship_Flags to \"www-data\"");
// $adodb->Execute("GRANT SELECT ON Free_Scrobbles, Relationship_Flags to \"www-data\"");
// $adodb->Execute("GRANT SELECT, UPDATE ON users_uniqueid_seq, scrobble_track_id_seq, groups_id_seq, artist_id_seq, album_id_seq to \"www-data\"");
// Test user configuration
try {
$adodb->Execute('INSERT INTO Users
(username, password, active)
VALUES
(\'testuser\', \'' . md5('password') . '\', 1);');
} catch(Exception $e) {
die('Error testing database: ' . $adodb->ErrorMsg());
}
$adodb->Execute("CREATE INDEX album_artistname_idx ON Album(artist_name)");
$adodb->Execute("CREATE INDEX scrobbles_artist_idx ON Scrobbles(artist)");
$adodb->Execute("CREATE INDEX scrobbles_time_idx ON Scrobbles(time)");
$adodb->Execute("CREATE INDEX track_artist_idx ON Track(lower(artist_name))");
$adodb->Execute("CREATE INDEX track_name_idx ON Track(lower(name))");
$adodb->Execute("CREATE INDEX track_streamable_idx on Track(streamable);");
$adodb->Execute("CREATE INDEX scrobbles_artist_idx on Scrobbles(lower(artist))");
$adodb->Execute("CREATE INDEX scrobbles_track_idx on Scrobbles(lower(track))");
$adodb->Execute("CREATE UNIQE INDEX groups_groupname_idx ON Groups(lower(groupname))");
$adodb->Close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment