schema/spacewalk/postgres/start.sql.91
| 18 ++++++++++
schema/spacewalk/spacewalk-schema.spec
| 3 +
schema/spacewalk/upgrade/spacewalk-schema-1.6-to-spacewalk-schema-1.7/109-dblink.sql.postgresql.91
| 4 ++
3 files changed, 25 insertions(+)
New commits:
commit 6b920c5c232e726ed62abe55fae9c4dc337dde72
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Thu Mar 1 15:48:55 2012 +0100
On Fedora 16, we need to create extension dblink.
diff --git a/schema/spacewalk/postgres/start.sql.91
b/schema/spacewalk/postgres/start.sql.91
new file mode 100644
index 0000000..3062fa2
--- /dev/null
+++ b/schema/spacewalk/postgres/start.sql.91
@@ -0,0 +1,18 @@
+-- oracle equivalent source sha1 604ef37f8a2e6483e9592bed94937378d2189dc6
+--
+-- Copyright (c) 2010--2012 Red Hat, Inc.
+--
+-- This software is licensed to you under the GNU General Public License,
+-- version 2 (GPLv2). There is NO WARRANTY for this software, express or
+-- implied, including the implied warranties of MERCHANTABILITY or FITNESS
+-- FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
+-- along with this software; if not, see
+--
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
+--
+-- Red Hat trademarks are not licensed under GPLv2. No permission is
+-- granted to use or replicate Red Hat trademarks that are incorporated
+-- in this software or its documentation.
+--
+
+create extension dblink;
+
diff --git a/schema/spacewalk/spacewalk-schema.spec
b/schema/spacewalk/spacewalk-schema.spec
index 6b0387e..d705d1b 100644
--- a/schema/spacewalk/spacewalk-schema.spec
+++ b/schema/spacewalk/spacewalk-schema.spec
@@ -30,6 +30,9 @@ Oracle tablespace name conversions have NOT been applied.
%setup -q
%build
+%if 0%{?fedora} >= 16
+find . -name '*.91' | while read i ; do mv $i ${i%%.91} ; done
+%endif
make -f Makefile.schema SCHEMA=%{name} VERSION=%{version} RELEASE=%{release}
pod2man spacewalk-schema-upgrade spacewalk-schema-upgrade.1
pod2man spacewalk-sql spacewalk-sql.1
diff --git
a/schema/spacewalk/upgrade/spacewalk-schema-1.6-to-spacewalk-schema-1.7/109-dblink.sql.postgresql.91
b/schema/spacewalk/upgrade/spacewalk-schema-1.6-to-spacewalk-schema-1.7/109-dblink.sql.postgresql.91
new file mode 100644
index 0000000..10d4990
--- /dev/null
+++
b/schema/spacewalk/upgrade/spacewalk-schema-1.6-to-spacewalk-schema-1.7/109-dblink.sql.postgresql.91
@@ -0,0 +1,4 @@
+-- oracle equivalent source sha1 b14267384bc104605623a41b755e68e0103b5aa8
+
+create extension dblink;
+