2019-02-15 15:39:39 +05:30
|
|
|
class AddFurtherScopeColumnsToInternalIdTable < ActiveRecord::Migration[4.2]
|
2018-10-15 14:42:47 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
|
|
|
change_column_null :internal_ids, :project_id, true
|
|
|
|
add_column :internal_ids, :namespace_id, :integer, null: true
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
change_column_null :internal_ids, :project_id, false
|
|
|
|
remove_column :internal_ids, :namespace_id
|
|
|
|
end
|
|
|
|
end
|