debian-mirror-gitlab/db/migrate/20221101174816_create_package_metadata.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
346 B
Ruby
Raw Normal View History

2023-03-04 22:38:38 +05:30
# frozen_string_literal: true
class CreatePackageMetadata < Gitlab::Database::Migration[2.0]
def change
create_table :pm_packages do |t|
t.integer :purl_type, null: false, limit: 2
t.text :name, null: false, limit: 255
t.index [:purl_type, :name], unique: true, name: 'i_pm_packages_purl_type_and_name'
end
end
end