Skip to content
Snippets Groups Projects
Commit d9708d6c authored by Krasimir Angelov's avatar Krasimir Angelov Committed by Patrick Bair
Browse files

Remove column ignore rules for migrated PKs

parent 62ff6345
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -10,7 +10,6 @@ class Build < Ci::Processable
include Presentable
include Importable
include Ci::HasRef
include IgnorableColumns
 
BuildArchivedError = Class.new(StandardError)
 
Loading
Loading
@@ -70,9 +69,6 @@ class Build < Ci::Processable
delegate :gitlab_deploy_token, to: :project
delegate :trigger_short_token, to: :trigger_request, allow_nil: true
 
ignore_columns :id_convert_to_bigint, remove_with: '14.5', remove_after: '2021-10-22'
ignore_columns :stage_id_convert_to_bigint, remove_with: '14.5', remove_after: '2021-10-22'
##
# Since Gitlab 11.5, deployments records started being created right after
# `ci_builds` creation. We can look up a relevant `environment` through
Loading
Loading
Loading
Loading
@@ -37,8 +37,6 @@ class BuildMetadata < Ci::ApplicationRecord
job_timeout_source: 4
}
 
ignore_column :build_id_convert_to_bigint, remove_with: '14.5', remove_after: '2021-10-22'
ignore_columns :id_convert_to_bigint, remove_with: '14.5', remove_after: '2021-10-22'
ignore_columns :runner_features, remove_with: '14.7', remove_after: '2021-11-22'
 
def update_timeout_state
Loading
Loading
Loading
Loading
@@ -10,9 +10,6 @@ class JobArtifact < Ci::ApplicationRecord
include Artifactable
include FileStoreMounter
include EachBatch
include IgnorableColumns
ignore_columns %i[id_convert_to_bigint job_id_convert_to_bigint], remove_with: '14.5', remove_after: '2021-11-22'
 
TEST_REPORT_FILE_TYPES = %w[junit].freeze
COVERAGE_REPORT_FILE_TYPES = %w[cobertura].freeze
Loading
Loading
Loading
Loading
@@ -4,9 +4,6 @@ module Ci
module Sources
class Pipeline < Ci::ApplicationRecord
include Ci::NamespacedModelName
include IgnorableColumns
ignore_columns 'source_job_id_convert_to_bigint', remove_with: '14.5', remove_after: '2021-11-22'
 
self.table_name = "ci_sources_pipelines"
 
Loading
Loading
Loading
Loading
@@ -9,9 +9,6 @@ class Event < ApplicationRecord
include Gitlab::Utils::StrongMemoize
include UsageStatistics
include ShaAttribute
include IgnorableColumns
ignore_columns :id_convert_to_bigint, remove_with: '14.5', remove_after: '2021-10-22'
 
default_scope { reorder(nil) } # rubocop:disable Cop/DefaultScope
 
Loading
Loading
Loading
Loading
@@ -2,9 +2,6 @@
 
class PushEventPayload < ApplicationRecord
extend SuppressCompositePrimaryKeyWarning
include IgnorableColumns
ignore_columns :event_id_convert_to_bigint, remove_with: '14.4', remove_after: '2021-10-22'
 
include ShaAttribute
 
Loading
Loading
Loading
Loading
@@ -9,7 +9,3 @@
# validate that counter cache is disabled
raise "Counter cache is not disabled" if
ActsAsTaggableOn::Tagging.reflections["tag"].options[:counter_cache]
ActsAsTaggableOn::Tagging.include IgnorableColumns
ActsAsTaggableOn::Tagging.ignore_column :id_convert_to_bigint, remove_with: '14.5', remove_after: '2021-10-22'
ActsAsTaggableOn::Tagging.ignore_column :taggable_id_convert_to_bigint, remove_with: '14.5', remove_after: '2021-10-22'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment