-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into noauthLicense
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
db/migrate/20240129140413_remove_obsolete_res7_repositories.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class RemoveObsoleteRes7Repositories < ActiveRecord::Migration[6.1] | ||
def change | ||
# RES7 was historically a product managed by Novell. With the upcoming | ||
# SUSE Liberty 7, RES7 was moved into IBS (SUSE build service). | ||
# This resulted in repositories being renamed. | ||
# This migration removes the now obsolete repositories, since RMT does | ||
# not remove these automatically. | ||
|
||
# Affected repositories are: | ||
# - 1963: https://updates.suse.com/repo/$RCE/RES7/src/ | ||
# - 1736: https://updates.suse.com/repo/$RCE/RES7/x86_64/ | ||
Repository.where(scc_id: [1963, 1736]).destroy_all | ||
end | ||
end |