Sha256: e4de351b834564d80818c0fa53707ed675387d8a3fc3dd1bc6fc02592d3fe786

Contents?: true

Size: 1.32 KB

Versions: 44

Compression:

Stored size: 1.32 KB

Contents

class AddRpm < ActiveRecord::Migration
  def up
    create_table "katello_rpms" do |t|
      t.string "uuid", :null => false, :limit => 255
      t.timestamps
      t.string 'name', :limit => 255
      t.string 'version', :limit => 255
      t.string 'release', :limit => 255
      t.string 'arch', :limit => 255
      t.string 'epoch', :limit => 255
      t.string 'filename', :limit => 255
      t.string 'sourcerpm', :limit => 255
      t.string 'checksum', :limit => 255
      t.string 'version_sortable', :limit => 255
      t.string 'release_sortable', :limit => 255
      t.string 'summary', :limit => 255
    end

    add_index :katello_rpms, :uuid, :unique => true
    add_index :katello_rpms, [:id, :uuid, :name, :version, :release, :arch, :version_sortable, :release_sortable], :name => 'katello_rpms_fields_index'

    create_table "katello_repository_rpms" do |t|
      t.references :rpm, :null => false
      t.references :repository, :null => true
      t.timestamps
    end

    add_index :katello_repository_rpms, [:rpm_id, :repository_id], :unique => true

    add_foreign_key "katello_repository_rpms", "katello_rpms", :column => "rpm_id"
    add_foreign_key "katello_repository_rpms", "katello_repositories", :column => "repository_id"
  end

  def down
    drop_table "katello_repository_rpms"
    drop_table "katello_rpms"
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
katello-3.5.2 db/migrate/20150613134559_add_rpm.rb
katello-3.5.1.1 db/migrate/20150613134559_add_rpm.rb
katello-3.5.1 db/migrate/20150613134559_add_rpm.rb
katello-3.5.0.1 db/migrate/20150613134559_add_rpm.rb
katello-3.5.0 db/migrate/20150613134559_add_rpm.rb
katello-3.5.0.rc2 db/migrate/20150613134559_add_rpm.rb
katello-3.5.0.rc1 db/migrate/20150613134559_add_rpm.rb
katello-3.4.5 db/migrate/20150613134559_add_rpm.rb
katello-3.4.4 db/migrate/20150613134559_add_rpm.rb
katello-3.4.2 db/migrate/20150613134559_add_rpm.rb
katello-3.4.1 db/migrate/20150613134559_add_rpm.rb
katello-3.4.0.2 db/migrate/20150613134559_add_rpm.rb
katello-3.4.0.1 db/migrate/20150613134559_add_rpm.rb
katello-3.3.2 db/migrate/20150613134559_add_rpm.rb
katello-3.4.0 db/migrate/20150613134559_add_rpm.rb
katello-3.4.0.rc2 db/migrate/20150613134559_add_rpm.rb
katello-3.4.0.rc1 db/migrate/20150613134559_add_rpm.rb
katello-3.3.1.1 db/migrate/20150613134559_add_rpm.rb
katello-3.3.1 db/migrate/20150613134559_add_rpm.rb
katello-3.3.0.1 db/migrate/20150613134559_add_rpm.rb