Skip to content

Commit

Permalink
Fix schema migration for 'rhnChannelNewestPackageView'
Browse files Browse the repository at this point in the history
  • Loading branch information
cbbayburt committed Apr 25, 2024
1 parent b3c9aad commit 01c3894
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 01c3894

Please sign in to comment.