schema/spacewalk
Jan Pazdziora
adelton at fedoraproject.org
Mon Jun 11 11:29:43 UTC 2012
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/100-rhnActionImageDeploy_create.sql | 36 ---------
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/100-rhnActionImageDeploy_create.sql.oracle | 36 +++++++++
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/100-rhnActionImageDeploy_create.sql.postgresql | 37 +++++++++
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/102-suseCredentialsType_create.sql | 38 ---------
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/102-suseCredentialsType_create.sql.oracle | 38 +++++++++
schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/102-suseCredentialsType_create.sql.postgresql | 39 ++++++++++
6 files changed, 150 insertions(+), 74 deletions(-)
New commits:
commit 546de4c9f44849d0d4e97e1b84f3e2da00f69500
Author: Jan Pazdziora <jpazdziora at redhat.com>
Date: Mon Jun 11 13:28:26 2012 +0200
The upgrade scripts are not processed with oracle2postgresql, making separate PostgreSQL scripts.
Addressing
psql:/var/log/spacewalk/schema-upgrade/20120610-160132-script.sql:1490: ERROR: syntax error at or near "["
LINE 5: USING INDEX TABLESPACE [[64k_tbs]],
^
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/100-rhnActionImageDeploy_create.sql b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/100-rhnActionImageDeploy_create.sql
deleted file mode 100644
index 960221f..0000000
--- a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/100-rhnActionImageDeploy_create.sql
+++ /dev/null
@@ -1,36 +0,0 @@
---
--- Copyright (c) 2012 Novell
---
--- 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 TABLE rhnActionImageDeploy
-(
- id NUMBER NOT NULL
- CONSTRAINT rhn_aid_id_pk PRIMARY KEY
- USING INDEX TABLESPACE [[64k_tbs]],
- action_id NUMBER NOT NULL
- CONSTRAINT rhn_act_idp_act_fk
- REFERENCES rhnAction (id)
- ON DELETE CASCADE,
- vcpus NUMBER NOT NULL,
- mem_kb NUMBER NOT NULL,
- bridge_device VARCHAR2(32),
- download_url VARCHAR2(256) NOT NULL,
- proxy_server VARCHAR2(64),
- proxy_user VARCHAR2(32),
- proxy_pass VARCHAR2(64)
-)
-ENABLE ROW MOVEMENT
-;
-
-CREATE SEQUENCE rhn_action_image_deploy_id_seq;
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/100-rhnActionImageDeploy_create.sql.oracle b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/100-rhnActionImageDeploy_create.sql.oracle
new file mode 100644
index 0000000..960221f
--- /dev/null
+++ b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/100-rhnActionImageDeploy_create.sql.oracle
@@ -0,0 +1,36 @@
+--
+-- Copyright (c) 2012 Novell
+--
+-- 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 TABLE rhnActionImageDeploy
+(
+ id NUMBER NOT NULL
+ CONSTRAINT rhn_aid_id_pk PRIMARY KEY
+ USING INDEX TABLESPACE [[64k_tbs]],
+ action_id NUMBER NOT NULL
+ CONSTRAINT rhn_act_idp_act_fk
+ REFERENCES rhnAction (id)
+ ON DELETE CASCADE,
+ vcpus NUMBER NOT NULL,
+ mem_kb NUMBER NOT NULL,
+ bridge_device VARCHAR2(32),
+ download_url VARCHAR2(256) NOT NULL,
+ proxy_server VARCHAR2(64),
+ proxy_user VARCHAR2(32),
+ proxy_pass VARCHAR2(64)
+)
+ENABLE ROW MOVEMENT
+;
+
+CREATE SEQUENCE rhn_action_image_deploy_id_seq;
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/100-rhnActionImageDeploy_create.sql.postgresql b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/100-rhnActionImageDeploy_create.sql.postgresql
new file mode 100644
index 0000000..902f970
--- /dev/null
+++ b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/100-rhnActionImageDeploy_create.sql.postgresql
@@ -0,0 +1,37 @@
+-- oracle equivalent source sha1 0de65e35c120c1e99297e281c6860e4b7469e3af
+--
+-- Copyright (c) 2012 Novell
+--
+-- 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 TABLE rhnActionImageDeploy
+(
+ id NUMERIC NOT NULL
+ CONSTRAINT rhn_aid_id_pk PRIMARY KEY
+ ,
+ action_id NUMERIC NOT NULL
+ CONSTRAINT rhn_act_idp_act_fk
+ REFERENCES rhnAction (id)
+ ON DELETE CASCADE,
+ vcpus NUMERIC NOT NULL,
+ mem_kb NUMERIC NOT NULL,
+ bridge_device VARCHAR(32),
+ download_url VARCHAR(256) NOT NULL,
+ proxy_server VARCHAR(64),
+ proxy_user VARCHAR(32),
+ proxy_pass VARCHAR(64)
+)
+
+;
+
+CREATE SEQUENCE rhn_action_image_deploy_id_seq;
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/102-suseCredentialsType_create.sql b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/102-suseCredentialsType_create.sql
deleted file mode 100644
index dc9cae4..0000000
--- a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/102-suseCredentialsType_create.sql
+++ /dev/null
@@ -1,38 +0,0 @@
---
--- Copyright (c) 2012 Novell
---
--- 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 TABLE suseCredentialsType
-(
- id NUMBER NOT NULL
- CONSTRAINT suse_credtype_id_pk PRIMARY KEY
- USING INDEX TABLESPACE [[64k_tbs]],
- label VARCHAR2(64) NOT NULL,
- name VARCHAR2(128) NOT NULL,
- created DATE
- DEFAULT (sysdate) NOT NULL,
- modified DATE
- DEFAULT (sysdate) NOT NULL
-)
-ENABLE ROW MOVEMENT
-;
-
-CREATE INDEX suse_credtype_label_id_idx
- ON suseCredentialsType (label, id)
- TABLESPACE [[64k_tbs]];
-
-CREATE SEQUENCE suse_credtype_id_seq;
-
-ALTER TABLE suseCredentialsType
- ADD CONSTRAINT suse_credtype_label_uq UNIQUE (label);
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/102-suseCredentialsType_create.sql.oracle b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/102-suseCredentialsType_create.sql.oracle
new file mode 100644
index 0000000..dc9cae4
--- /dev/null
+++ b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/102-suseCredentialsType_create.sql.oracle
@@ -0,0 +1,38 @@
+--
+-- Copyright (c) 2012 Novell
+--
+-- 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 TABLE suseCredentialsType
+(
+ id NUMBER NOT NULL
+ CONSTRAINT suse_credtype_id_pk PRIMARY KEY
+ USING INDEX TABLESPACE [[64k_tbs]],
+ label VARCHAR2(64) NOT NULL,
+ name VARCHAR2(128) NOT NULL,
+ created DATE
+ DEFAULT (sysdate) NOT NULL,
+ modified DATE
+ DEFAULT (sysdate) NOT NULL
+)
+ENABLE ROW MOVEMENT
+;
+
+CREATE INDEX suse_credtype_label_id_idx
+ ON suseCredentialsType (label, id)
+ TABLESPACE [[64k_tbs]];
+
+CREATE SEQUENCE suse_credtype_id_seq;
+
+ALTER TABLE suseCredentialsType
+ ADD CONSTRAINT suse_credtype_label_uq UNIQUE (label);
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/102-suseCredentialsType_create.sql.postgresql b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/102-suseCredentialsType_create.sql.postgresql
new file mode 100644
index 0000000..bfef108
--- /dev/null
+++ b/schema/spacewalk/upgrade/spacewalk-schema-1.7-to-spacewalk-schema-1.8/102-suseCredentialsType_create.sql.postgresql
@@ -0,0 +1,39 @@
+-- oracle equivalent source sha1 a2ff718ffd92478d0b7f098398e8dc5ea5f4bb8f
+--
+-- Copyright (c) 2012 Novell
+--
+-- 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 TABLE suseCredentialsType
+(
+ id NUMERIC NOT NULL
+ CONSTRAINT suse_credtype_id_pk PRIMARY KEY
+ ,
+ label VARCHAR(64) NOT NULL,
+ name VARCHAR(128) NOT NULL,
+ created TIMESTAMPTZ
+ DEFAULT (CURRENT_TIMESTAMP) NOT NULL,
+ modified TIMESTAMPTZ
+ DEFAULT (CURRENT_TIMESTAMP) NOT NULL
+)
+
+;
+
+CREATE INDEX suse_credtype_label_id_idx
+ ON suseCredentialsType (label, id)
+ ;
+
+CREATE SEQUENCE suse_credtype_id_seq;
+
+ALTER TABLE suseCredentialsType
+ ADD CONSTRAINT suse_credtype_label_uq UNIQUE (label);
More information about the spacewalk-commits
mailing list