2014-07-21 Miguel de Dios <miguel.dedios@artica.es>

* pandoradb.postgreSQL.sql: fixed the SQL.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10344 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2014-07-21 12:24:16 +00:00
parent e961f3dca9
commit 0394512d2e
2 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2014-07-21 Miguel de Dios <miguel.dedios@artica.es>
* pandoradb.postgreSQL.sql: fixed the SQL.
2014-07-18 Miguel de Dios <miguel.dedios@artica.es> 2014-07-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_graph.php, include/functions_reporting.php: * include/functions_graph.php, include/functions_reporting.php:

View File

@ -26,7 +26,8 @@
--\c "pandora" --\c "pandora"
CREATE OR REPLACE LANGUAGE plpgsql; -- For previous PostgreSQL version 9.0
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 OR REPLACE FUNCTION unix_timestamp(TIMESTAMP without time zone = CURRENT_TIMESTAMP) RETURNS double precision AS 'SELECT ceil(date_part(''epoch'', $1)); ' LANGUAGE SQL;
@ -240,10 +241,10 @@ CREATE TABLE "tagente_modulo" (
"disabled_types_event" TEXT default '', "disabled_types_event" TEXT default '',
"module_macros" TEXT default '', "module_macros" TEXT default '',
"min_ff_event_normal" INTEGER default 0, "min_ff_event_normal" INTEGER default 0,
"min_ff_event_warning" INTEGER default 0, "min_ff_event_warning" INTEGER default 0,
"min_ff_event_critical" INTEGER default 0, "min_ff_event_critical" INTEGER default 0,
"each_ff" SMALLINT default 0, "each_ff" SMALLINT default 0,
"ff_timeout" INTEGER unsigned default 0 "ff_timeout" INTEGER default 0
); );
CREATE INDEX "tagente_modulo_id_agente_idx" ON "tagente_modulo"("id_agente"); CREATE INDEX "tagente_modulo_id_agente_idx" ON "tagente_modulo"("id_agente");
CREATE INDEX "tagente_modulo_id_tipo_modulo_idx" ON "tagente_modulo"("id_tipo_modulo"); CREATE INDEX "tagente_modulo_id_tipo_modulo_idx" ON "tagente_modulo"("id_tipo_modulo");
@ -1595,7 +1596,7 @@ CREATE TABLE "tpassword_history" (
-- ----------------------------------------------------- -- -----------------------------------------------------
-- Table `tevent_response` -- Table `tevent_response`
-- ----------------------------------------------------- -- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS "tevent_response" ( CREATE TABLE "tevent_response" (
"id" SERIAL NOT NULL PRIMARY KEY, "id" SERIAL NOT NULL PRIMARY KEY,
"name" varchar(600) NOT NULL default '', "name" varchar(600) NOT NULL default '',
"description" TEXT, "description" TEXT,
@ -1611,7 +1612,7 @@ CREATE TABLE IF NOT EXISTS "tevent_response" (
-- --------------------------------------------------------------------- -- ---------------------------------------------------------------------
-- Table "tcategory" -- Table "tcategory"
-- --------------------------------------------------------------------- -- ---------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS "tcategory" ( CREATE TABLE "tcategory" (
"id" SERIAL NOT NULL PRIMARY KEY, "id" SERIAL NOT NULL PRIMARY KEY,
"name" varchar(600) NOT NULL default '' "name" varchar(600) NOT NULL default ''
); );