From 7921fca57874688a421ddf21cefec8f63c45697f Mon Sep 17 00:00:00 2001 From: jsatoh Date: Sat, 14 Apr 2012 12:16:34 +0000 Subject: [PATCH] 2012-04-14 Junichi Satoh * pandoradb.postgreSQL.sql: Fixed database creation failure with version 9.0 or later of PostgreSQL. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5973 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/pandoradb.postgreSQL.sql | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2c03201604..69133f6382 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-04-14 Junichi Satoh + + * pandoradb.postgreSQL.sql: Fixed database creation failure with + version 9.0 or later of PostgreSQL. + 2012-04-14 Junichi Satoh * operation/agentes/stat_win.php: Fixed i18n support. Changed diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index f91419f730..4de8b19da0 100644 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -26,7 +26,7 @@ --\c "pandora" -CREATE LANGUAGE plpgsql; +CREATE OR REPLACE LANGUAGE plpgsql; CREATE OR REPLACE FUNCTION unix_timestamp(TIMESTAMP without time zone = CURRENT_TIMESTAMP) RETURNS double precision AS 'SELECT ceil(date_part(''epoch'', $1)); ' LANGUAGE SQL;