schema/spacewalk

Jan Pazdziora adelton at fedoraproject.org
Tue Oct 12 19:07:55 UTC 2010


 schema/spacewalk/common/tables/rhn_url_probe.sql                                                    |    3 ---
 schema/spacewalk/upgrade/spacewalk-schema-1.1-to-spacewalk-schema-1.2/222-rhn_url_probe-indexes.sql |    3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 200fcd4c3689b886b464eca8235401bb1c8742f8
Author: Jan Pazdziora <jpazdziora at redhat.com>
Date:   Tue Oct 12 21:07:44 2010 +0200

    We already have primary key on probe_id, no point having index on (probe_id, probe_type) (rhn_url_probe this time).

diff --git a/schema/spacewalk/common/tables/rhn_url_probe.sql b/schema/spacewalk/common/tables/rhn_url_probe.sql
index 2dd0d78..5a3edee 100644
--- a/schema/spacewalk/common/tables/rhn_url_probe.sql
+++ b/schema/spacewalk/common/tables/rhn_url_probe.sql
@@ -50,9 +50,6 @@ ENABLE ROW MOVEMENT
 
 COMMENT ON TABLE rhn_url_probe IS 'urlpb  url probe';
 
-CREATE INDEX rhn_url_probe_pid_ptype_idx
-    ON rhn_url_probe (probe_id, probe_type);
-
 ALTER TABLE rhn_url_probe
     ADD CONSTRAINT rhn_urlpb_probe_pr_id_pr_fk FOREIGN KEY (probe_id, probe_type)
     REFERENCES rhn_probe (recid, probe_type)
diff --git a/schema/spacewalk/upgrade/spacewalk-schema-1.1-to-spacewalk-schema-1.2/222-rhn_url_probe-indexes.sql b/schema/spacewalk/upgrade/spacewalk-schema-1.1-to-spacewalk-schema-1.2/222-rhn_url_probe-indexes.sql
new file mode 100644
index 0000000..f8c3359
--- /dev/null
+++ b/schema/spacewalk/upgrade/spacewalk-schema-1.1-to-spacewalk-schema-1.2/222-rhn_url_probe-indexes.sql
@@ -0,0 +1,3 @@
+
+drop index rhn_url_probe_pid_ptype_idx;
+




More information about the spacewalk-commits mailing list