Adds migration to ensure the new project_mirror_data columns are indeed added to the table
This commit is contained in:
parent
2fdf15dd97
commit
9b058b8d42
1 changed files with 15 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
class AddMissingColumnsToProjectMirrorData < ActiveRecord::Migration
|
||||
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
|
Loading…
Reference in a new issue