Update background stages migration timestamp
This commit is contained in:
parent
b50270a54e
commit
1ab0ffe383
|
@ -13,7 +13,7 @@ class ScheduleBuildStageMigration < ActiveRecord::Migration
|
|||
def change
|
||||
Build.where('stage_id IS NULL').each_batch(of: BATCH) do |builds, index|
|
||||
builds.pluck(:id).map { |id| [MIGRATION, [id]] }.tap do |migrations|
|
||||
BackgroundMigrationWorker.perform_bulk_in(index.minutes, migrations)
|
||||
BackgroundMigrationWorker.bulk_perform_in(index.minutes, migrations)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20171230123729) do
|
||||
ActiveRecord::Schema.define(version: 20180105101928) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Gitlab::BackgroundMigration::MigrateBuildStage, :migration, schema: 20171205101928 do
|
||||
describe Gitlab::BackgroundMigration::MigrateBuildStage, :migration, schema: 20180105101928 do
|
||||
let(:projects) { table(:projects) }
|
||||
let(:pipelines) { table(:ci_pipelines) }
|
||||
let(:stages) { table(:ci_stages) }
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'spec_helper'
|
||||
require Rails.root.join('db', 'post_migrate', '20171205101928_schedule_build_stage_migration')
|
||||
require Rails.root.join('db', 'post_migrate', '20180105101928_schedule_build_stage_migration')
|
||||
|
||||
describe ScheduleBuildStageMigration, :migration do
|
||||
let(:projects) { table(:projects) }
|
||||
|
|
Loading…
Reference in New Issue