Sha256: 90be5baa1afb2db2fb9ff4c4b8f9018215edb8be1b0d78db8ed7fca2d21db6e7

Contents?: true

Size: 679 Bytes

Versions: 101

Compression:

Stored size: 679 Bytes

Contents

class AddTypeAndFromCvvToCvvExportHistory < ActiveRecord::Migration[6.0]
  def change
    add_column :katello_content_view_version_export_histories,
               :export_type, :string,
               :default => ::Katello::ContentViewVersionExportHistory::COMPLETE, :null => false
    add_index :katello_content_view_version_export_histories, :export_type, name: 'katello_cvveh_export_type'

    ::Katello::ContentViewVersionExportHistory.reset_column_information
    ::Katello::ContentViewVersionExportHistory.all.each do |cvve|
      next if cvve.export_type == cvve.export_type_from_metadata
      cvve.update!(export_type: cvve.export_type_from_metadata)
    end
  end
end

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
katello-4.14.2 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.15.0 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.15.0.rc2 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.15.0.rc1 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.14.1 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.14.0 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.14.0.rc3 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.14.0.rc2 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.14.0.rc1.1 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.14.0.rc1 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.13.1 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.13.0 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.12.1 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.13.0.rc1 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.12.0 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.12.0.rc3 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.12.0.rc2 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.12.0.rc1 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.11.1 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb
katello-4.11.0 db/migrate/20210128231228_add_type_and_from_cvv_to_cvv_export_history.rb