2018-03-17 18:26:18 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module BackgroundMigration
|
2018-11-08 19:23:39 +05:30
|
|
|
# Background migration for cleaning up a concurrent column type changeb.
|
|
|
|
class CleanupConcurrentTypeChange < CleanupConcurrentSchemaChange
|
2018-03-17 18:26:18 +05:30
|
|
|
RESCHEDULE_DELAY = 10.minutes
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
def cleanup_concurrent_schema_change(table, old_column, new_column)
|
|
|
|
cleanup_concurrent_column_type_change(table, old_column)
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|