git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 1697656a authored by Jonas Haraldsson's avatar Jonas Haraldsson

Create or replace plpgsql

PLPGSQL is installed by default in postgres 9
parent a50e966a
......@@ -391,7 +391,7 @@ if (isset($_POST['install'])) {
$adodb->Execute("CREATE INDEX groups_groupname_idx ON Groups(lower(groupname))");
// PostgreSQL stored functions
$adodb->Execute("CREATE LANGUAGE plpgsql;");
$adodb->Execute("CREATE OR REPLACE LANGUAGE plpgsql;");
$adodb->Execute("CREATE FUNCTION update_user_stats_scrobble_count() RETURNS TRIGGER AS $$
DECLARE s_count int;
BEGIN
......
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