From eb68607f564e2d9cc828ea55886849e9ae11e1eb Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sat, 24 Oct 2009 19:44:32 +0000 Subject: [PATCH] create the plpgsql language if it is not already there; will error if already enabled, but we will just ignore this - this may cause issues if the db user does not have priviledges to create language ... if this is the case the next query will fail git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@738 a1433add-5e2c-0410-b055-b7f2511e0802 --- upgrade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/upgrade.php b/upgrade.php index 695f2fac..e13d4b97 100644 --- a/upgrade.php +++ b/upgrade.php @@ -1118,6 +1118,7 @@ function upgrade_730_pgsql() { $table_quota = table_by_key('quota'); $table_quota2 = table_by_key('quota2'); + db_query_parsed('CREATE LANGUAGE plpgsql', 1); /* will error if plpgsql is already installed */ # trigger for dovecot v1.0 & 1.1 quota table # taken from http://wiki.dovecot.org/Quota/Dict db_query_parsed("