2017-12-21 15:44:07 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module BackgroundMigration
|
2018-06-22 13:26:01 +00:00
|
|
|
# Background migration for cleaning up a concurrent column type changeb.
|
|
|
|
class CleanupConcurrentTypeChange < CleanupConcurrentSchemaChange
|
2017-12-21 15:44:07 +00:00
|
|
|
RESCHEDULE_DELAY = 10.minutes
|
|
|
|
|
2018-06-22 13:26:01 +00:00
|
|
|
def cleanup_concurrent_schema_change(table, old_column, new_column)
|
|
|
|
cleanup_concurrent_column_type_change(table, old_column)
|
2017-12-21 15:44:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|