2018-11-13 07:27:31 +00:00
|
|
|
class EnsureMissingColumnsToProjectMirrorData < ActiveRecord::Migration[4.2]
|
2018-05-23 13:46:38 +00:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_column :project_mirror_data, :status, :string unless column_exists?(:project_mirror_data, :status)
|
|
|
|
add_column :project_mirror_data, :jid, :string unless column_exists?(:project_mirror_data, :jid)
|
|
|
|
add_column :project_mirror_data, :last_error, :text unless column_exists?(:project_mirror_data, :last_error)
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
# db/migrate/20180502122856_create_project_mirror_data.rb will remove the table
|
|
|
|
end
|
|
|
|
end
|