Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
fix pgsql upgrade script copy paste error on dbversion (thx ttyS1) #2394
Browse files Browse the repository at this point in the history
refs #2394
  • Loading branch information
Michael Friedrich committed Apr 22, 2012
1 parent d179dea commit 59645a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions module/idoutils/db/pgsql/upgrade/pgsql-upgrade-1.7.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
-- upgrade path for Icinga IDOUtils 1.7.0
--
-- -----------------------------------------
-- Copyright (c) 2011 Icinga Development Team (http://www.icinga.org)
-- Copyright (c) 2012 Icinga Development Team (http://www.icinga.org)
--
-- Please check http://docs.icinga.org for upgrading information!
-- -----------------------------------------

-- -----------------------------------------
--#2274
-- #2274
-- -----------------------------------------
create index statehist_state_idx on icinga_statehistory(object_id,state);

-- -----------------------------------------
--#2203 cannot handle timstamp with timezone
-- #2203 cannot handle timstamp with timezone
-- -----------------------------------------

DROP FUNCTION from_unixtime(integer);
Expand All @@ -29,5 +29,5 @@ CREATE OR REPLACE FUNCTION unix_timestamp(timestamp with time zone) RETURNS bigi
-- update dbversion
-- -----------------------------------------

INSERT INTO icinga_dbversion (name, version) VALUES ('idoutils', '1.7.0') ON DUPLICATE KEY UPDATE version='1.7.0';
SELECT updatedbversion('1.7.0');

0 comments on commit 59645a8

Please sign in to comment.