diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ab10570a08..672962c1b7 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2011-04-13 Ramon Novoa + + * pandoradb.postgreSQL.sql: Created the UNIX_TIMESTAMP function. + 2011-04-13 Juan Manuel Ramon * include/functions_events.php diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index 159d841be8..02bc32e2c4 100644 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -28,6 +28,7 @@ CREATE 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; CREATE TABLE "taddress" ( "id_a" SERIAL NOT NULL PRIMARY KEY,