diff options
Diffstat (limited to 'db/migrate/20200318183553_create_pypi_package_metadata.rb')
-rw-r--r-- | db/migrate/20200318183553_create_pypi_package_metadata.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20200318183553_create_pypi_package_metadata.rb b/db/migrate/20200318183553_create_pypi_package_metadata.rb new file mode 100644 index 00000000000..3f0204d51ac --- /dev/null +++ b/db/migrate/20200318183553_create_pypi_package_metadata.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +class CreatePypiPackageMetadata < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + create_table :packages_pypi_metadata, id: false do |t| + t.references :package, primary_key: true, index: false, default: nil, foreign_key: { to_table: :packages_packages, on_delete: :cascade }, type: :bigint + t.string "required_python", null: false, limit: 50 + end + end +end |