Sha256: c8608b5b86ce3a0000e67794e5602d512f2ff9f73f602901ef9b080f22156763

Contents?: true

Size: 344 Bytes

Versions: 104

Compression:

Stored size: 344 Bytes

Contents

class InstalledPackageBadNvrea < ActiveRecord::Migration[5.2]
  def up
    Katello::InstalledPackage.where(:epoch => "0").find_each do |pkg|
      simple = Katello::Pulp::SimplePackage.new(pkg.attributes)
      if pkg.nvrea != simple.nvrea
        pkg.update_column(:nvrea, simple.nvrea)
      end
    end
  end

  def down
    #noop
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
katello-3.18.0.rc1 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.17.0.rc2.2 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.17.0.rc2.1 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.16.1.2 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.16.1.1 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.17.0.rc2 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.16.1 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.17.0.rc1 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.16.0 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.16.0.rc5.1 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.16.0.rc5 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.16.0.rc4.1 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.15.3.1 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.15.3 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.16.0.rc4 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.16.0.rc3.1 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.15.2 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.16.0.rc3 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.16.0.rc2.1 db/migrate/20200429153103_installed_package_bad_nvrea.rb
katello-3.16.0.rc2 db/migrate/20200429153103_installed_package_bad_nvrea.rb