diff --git a/schema/spacewalk/upgrade/susemanager-schema-1.7.56.13-to-susemanager-schema-1.7.56.18/01_123-rhnChannelNewestPackageView.sql b/schema/spacewalk/upgrade/susemanager-schema-1.7.56.13-to-susemanager-schema-1.7.56.18/01_123-rhnChannelNewestPackageView.sql index f845d2f29d76..87188d35c48e 100644 --- a/schema/spacewalk/upgrade/susemanager-schema-1.7.56.13-to-susemanager-schema-1.7.56.18/01_123-rhnChannelNewestPackageView.sql +++ b/schema/spacewalk/upgrade/susemanager-schema-1.7.56.13-to-susemanager-schema-1.7.56.18/01_123-rhnChannelNewestPackageView.sql @@ -17,9 +17,8 @@ -- -- this is much more readable with ts=4, enjoy! -create or replace view -rhnChannelNewestPackageView -as +DROP VIEW IF EXISTS rhnChannelNewestPackageView; +CREATE VIEW rhnChannelNewestPackageView AS SELECT channel_id, name_id, evr_id, diff --git a/schema/spacewalk/upgrade/susemanager-schema-1.7.56.20-to-susemanager-schema-1.7.57/00_015-evr_t-max-replace.sql b/schema/spacewalk/upgrade/susemanager-schema-1.7.56.20-to-susemanager-schema-1.7.57/00_015-evr_t-max-replace.sql index d1bfac9a2c03..412598bd9044 100644 --- a/schema/spacewalk/upgrade/susemanager-schema-1.7.56.20-to-susemanager-schema-1.7.57/00_015-evr_t-max-replace.sql +++ b/schema/spacewalk/upgrade/susemanager-schema-1.7.56.20-to-susemanager-schema-1.7.57/00_015-evr_t-max-replace.sql @@ -12,9 +12,8 @@ rhnServerNeededView AS select 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 from dual; -create or replace view -rhnChannelNewestPackageView -as +DROP VIEW IF EXISTS rhnChannelNewestPackageView; +CREATE VIEW rhnChannelNewestPackageView AS SELECT 1.0 as channel_id, 1.0 as name_id, 1.0 as evr_id, diff --git a/schema/spacewalk/upgrade/susemanager-schema-4.2.9-to-susemanager-schema-4.2.10/015-ignore-retracted-pkgs-in-newest-pkgs-view.sql b/schema/spacewalk/upgrade/susemanager-schema-4.2.9-to-susemanager-schema-4.2.10/015-ignore-retracted-pkgs-in-newest-pkgs-view.sql index 75c369cf27ae..737d5611a778 100644 --- a/schema/spacewalk/upgrade/susemanager-schema-4.2.9-to-susemanager-schema-4.2.10/015-ignore-retracted-pkgs-in-newest-pkgs-view.sql +++ b/schema/spacewalk/upgrade/susemanager-schema-4.2.9-to-susemanager-schema-4.2.10/015-ignore-retracted-pkgs-in-newest-pkgs-view.sql @@ -9,9 +9,8 @@ -- http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. -- -create or replace view -rhnChannelNewestPackageView -as +DROP VIEW IF EXISTS rhnChannelNewestPackageView; +CREATE VIEW rhnChannelNewestPackageView AS SELECT channel_id, name_id, evr_id, diff --git a/schema/spacewalk/upgrade/susemanager-schema-4.3.17-to-susemanager-schema-4.3.18/000-ptf-package-visibility.sql b/schema/spacewalk/upgrade/susemanager-schema-4.3.17-to-susemanager-schema-4.3.18/000-ptf-package-visibility.sql index faa26b23c83c..fc5fbf0b16e4 100644 --- a/schema/spacewalk/upgrade/susemanager-schema-4.3.17-to-susemanager-schema-4.3.18/000-ptf-package-visibility.sql +++ b/schema/spacewalk/upgrade/susemanager-schema-4.3.17-to-susemanager-schema-4.3.18/000-ptf-package-visibility.sql @@ -13,9 +13,8 @@ CREATE OR REPLACE VIEW susePackageExcludingPartOfPtf AS ; -- Update the view for the newest package to exclude packages part of a PTF -create or replace view -rhnChannelNewestPackageView -as +DROP VIEW IF EXISTS rhnChannelNewestPackageView; +CREATE VIEW rhnChannelNewestPackageView AS SELECT channel_id, name_id, evr_id, diff --git a/schema/spacewalk/upgrade/susemanager-schema-4.3.4-to-susemanager-schema-4.3.5/030-rhnChannelNewestPackageView-fix-duplicates.sql b/schema/spacewalk/upgrade/susemanager-schema-4.3.4-to-susemanager-schema-4.3.5/030-rhnChannelNewestPackageView-fix-duplicates.sql index 06cfceca2bc2..2e21f39caa7f 100644 --- a/schema/spacewalk/upgrade/susemanager-schema-4.3.4-to-susemanager-schema-4.3.5/030-rhnChannelNewestPackageView-fix-duplicates.sql +++ b/schema/spacewalk/upgrade/susemanager-schema-4.3.4-to-susemanager-schema-4.3.5/030-rhnChannelNewestPackageView-fix-duplicates.sql @@ -1,6 +1,5 @@ -create or replace view -rhnChannelNewestPackageView -as +DROP VIEW IF EXISTS rhnChannelNewestPackageView; +CREATE VIEW rhnChannelNewestPackageView AS SELECT channel_id, name_id, evr_id, diff --git a/schema/spacewalk/upgrade/susemanager-schema-4.4.3-to-susemanager-schema-4.4.4/400-ptf-package-visibility.sql b/schema/spacewalk/upgrade/susemanager-schema-4.4.3-to-susemanager-schema-4.4.4/400-ptf-package-visibility.sql index faa26b23c83c..fc5fbf0b16e4 100644 --- a/schema/spacewalk/upgrade/susemanager-schema-4.4.3-to-susemanager-schema-4.4.4/400-ptf-package-visibility.sql +++ b/schema/spacewalk/upgrade/susemanager-schema-4.4.3-to-susemanager-schema-4.4.4/400-ptf-package-visibility.sql @@ -13,9 +13,8 @@ CREATE OR REPLACE VIEW susePackageExcludingPartOfPtf AS ; -- Update the view for the newest package to exclude packages part of a PTF -create or replace view -rhnChannelNewestPackageView -as +DROP VIEW IF EXISTS rhnChannelNewestPackageView; +CREATE VIEW rhnChannelNewestPackageView AS SELECT channel_id, name_id, evr_id,