rspec migration pg12 4/9
Passed Started
by
@godfat-gitlab

Lin Jen-Shin
1 -> 0.0026s2 -> 0.0266s3-- execute("CREATE FUNCTION table_sync_function_29bc99d6db()\nRETURNS TRIGGER AS\n$$\nBEGIN\nIF (TG_OP = 'DELETE') THEN\n DELETE FROM web_hook_logs_part_0c5294f417 where id = OLD.id;\nELSIF (TG_OP = 'UPDATE') THEN\n UPDATE web_hook_logs_part_0c5294f417\n SET web_hook_id = NEW.web_hook_id,\n trigger = NEW.trigger,\n url = NEW.url,\n request_headers = NEW.request_headers,\n request_data = NEW.request_data,\n response_headers = NEW.response_headers,\n response_body = NEW.response_body,\n response_status = NEW.response_status,\n execution_duration = NEW.execution_duration,\n internal_error_message = NEW.internal_error_message,\n updated_at = NEW.updated_at,\n created_at = NEW.created_at\n WHERE web_hook_logs_part_0c5294f417.id = NEW.id;\nELSIF (TG_OP = 'INSERT') THEN\n INSERT INTO web_hook_logs_part_0c5294f417 (id,\n web_hook_id,\n trigger,\n url,\n request_headers,\n request_data,\n response_headers,\n response_body,\n response_status,\n execution_duration,\n internal_error_message,\n updated_at,\n created_at)\n VALUES (NEW.id,\n NEW.web_hook_id,\n NEW.trigger,\n NEW.url,\n NEW.request_headers,\n NEW.request_data,\n NEW.response_headers,\n NEW.response_body,\n NEW.response_status,\n NEW.execution_duration,\n NEW.internal_error_message,\n NEW.updated_at,\n NEW.created_at);\nEND IF;\nRETURN NULL;\n\nEND\n$$ LANGUAGE PLPGSQL\n")4 -> 0.0009s5-- execute("COMMENT ON FUNCTION table_sync_function_29bc99d6db IS 'Partitioning migration: table sync for web_hook_logs table'")6 -> 0.0006s7-- current_schema()8 -> 0.0004s9-- execute("CREATE TRIGGER table_sync_trigger_b99eb6998c\nAFTER INSERT OR UPDATE OR DELETE ON web_hook_logs\nFOR EACH ROW\nEXECUTE FUNCTION table_sync_function_29bc99d6db()\n")10 -> 0.0007s11== 20210306121300 PartitionWebHookLogs: migrated (0.0498s) ====================12== 20210306121310 BackfillPartitionedWebHookLogs: migrating ===================13-- transaction_open?()14 -> 0.0000s15-- Scheduled 0 ::Gitlab::Database::PartitioningMigrationHelpers::BackfillPartitionedTable jobs with a maximum of 50000 records per batch and an interval of 120 seconds.16The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:09 UTC."17== 20210306121310 BackfillPartitionedWebHookLogs: migrated (0.0200s) ==========18== 20210308125742 AddInfoColumnIntoSecurityScansTable: migrating ==============19-- add_column(:security_scans, :info, :jsonb, {:null=>false, :default=>{}})20 -> 0.0026s21== 20210308125742 AddInfoColumnIntoSecurityScansTable: migrated (0.0027s) =====22== 20210308175224 ChangeNamespaceSettingsDelayedProjectRemovalNull: migrating =23-- change_column(:namespace_settings, :delayed_project_removal, :boolean, {:null=>true, :default=>nil})24 -> 0.0015s25== 20210308175224 ChangeNamespaceSettingsDelayedProjectRemovalNull: migrated (0.0016s) 26== 20210308175225 AddLockDelayedProjectRemovalToNamespaceSettings: migrating ==27-- add_column(:namespace_settings, :lock_delayed_project_removal, :boolean, {:default=>false, :null=>false})28 -> 0.0018s29== 20210308175225 AddLockDelayedProjectRemovalToNamespaceSettings: migrated (0.0019s) 30== 20210308175226 AddDelayedProjectRemovalToApplicationSettings: migrating ====31-- add_column(:application_settings, :delayed_project_removal, :boolean, {:default=>false, :null=>false})32 -> 0.0026s33== 20210308175226 AddDelayedProjectRemovalToApplicationSettings: migrated (0.0027s) 34== 20210308175227 AddLockDelayedProjectRemovalToApplicationSettings: migrating 35-- add_column(:application_settings, :lock_delayed_project_removal, :boolean, {:default=>false, :null=>false})36 -> 0.0026s37== 20210308175227 AddLockDelayedProjectRemovalToApplicationSettings: migrated (0.0028s) 38== 20210308190413 ChangeBatchedBackgroundMigrationsBatchClassNameDefault: migrating 39-- change_column_default(:batched_background_migrations, :batch_class_name, {:from=>"Gitlab::Database::BackgroundMigration::PrimaryKeyBatchingStrategy", :to=>"PrimaryKeyBatchingStrategy"})40 -> 0.0034s41== 20210308190413 ChangeBatchedBackgroundMigrationsBatchClassNameDefault: migrated (0.0036s) 42== 20210309160106 AddAdminModeToApplicationSetting: migrating =================43-- add_column(:application_settings, :admin_mode, :boolean, {:default=>false, :null=>false})44 -> 0.0027s45== 20210309160106 AddAdminModeToApplicationSetting: migrated (0.0028s) ========46== 20210309181019 AddLastUsedAtToClusterAgentToken: migrating =================47-- add_column(:cluster_agent_tokens, :last_used_at, :datetime_with_timezone)48 -> 0.0012s49== 20210309181019 AddLastUsedAtToClusterAgentToken: migrated (0.0014s) ========50== 20210310000627 AddIdxVulnerabilityOccurrencesDedup: migrating ==============51-- transaction_open?()52 -> 0.0000s53-- index_exists?(:vulnerability_occurrences, [:project_id, :report_type, :project_fingerprint], {:name=>"index_vulnerability_occurrences_deduplication", :algorithm=>:concurrently})54 -> 0.0052s55-- add_index(:vulnerability_occurrences, [:project_id, :report_type, :project_fingerprint], {:name=>"index_vulnerability_occurrences_deduplication", :algorithm=>:concurrently})56 -> 0.0019s57== 20210310000627 AddIdxVulnerabilityOccurrencesDedup: migrated (0.0091s) =====58== 20210310111009 AddSettingsToGroupMergeRequestApprovalSettings: migrating ===59-- change_table(:group_merge_request_approval_settings, {:bulk=>true})60 -> 0.0032s61== 20210310111009 AddSettingsToGroupMergeRequestApprovalSettings: migrated (0.0034s) 62== 20210311022012 AddTextLimitsToDastSiteProfiles: migrating ==================63-- transaction_open?()64 -> 0.0000s65-- current_schema()66 -> 0.0005s67-- execute("ALTER TABLE dast_site_profiles\nADD CONSTRAINT check_d446f7047b\nCHECK ( char_length(auth_url) <= 1024 )\nNOT VALID;\n")68 -> 0.0009s69-- current_schema()70 -> 0.0005s71-- execute("ALTER TABLE dast_site_profiles VALIDATE CONSTRAINT check_d446f7047b;")72 -> 0.0007s73-- transaction_open?()74 -> 0.0000s75-- current_schema()76 -> 0.0005s77-- execute("ALTER TABLE dast_site_profiles\nADD CONSTRAINT check_5203110fee\nCHECK ( char_length(auth_username_field) <= 255 )\nNOT VALID;\n")78 -> 0.0009s79-- current_schema()80 -> 0.0005s81-- execute("ALTER TABLE dast_site_profiles VALIDATE CONSTRAINT check_5203110fee;")82 -> 0.0008s83-- transaction_open?()84 -> 0.0000s85-- current_schema()86 -> 0.0004s87-- execute("ALTER TABLE dast_site_profiles\nADD CONSTRAINT check_c329dffdba\nCHECK ( char_length(auth_password_field) <= 255 )\nNOT VALID;\n")88 -> 0.0009s89-- current_schema()90 -> 0.0005s91-- execute("ALTER TABLE dast_site_profiles VALIDATE CONSTRAINT check_c329dffdba;")92 -> 0.0008s93-- transaction_open?()94 -> 0.0000s95-- current_schema()96 -> 0.0004s97-- execute("ALTER TABLE dast_site_profiles\nADD CONSTRAINT check_f22f18002a\nCHECK ( char_length(auth_username) <= 255 )\nNOT VALID;\n")98 -> 0.0009s99-- current_schema()100 -> 0.0005s101-- execute("ALTER TABLE dast_site_profiles VALIDATE CONSTRAINT check_f22f18002a;")102 -> 0.0009s103== 20210311022012 AddTextLimitsToDastSiteProfiles: migrated (0.0355s) =========104== 20210311045138 SetTraversalIdsForGitlabOrgGroupStaging: migrating ==========105== 20210311045138 SetTraversalIdsForGitlabOrgGroupStaging: migrated (0.0000s) =106== 20210311045139 SetTraversalIdsForGitlabOrgGroupCom: migrating ==============107== 20210311045139 SetTraversalIdsForGitlabOrgGroupCom: migrated (0.0001s) =====108== 20210311093723 AddPartialIndexOnCiPipelinesByCancelableStatusAndUsers: migrating 109-- transaction_open?()110 -> 0.0000s111-- index_exists?(:ci_pipelines, [:user_id, :id], {:where=>"((status)::text = ANY (\n ARRAY[\n ('running'::character varying)::text,\n ('waiting_for_resource'::character varying)::text,\n ('preparing'::character varying)::text,\n ('pending'::character varying)::text,\n ('created'::character varying)::text,\n ('scheduled'::character varying)::text\n ]\n))\n", :name=>"index_ci_pipelines_on_user_id_and_id_and_cancelable_status", :algorithm=>:concurrently})112 -> 0.0119s113-- add_index(:ci_pipelines, [:user_id, :id], {:where=>"((status)::text = ANY (\n ARRAY[\n ('running'::character varying)::text,\n ('waiting_for_resource'::character varying)::text,\n ('preparing'::character varying)::text,\n ('pending'::character varying)::text,\n ('created'::character varying)::text,\n ('scheduled'::character varying)::text\n ]\n))\n", :name=>"index_ci_pipelines_on_user_id_and_id_and_cancelable_status", :algorithm=>:concurrently})114 -> 0.0021s115== 20210311093723 AddPartialIndexOnCiPipelinesByCancelableStatusAndUsers: migrated (0.0163s) 116== 20210311120152 AddMetricsToBatchedBackgroundMigrationJobs: migrating =======117-- add_column(:batched_background_migration_jobs, :metrics, :jsonb, {:null=>false, :default=>{}})118 -> 0.0026s119== 20210311120152 AddMetricsToBatchedBackgroundMigrationJobs: migrated (0.0027s) 120== 20210311120153 InitializeConversionOfEventsIdToBigint: migrating ===========121-- table_exists?(:events)122 -> 0.0013s123-- column_exists?(:events, :id)124 -> 0.0021s125-- column_exists?(:events, :id)126 -> 0.0020s127-- columns(:events)128 -> 0.0020s129-- add_column(:events, "id_convert_to_bigint", :bigint, {:default=>0, :null=>false})130 -> 0.0015s131== 20210311120153 InitializeConversionOfEventsIdToBigint: migrated (0.0141s) ==132== 20210311120154 InitializeConversionOfPushEventPayloadsEventIdToBigint: migrating 133-- table_exists?(:push_event_payloads)134 -> 0.0013s135-- column_exists?(:push_event_payloads, :event_id)136 -> 0.0018s137-- column_exists?(:push_event_payloads, :event_id)138 -> 0.0017s139-- columns(:push_event_payloads)140 -> 0.0019s141-- add_column(:push_event_payloads, "event_id_convert_to_bigint", :bigint, {:default=>0, :null=>false})142 -> 0.0014s143== 20210311120154 InitializeConversionOfPushEventPayloadsEventIdToBigint: migrated (0.0134s) 144== 20210311120155 BackfillEventsIdForBigintConversion: migrating ==============145-- table_exists?(:events)146 -> 0.0012s147-- column_exists?(:events, :id)148 -> 0.0021s149-- column_exists?(:events, :id)150 -> 0.0019s151-- column_exists?(:events, "id_convert_to_bigint")152 -> 0.0020s153== 20210311120155 BackfillEventsIdForBigintConversion: migrated (0.0278s) =====154== 20210311120156 BackfillPushEventPayloadEventIdForBigintConversion: migrating 155-- table_exists?(:push_event_payloads)156 -> 0.0013s157-- column_exists?(:push_event_payloads, :event_id)158 -> 0.0019s159-- column_exists?(:push_event_payloads, :event_id)160 -> 0.0018s161-- column_exists?(:push_event_payloads, "event_id_convert_to_bigint")162 -> 0.0017s163== 20210311120156 BackfillPushEventPayloadEventIdForBigintConversion: migrated (0.0131s) 164== 20210312140029 AddOwnerAndIdIndexOnActiveCiPipelineSchedules: migrating ====165-- transaction_open?()166 -> 0.0000s167-- index_exists?(:ci_pipeline_schedules, [:owner_id, :id], {:where=>"active = TRUE", :name=>"index_ci_pipeline_schedules_on_owner_id_and_id_and_active", :algorithm=>:concurrently})168 -> 0.0032s169-- add_index(:ci_pipeline_schedules, [:owner_id, :id], {:where=>"active = TRUE", :name=>"index_ci_pipeline_schedules_on_owner_id_and_id_and_active", :algorithm=>:concurrently})170 -> 0.0016s171== 20210312140029 AddOwnerAndIdIndexOnActiveCiPipelineSchedules: migrated (0.0066s) 172== 20210312174321 AddEnforcedGitCheckToSamlProvider: migrating ================173-- add_column(:saml_providers, :git_check_enforced, :boolean, {:default=>false, :null=>false})174 -> 0.0018s175== 20210312174321 AddEnforcedGitCheckToSamlProvider: migrated (0.0020s) =======176== 20210312193532 AddResourceAccessTokenCreationAllowedToNamespaceSettings: migrating 177-- add_column(:namespace_settings, :resource_access_token_creation_allowed, :boolean, {:default=>true, :null=>false})178 -> 0.0014s179== 20210312193532 AddResourceAccessTokenCreationAllowedToNamespaceSettings: migrated (0.0043s) 180== 20210313045617 AddVerificationStateAndStartedAtToSnippetRepositories: migrating 181-- change_table(:snippet_repositories, {})182 -> 0.0025s183== 20210313045617 AddVerificationStateAndStartedAtToSnippetRepositories: migrated (0.0026s) 184== 20210313045845 AddVerificationIndexesToSnippetRepositories: migrating ======185-- transaction_open?()186 -> 0.0000s187-- index_exists?(:snippet_repositories, :verification_state, {:name=>"index_snippet_repositories_verification_state", :algorithm=>:concurrently})188 -> 0.0028s189-- add_index(:snippet_repositories, :verification_state, {:name=>"index_snippet_repositories_verification_state", :algorithm=>:concurrently})190 -> 0.0015s191-- transaction_open?()192 -> 0.0000s193-- index_exists?(:snippet_repositories, :verified_at, {:where=>"(verification_state = 0)", :order=>{:verified_at=>"ASC NULLS FIRST"}, :name=>"index_snippet_repositories_pending_verification", :algorithm=>:concurrently})194 -> 0.0030s195-- add_index(:snippet_repositories, :verified_at, {:where=>"(verification_state = 0)", :order=>{:verified_at=>"ASC NULLS FIRST"}, :name=>"index_snippet_repositories_pending_verification", :algorithm=>:concurrently})196 -> 0.0018s197-- transaction_open?()198 -> 0.0000s199-- index_exists?(:snippet_repositories, :verification_retry_at, {:where=>"(verification_state = 3)", :order=>{:verification_retry_at=>"ASC NULLS FIRST"}, :name=>"index_snippet_repositories_failed_verification", :algorithm=>:concurrently})200 -> 0.0034s201-- add_index(:snippet_repositories, :verification_retry_at, {:where=>"(verification_state = 3)", :order=>{:verification_retry_at=>"ASC NULLS FIRST"}, :name=>"index_snippet_repositories_failed_verification", :algorithm=>:concurrently})202 -> 0.0017s203-- transaction_open?()204 -> 0.0000s205-- index_exists?(:snippet_repositories, :verification_state, {:where=>"(verification_state = 0 OR verification_state = 3)", :name=>"index_snippet_repositories_needs_verification", :algorithm=>:concurrently})206 -> 0.0039s207-- add_index(:snippet_repositories, :verification_state, {:where=>"(verification_state = 0 OR verification_state = 3)", :name=>"index_snippet_repositories_needs_verification", :algorithm=>:concurrently})208 -> 0.0017s209== 20210313045845 AddVerificationIndexesToSnippetRepositories: migrated (0.0277s) 210== 20210316094047 AddTrialExtensionTypeToGitlabSubscriptionHistories: migrating 211-- add_column(:gitlab_subscription_histories, :trial_extension_type, :smallint)212 -> 0.0012s213== 20210316094047 AddTrialExtensionTypeToGitlabSubscriptionHistories: migrated (0.0013s) 214== 20210316094323 AddTrialExtensionTypeToGitlabSubscriptions: migrating =======215-- add_column(:gitlab_subscriptions, :trial_extension_type, :smallint)216 -> 0.0009s217== 20210316094323 AddTrialExtensionTypeToGitlabSubscriptions: migrated (0.0034s) 218== 20210316152500 AddIndexCiStagesOnPipelineIdAndId: migrating ================219-- transaction_open?()220 -> 0.0000s221-- index_exists?(:ci_stages, [:pipeline_id, :id], {:where=>"status IN (0, 1, 2, 8, 9, 10)", :name=>"index_ci_stages_on_pipeline_id_and_id", :algorithm=>:concurrently})222 -> 0.0040s223-- add_index(:ci_stages, [:pipeline_id, :id], {:where=>"status IN (0, 1, 2, 8, 9, 10)", :name=>"index_ci_stages_on_pipeline_id_and_id", :algorithm=>:concurrently})224 -> 0.0019s225== 20210316152500 AddIndexCiStagesOnPipelineIdAndId: migrated (0.0078s) =======226== 20210316171009 CreatePackagesHelmFileMetadata: migrating ===================227-- create_table(:packages_helm_file_metadata, {:id=>false})228-- quote_column_name(:channel)229 -> 0.0000s230 -> 0.0041s231-- quote_table_name("check_c34067922d")232 -> 0.0001s233-- quote_table_name(:packages_helm_file_metadata)234 -> 0.0000s235-- execute("ALTER TABLE \"packages_helm_file_metadata\"\nADD CONSTRAINT \"check_c34067922d\" CHECK (char_length(\"channel\") <= 63)\n")236 -> 0.0007s237== 20210316171009 CreatePackagesHelmFileMetadata: migrated (0.0080s) ==========238== 20210317035357 CreateDastProfilesPipelines: migrating ======================239-- create_table(:dast_profiles_pipelines, {:primary_key=>[:dast_profile_id, :ci_pipeline_id], :comment=>"{\"owner\":\"group::dynamic analysis\",\"description\":\"Join table between DAST Profiles and CI Pipelines\"}"})240 -> 0.0031s241== 20210317035357 CreateDastProfilesPipelines: migrated (0.0034s) =============242== 20210317100520 CreateElasticIndexSettings: migrating =======================243-- create_table(:elastic_index_settings, {})244-- quote_column_name(:alias_name)245 -> 0.0001s246 -> 0.0050s247-- quote_table_name("check_c30005c325")248 -> 0.0001s249-- quote_table_name(:elastic_index_settings)250 -> 0.0001s251-- execute("ALTER TABLE \"elastic_index_settings\"\nADD CONSTRAINT \"check_c30005c325\" CHECK (char_length(\"alias_name\") <= 255)\n")252 -> 0.0007s253== 20210317100520 CreateElasticIndexSettings: migrated (0.0091s) ==============254== 20210317104032 SetIterationCadenceAutomaticToFalse: migrating ==============255== 20210317104032 SetIterationCadenceAutomaticToFalse: migrated (0.0011s) =====256== 20210317104301 CreateInProductMarketingEmails: migrating ===================257-- create_table(:in_product_marketing_emails, {})258 -> 0.0027s259-- add_index(:in_product_marketing_emails, :user_id)260 -> 0.0011s261-- add_index(:in_product_marketing_emails, [:user_id, :track, :series], {:unique=>true, :name=>"index_in_product_marketing_emails_on_user_track_series"})262 -> 0.0010s263== 20210317104301 CreateInProductMarketingEmails: migrated (0.0084s) ==========264== 20210317105904 AddUserForeignKeyToInProductMarketingEmails: migrating ======265-- transaction_open?()266 -> 0.0000s267-- foreign_keys(:in_product_marketing_emails)268 -> 0.0036s269-- execute("ALTER TABLE in_product_marketing_emails\nADD CONSTRAINT fk_35c9101b63\nFOREIGN KEY (user_id)\nREFERENCES users (id)\nON DELETE CASCADE\nNOT VALID;\n")270 -> 0.0018s271-- execute("ALTER TABLE in_product_marketing_emails VALIDATE CONSTRAINT fk_35c9101b63;")272 -> 0.0018s273== 20210317105904 AddUserForeignKeyToInProductMarketingEmails: migrated (0.0112s) 274== 20210317123054 AddThrottlePackageRegistryColumns: migrating ================275-- add_column(:application_settings, :throttle_unauthenticated_packages_api_requests_per_period, :integer, {:default=>800, :null=>false})276 -> 0.0028s277-- add_column(:application_settings, :throttle_unauthenticated_packages_api_period_in_seconds, :integer, {:default=>15, :null=>false})278 -> 0.0021s279-- add_column(:application_settings, :throttle_authenticated_packages_api_requests_per_period, :integer, {:default=>1000, :null=>false})280 -> 0.0021s281-- add_column(:application_settings, :throttle_authenticated_packages_api_period_in_seconds, :integer, {:default=>15, :null=>false})282 -> 0.0022s283-- add_column(:application_settings, :throttle_unauthenticated_packages_api_enabled, :boolean, {:default=>false, :null=>false})284 -> 0.0021s285-- add_column(:application_settings, :throttle_authenticated_packages_api_enabled, :boolean, {:default=>false, :null=>false})286 -> 0.0020s287== 20210317123054 AddThrottlePackageRegistryColumns: migrated (0.0139s) =======288== 20210317155207 ValidateNotNullConstraintOnClusterTokenName: migrating ======289-- current_schema()290 -> 0.0005s291-- execute("ALTER TABLE cluster_agent_tokens VALIDATE CONSTRAINT check_0fb634d04d;")292 -> 0.0008s293== 20210317155207 ValidateNotNullConstraintOnClusterTokenName: migrated (0.0034s) 294== 20210317192943 AddExpiryNotificationDeliveredToKeys: migrating =============295-- add_column(:keys, :expiry_notification_delivered_at, :datetime_with_timezone)296 -> 0.0013s297== 20210317192943 AddExpiryNotificationDeliveredToKeys: migrated (0.0014s) ====298== 20210317210338 AddValidRunnerRegistrars: migrating =========================299-- add_column(:application_settings, :valid_runner_registrars, :string, {:array=>true, :default=>["project", "group"]})300 -> 0.0028s301== 20210317210338 AddValidRunnerRegistrars: migrated (0.0029s) ================302== 20210318134427 DeleteSecurityFindingsWithoutUuid: migrating ================303== 20210318134427 DeleteSecurityFindingsWithoutUuid: migrated (0.0026s) =======304== 20210319071214 AddHelmMaxFileSizeToPlanLimits: migrating ===================305-- add_column(:plan_limits, :helm_max_file_size, :bigint, {:default=>5242880, :null=>false})306 -> 0.0021s307== 20210319071214 AddHelmMaxFileSizeToPlanLimits: migrated (0.0022s) ==========308== 20210322063407 AddDastProfileIdFkToDastProfilesPipelines: migrating ========309-- transaction_open?()310 -> 0.0000s311-- foreign_keys(:dast_profiles_pipelines)312 -> 0.0037s313-- execute("ALTER TABLE dast_profiles_pipelines\nADD CONSTRAINT fk_cc206a8c13\nFOREIGN KEY (dast_profile_id)\nREFERENCES dast_profiles (id)\nON DELETE CASCADE\nNOT VALID;\n")314 -> 0.0012s315-- execute("ALTER TABLE dast_profiles_pipelines VALIDATE CONSTRAINT fk_cc206a8c13;")316 -> 0.0013s317== 20210322063407 AddDastProfileIdFkToDastProfilesPipelines: migrated (0.0099s) 318== 20210322063450 AddCiPipelineIdFkToDastProfilesPipelines: migrating =========319-- transaction_open?()320 -> 0.0000s321-- foreign_keys(:dast_profiles_pipelines)322 -> 0.0036s323-- execute("ALTER TABLE dast_profiles_pipelines\nADD CONSTRAINT fk_a60cad829d\nFOREIGN KEY (ci_pipeline_id)\nREFERENCES ci_pipelines (id)\nON DELETE CASCADE\nNOT VALID;\n")324 -> 0.0015s325-- execute("ALTER TABLE dast_profiles_pipelines VALIDATE CONSTRAINT fk_a60cad829d;")326 -> 0.0016s327== 20210322063450 AddCiPipelineIdFkToDastProfilesPipelines: migrated (0.0104s) 328== 20210322115438 ValidateNotNullConstraintOnGitlabSubscriptionsNamespaceId: migrating 329-- current_schema()330 -> 0.0004s331-- execute("ALTER TABLE gitlab_subscriptions VALIDATE CONSTRAINT check_77fea3f0e7;")332 -> 0.0008s333== 20210322115438 ValidateNotNullConstraintOnGitlabSubscriptionsNamespaceId: migrated (0.0032s) 334== 20210322182751 AddIndexToKeysOnExpiresAtAndExpiryNotificationUndelivered: migrating 335-- transaction_open?()336 -> 0.0000s337-- index_exists?(:keys, "date(timezone('UTC', expires_at)), expiry_notification_delivered_at", {:where=>"expiry_notification_delivered_at IS NULL", :name=>"index_keys_on_expires_at_and_expiry_notification_undelivered", :algorithm=>:concurrently})338 -> 0.0048s339-- add_index(:keys, "date(timezone('UTC', expires_at)), expiry_notification_delivered_at", {:where=>"expiry_notification_delivered_at IS NULL", :name=>"index_keys_on_expires_at_and_expiry_notification_undelivered", :algorithm=>:concurrently})340 -> 0.0020s341== 20210322182751 AddIndexToKeysOnExpiresAtAndExpiryNotificationUndelivered: migrated (0.0092s) 342== 20210323064751 AddNamespaceTraversalIdsIndex: migrating ====================343-- transaction_open?()344 -> 0.0000s345-- index_exists?(:namespaces, :traversal_ids, {:using=>:gin, :name=>"index_namespaces_on_traversal_ids", :algorithm=>:concurrently})346 -> 0.0104s347-- add_index(:namespaces, :traversal_ids, {:using=>:gin, :name=>"index_namespaces_on_traversal_ids", :algorithm=>:concurrently})348 -> 0.0020s349== 20210323064751 AddNamespaceTraversalIdsIndex: migrated (0.0146s) ===========350== 20210323125809 CreateStatusCheckResponsesTable: migrating ==================351-- create_table(:status_check_responses, {})352 -> 0.0025s353-- add_index(:status_check_responses, :merge_request_id)354 -> 0.0010s355-- add_index(:status_check_responses, :external_approval_rule_id)356 -> 0.0009s357== 20210323125809 CreateStatusCheckResponsesTable: migrated (0.0046s) =========358== 20210323130831 AddMergeRequestForeignKeyToStatusCheckResponses: migrating ==359-- transaction_open?()360 -> 0.0000s361-- foreign_keys(:status_check_responses)362 -> 0.0036s363-- execute("ALTER TABLE status_check_responses\nADD CONSTRAINT fk_f3953d86c6\nFOREIGN KEY (merge_request_id)\nREFERENCES merge_requests (id)\nON DELETE CASCADE\nNOT VALID;\n")364 -> 0.0014s365-- execute("ALTER TABLE status_check_responses VALIDATE CONSTRAINT fk_f3953d86c6;")366 -> 0.0017s367== 20210323130831 AddMergeRequestForeignKeyToStatusCheckResponses: migrated (0.0105s) 368== 20210323131543 AddExternalApprovalRuleForeignKeyToStatusCheckResponses: migrating 369-- transaction_open?()370 -> 0.0000s371-- foreign_keys(:status_check_responses)372 -> 0.0036s373-- execute("ALTER TABLE status_check_responses\nADD CONSTRAINT fk_116e7e7369\nFOREIGN KEY (external_approval_rule_id)\nREFERENCES external_approval_rules (id)\nON DELETE CASCADE\nNOT VALID;\n")374 -> 0.0011s375-- execute("ALTER TABLE status_check_responses VALIDATE CONSTRAINT fk_116e7e7369;")376 -> 0.0010s377== 20210323131543 AddExternalApprovalRuleForeignKeyToStatusCheckResponses: migrated (0.0094s) 378== 20210323155010 PopulateDismissalInformationForVulnerabilities: migrating ===379== 20210323155010 PopulateDismissalInformationForVulnerabilities: migrated (0.0040s) 380== 20210323182846 AddProjectStatusDateIndexToMergeRequests: migrating =========381-- transaction_open?()382 -> 0.0000s383-- index_exists?(:merge_requests, [:target_project_id, :state_id, :created_at, :id], {:name=>"idx_mrs_on_target_id_and_created_at_and_state_id", :algorithm=>:concurrently})384 -> 0.0172s385-- add_index(:merge_requests, [:target_project_id, :state_id, :created_at, :id], {:name=>"idx_mrs_on_target_id_and_created_at_and_state_id", :algorithm=>:concurrently})386 -> 0.0021s387== 20210323182846 AddProjectStatusDateIndexToMergeRequests: migrated (0.0216s) 388== 20210324112439 AddIndexMirrorDataOnRetryNextExecutionWhereStatus: migrating 389-- transaction_open?()390 -> 0.0000s391-- index_exists?(:project_mirror_data, [:next_execution_timestamp, :retry_count], {:where=>"(status)::text <> ALL ('{scheduled,started}'::text[])", :name=>"index_mirror_data_non_scheduled_or_started", :algorithm=>:concurrently})392 -> 0.0043s393-- add_index(:project_mirror_data, [:next_execution_timestamp, :retry_count], {:where=>"(status)::text <> ALL ('{scheduled,started}'::text[])", :name=>"index_mirror_data_non_scheduled_or_started", :algorithm=>:concurrently})394 -> 0.0019s395== 20210324112439 AddIndexMirrorDataOnRetryNextExecutionWhereStatus: migrated (0.0083s) 396== 20210324131727 MigrateElasticIndexSettings: migrating ======================397== 20210324131727 MigrateElasticIndexSettings: migrated (0.0244s) =============398== 20210325092215 AddNotValidForeignKeyToGroupHooks: migrating ================399-- add_foreign_key(:web_hooks, :namespaces, {:column=>:group_id, :on_delete=>:cascade, :validate=>false})400 -> 0.0019s401== 20210325092215 AddNotValidForeignKeyToGroupHooks: migrated (0.0049s) =======402== 20210325113129 ValidateForeignKeyOnServiceHooks: migrating =================403-- foreign_keys(:web_hooks)404 -> 0.0040s405-- execute("ALTER TABLE web_hooks VALIDATE CONSTRAINT fk_d47999a98a;")406 -> 0.0012s407== 20210325113129 ValidateForeignKeyOnServiceHooks: migrated (0.0061s) ========408== 20210325150837 AddVerificationStateToCiPipelineArtifact: migrating =========409-- change_table(:ci_pipeline_artifacts, {:bulk=>true})410 -> 0.0024s411== 20210325150837 AddVerificationStateToCiPipelineArtifact: migrated (0.0026s) 412== 20210325151758 AddVerificationFailureLimitToCiPipelineArtifact: migrating ==413-- transaction_open?()414 -> 0.0000s415-- current_schema()416 -> 0.0005s417-- execute("ALTER TABLE ci_pipeline_artifacts\nADD CONSTRAINT ci_pipeline_artifacts_verification_failure_text_limit\nCHECK ( char_length(verification_failure) <= 255 )\nNOT VALID;\n")418 -> 0.0012s419-- current_schema()420 -> 0.0004s421-- execute("ALTER TABLE ci_pipeline_artifacts VALIDATE CONSTRAINT ci_pipeline_artifacts_verification_failure_text_limit;")422 -> 0.0008s423== 20210325151758 AddVerificationFailureLimitToCiPipelineArtifact: migrated (0.0092s) 424== 20210325152011 AddVerificationIndexesToCiPipelineArtifacts: migrating ======425-- transaction_open?()426 -> 0.0000s427-- index_exists?(:ci_pipeline_artifacts, :verification_state, {:name=>"index_ci_pipeline_artifacts_verification_state", :algorithm=>:concurrently})428 -> 0.0037s429-- add_index(:ci_pipeline_artifacts, :verification_state, {:name=>"index_ci_pipeline_artifacts_verification_state", :algorithm=>:concurrently})430 -> 0.0017s431-- transaction_open?()432 -> 0.0000s433-- index_exists?(:ci_pipeline_artifacts, :verified_at, {:where=>"(verification_state = 0)", :order=>{:verified_at=>"ASC NULLS FIRST"}, :name=>"index_ci_pipeline_artifacts_pending_verification", :algorithm=>:concurrently})434 -> 0.0039s435-- add_index(:ci_pipeline_artifacts, :verified_at, {:where=>"(verification_state = 0)", :order=>{:verified_at=>"ASC NULLS FIRST"}, :name=>"index_ci_pipeline_artifacts_pending_verification", :algorithm=>:concurrently})436 -> 0.0018s437-- transaction_open?()438 -> 0.0000s439-- index_exists?(:ci_pipeline_artifacts, :verification_retry_at, {:where=>"(verification_state = 3)", :order=>{:verification_retry_at=>"ASC NULLS FIRST"}, :name=>"index_ci_pipeline_artifacts_failed_verification", :algorithm=>:concurrently})440 -> 0.0043s441-- add_index(:ci_pipeline_artifacts, :verification_retry_at, {:where=>"(verification_state = 3)", :order=>{:verification_retry_at=>"ASC NULLS FIRST"}, :name=>"index_ci_pipeline_artifacts_failed_verification", :algorithm=>:concurrently})442 -> 0.0018s443-- transaction_open?()444 -> 0.0000s445-- index_exists?(:ci_pipeline_artifacts, :verification_state, {:where=>"(verification_state = 0 OR verification_state = 3)", :name=>"index_ci_pipeline_artifacts_needs_verification", :algorithm=>:concurrently})446 -> 0.0048s447-- add_index(:ci_pipeline_artifacts, :verification_state, {:where=>"(verification_state = 0 OR verification_state = 3)", :name=>"index_ci_pipeline_artifacts_needs_verification", :algorithm=>:concurrently})448 -> 0.0017s449== 20210325152011 AddVerificationIndexesToCiPipelineArtifacts: migrated (0.0315s) 450== 20210326035553 AddIndexForProjectDeploymentsWithEnvironmentIdAndUpdatedAt: migrating 451-- transaction_open?()452 -> 0.0000s453-- index_exists?(:deployments, [:project_id, :environment_id, :updated_at], {:name=>"index_deployments_on_project_and_environment_and_updated_at", :algorithm=>:concurrently})454 -> 0.0115s455-- add_index(:deployments, [:project_id, :environment_id, :updated_at], {:name=>"index_deployments_on_project_and_environment_and_updated_at", :algorithm=>:concurrently})456 -> 0.0017s457== 20210326035553 AddIndexForProjectDeploymentsWithEnvironmentIdAndUpdatedAt: migrated (0.0152s) 458== 20210326121537 BackfillCleanupForPartitionedWebHookLogs: migrating =========459-- transaction_open?()460 -> 0.0000s461-- table_exists?("web_hook_logs_part_0c5294f417")462 -> 0.0009s463-- execute("VACUUM FREEZE ANALYZE web_hook_logs_part_0c5294f417")464 -> 0.0151s465== 20210326121537 BackfillCleanupForPartitionedWebHookLogs: migrated (0.0351s) 466== 20210326190903 CreateVulnerabilityFindingEvidences: migrating ==============467-- create_table(:vulnerability_finding_evidences, {})468-- quote_column_name(:summary)469 -> 0.0000s470 -> 0.0051s471-- quote_table_name("check_5773b236fb")472 -> 0.0000s473-- quote_table_name(:vulnerability_finding_evidences)474 -> 0.0000s475-- execute("ALTER TABLE \"vulnerability_finding_evidences\"\nADD CONSTRAINT \"check_5773b236fb\" CHECK (char_length(\"summary\") <= 8000000)\n")476 -> 0.0008s477== 20210326190903 CreateVulnerabilityFindingEvidences: migrated (0.0096s) =====478== 20210328214434 RemoveTemporaryIndexFromVulnerabilitiesTable: migrating =====479-- transaction_open?()480 -> 0.0000s481-- indexes(:vulnerabilities)482 -> 0.0083s483-- remove_index(:vulnerabilities, {:algorithm=>:concurrently, :name=>"temporary_index_vulnerabilities_on_id"})484 -> 0.0015s485== 20210328214434 RemoveTemporaryIndexFromVulnerabilitiesTable: migrated (0.0118s) 486== 20210329095548 AddTargetProjectAndSourceBranchIndexToMergeRequest: migrating 487-- transaction_open?()488 -> 0.0000s489-- index_exists?(:merge_requests, [:target_project_id, :source_branch], {:name=>"index_merge_requests_on_target_project_id_and_source_branch", :algorithm=>:concurrently})490 -> 0.0191s491-- add_index(:merge_requests, [:target_project_id, :source_branch], {:name=>"index_merge_requests_on_target_project_id_and_source_branch", :algorithm=>:concurrently})492 -> 0.0020s493== 20210329095548 AddTargetProjectAndSourceBranchIndexToMergeRequest: migrated (0.0231s) 494== 20210329102724 AddNewTrailPlans: migrating =================================495== 20210329102724 AddNewTrailPlans: migrated (0.0000s) ========================496== 20210329191850 AddFindingSignatureTable: migrating =========================497-- create_table(:vulnerability_finding_signatures, {})498 -> 0.0063s499== 20210329191850 AddFindingSignatureTable: migrated (0.0099s) ================500== 20210329192716 AddCompositeIndexToAwardEmoji: migrating ====================501-- transaction_open?()502 -> 0.0000s503-- index_exists?(:award_emoji, [:user_id, :name, :awardable_type, :awardable_id], {:name=>"idx_award_emoji_on_user_emoji_name_awardable_type_awardable_id", :algorithm=>:concurrently})504 -> 0.0027s505-- add_index(:award_emoji, [:user_id, :name, :awardable_type, :awardable_id], {:name=>"idx_award_emoji_on_user_emoji_name_awardable_type_awardable_id", :algorithm=>:concurrently})506 -> 0.0017s507== 20210329192716 AddCompositeIndexToAwardEmoji: migrated (0.0063s) ===========508== 20210330015805 AddCloudToLicenses: migrating ===============================509-- add_column(:licenses, :cloud, :boolean, {:default=>false})510 -> 0.0021s511== 20210330015805 AddCloudToLicenses: migrated (0.0022s) ======================512== 20210330091751 RemoveRecordsWithoutGroupFromWebhooksTable: migrating =======513== 20210330091751 RemoveRecordsWithoutGroupFromWebhooksTable: migrated (0.0045s) 514== 20210330130420 DropFindingFingerprintTable: migrating ======================515-- drop_table(:vulnerability_finding_fingerprints)516 -> 0.0019s517== 20210330130420 DropFindingFingerprintTable: migrated (0.0054s) =============518== 20210331000934 AddConfigToCiRunners: migrating =============================519-- add_column(:ci_runners, :config, :jsonb, {:default=>{}, :null=>false})520 -> 0.0024s521== 20210331000934 AddConfigToCiRunners: migrated (0.0025s) ====================522== 20210331105335 DropNonPartitionedAuditEvents: migrating ====================523-- execute("DROP TRIGGER IF EXISTS table_sync_trigger_ee39a25f9d ON audit_events")524 -> 0.0011s525-- execute("DROP FUNCTION IF EXISTS table_sync_function_2be879775d()")526 -> 0.0007s527-- drop_table("audit_events_archived")528 -> 0.0015s529== 20210331105335 DropNonPartitionedAuditEvents: migrated (0.0073s) ===========530== 20210331125111 AddDefaultTargetProject: migrating ==========================531-- add_column(:project_settings, :mr_default_target_self, :boolean, {:default=>false, :null=>false})532 -> 0.0016s533== 20210331125111 AddDefaultTargetProject: migrated (0.0053s) =================534== 20210331145548 AddIndexForLastDeployment: migrating ========================535-- transaction_open?()536 -> 0.0000s537-- index_exists?(:deployments, [:environment_id, :status, :id], {:name=>"index_deployments_on_environment_id_status_and_id", :algorithm=>:concurrently})538 -> 0.0129s539-- add_index(:deployments, [:environment_id, :status, :id], {:name=>"index_deployments_on_environment_id_status_and_id", :algorithm=>:concurrently})540 -> 0.0016s541== 20210331145548 AddIndexForLastDeployment: migrated (0.0166s) ===============542== 20210331180118 RemoveDeprecatedIndexFromAwardEmoji: migrating ==============543-- transaction_open?()544 -> 0.0000s545-- indexes(:award_emoji)546 -> 0.0032s547-- remove_index(:award_emoji, {:algorithm=>:concurrently, :name=>"index_award_emoji_on_user_id_and_name"})548 -> 0.0013s549== 20210331180118 RemoveDeprecatedIndexFromAwardEmoji: migrated (0.0066s) =====550== 20210401131948 MoveContainerRegistryEnabledToProjectFeatures2: migrating ===551== 20210401131948 MoveContainerRegistryEnabledToProjectFeatures2: migrated (0.0000s) 552== 20210401134157 AddIndexToPagesDeployments: migrating =======================553-- transaction_open?()554 -> 0.0000s555-- index_exists?(:pages_deployments, [:file_store, :id], {:name=>"index_pages_deployments_on_file_store_and_id", :algorithm=>:concurrently})556 -> 0.0028s557-- add_index(:pages_deployments, [:file_store, :id], {:name=>"index_pages_deployments_on_file_store_and_id", :algorithm=>:concurrently})558 -> 0.0015s559== 20210401134157 AddIndexToPagesDeployments: migrated (0.0061s) ==============560== 20210401134455 RemoveIndexMirrorDataOnNextExecutionAndRetryCount: migrating 561-- transaction_open?()562 -> 0.0000s563-- index_exists?(:project_mirror_data, [:next_execution_timestamp, :retry_count], {:name=>"index_mirror_data_on_next_execution_and_retry_count", :algorithm=>:concurrently})564 -> 0.0046s565-- remove_index(:project_mirror_data, {:name=>"index_mirror_data_on_next_execution_and_retry_count", :algorithm=>:concurrently, :column=>[:next_execution_timestamp, :retry_count]})566 -> 0.0056s567== 20210401134455 RemoveIndexMirrorDataOnNextExecutionAndRetryCount: migrated (0.0120s) 568== 20210401175134 AddBeforeExpiryNotificationDeliveredToKeys: migrating =======569-- add_column(:keys, :before_expiry_notification_delivered_at, :datetime_with_timezone)570 -> 0.0015s571== 20210401175134 AddBeforeExpiryNotificationDeliveredToKeys: migrated (0.0016s) 572== 20210401192808 AddIndexToKeysOnExpiresAtAndBeforeExpiryNotificationUndelivered: migrating 573-- transaction_open?()574 -> 0.0000s575-- index_exists?(:keys, "date(timezone('UTC', expires_at)), before_expiry_notification_delivered_at", {:where=>"before_expiry_notification_delivered_at IS NULL", :name=>"idx_keys_expires_at_and_before_expiry_notification_undelivered", :algorithm=>:concurrently})576 -> 0.0047s577-- add_index(:keys, "date(timezone('UTC', expires_at)), before_expiry_notification_delivered_at", {:where=>"before_expiry_notification_delivered_at IS NULL", :name=>"idx_keys_expires_at_and_before_expiry_notification_undelivered", :algorithm=>:concurrently})578 -> 0.0017s579== 20210401192808 AddIndexToKeysOnExpiresAtAndBeforeExpiryNotificationUndelivered: migrated (0.0086s) 580== 20210402005225 AddSourceAndLevelIndexOnNotificationSettings: migrating =====581-- transaction_open?()582 -> 0.0000s583-- index_exists?(:notification_settings, [:source_id, :source_type, :level, :user_id], {:name=>"index_notification_settings_on_source_and_level_and_user", :algorithm=>:concurrently})584 -> 0.0033s585-- add_index(:notification_settings, [:source_id, :source_type, :level, :user_id], {:name=>"index_notification_settings_on_source_and_level_and_user", :algorithm=>:concurrently})586 -> 0.0018s587-- transaction_open?()588 -> 0.0000s589-- indexes(:notification_settings)590 -> 0.0035s591-- remove_index(:notification_settings, {:algorithm=>:concurrently, :name=>"index_notification_settings_on_source_id_and_source_type"})592 -> 0.0013s593-- transaction_open?()594 -> 0.0000s595-- indexes(:notification_settings)596 -> 0.0032s597-- remove_index(:notification_settings, {:algorithm=>:concurrently, :name=>"index_notification_settings_on_user_id"})598 -> 0.0013s599== 20210402005225 AddSourceAndLevelIndexOnNotificationSettings: migrated (0.0208s) 600== 20210403022952 RemoveNotesDeleteCascadeTimelogs: migrating =================601-- transaction_open?()602 -> 0.0000s603-- foreign_keys(:timelogs)604 -> 0.0034s605-- execute("ALTER TABLE timelogs\nADD CONSTRAINT fk_timelogs_note_id\nFOREIGN KEY (note_id)\nREFERENCES notes (id)\nON DELETE SET NULL\nNOT VALID;\n")606 -> 0.0014s607-- execute("ALTER TABLE timelogs VALIDATE CONSTRAINT fk_timelogs_note_id;")608 -> 0.0014s609-- foreign_keys(:timelogs)610 -> 0.0032s611-- remove_foreign_key(:timelogs, :notes, {:column=>:note_id, :on_delete=>:cascade})612 -> 0.0045s613== 20210403022952 RemoveNotesDeleteCascadeTimelogs: migrated (0.0223s) ========614== 20210406063442 CreateNamespacesIdParentIdPartialIndex: migrating ===========615-- transaction_open?()616 -> 0.0000s617-- index_exists?(:namespaces, :id, {:where=>"parent_id IS NULL", :name=>"index_namespaces_id_parent_id_is_null", :algorithm=>:concurrently})618 -> 0.0115s619-- add_index(:namespaces, :id, {:where=>"parent_id IS NULL", :name=>"index_namespaces_id_parent_id_is_null", :algorithm=>:concurrently})620 -> 0.0022s621== 20210406063442 CreateNamespacesIdParentIdPartialIndex: migrated (0.0158s) ==622== 20210406140057 AddTotalTupleCountToBatchedMigrations: migrating ============623-- add_column(:batched_background_migrations, :total_tuple_count, :bigint)624 -> 0.0014s625== 20210406140057 AddTotalTupleCountToBatchedMigrations: migrated (0.0015s) ===626== 20210406144743 BackfillTotalTupleCountForBatchedMigrations: migrating ======627unknown OID 28: failed to recognize type of 'relfrozenxid'. It will be treated as String.628unknown OID 1034: failed to recognize type of 'relacl'. It will be treated as String.629unknown OID 194: failed to recognize type of 'relpartbound'. It will be treated as String.630== 20210406144743 BackfillTotalTupleCountForBatchedMigrations: migrated (0.0336s) 631== 20210407002511 AddTypeToDastSiteProfile: migrating =========================632-- add_column(:dast_site_profiles, :target_type, :integer, {:limit=>2, :default=>0, :null=>false})633 -> 0.0021s634== 20210407002511 AddTypeToDastSiteProfile: migrated (0.0022s) ================635== 20210407111027 AddWhatsNewApplicationSetting: migrating ====================636-- add_column(:application_settings, :whats_new_variant, :integer, {:limit=>2, :default=>0})637 -> 0.0025s638== 20210407111027 AddWhatsNewApplicationSetting: migrated (0.0027s) ===========639== 20210407140539 AddVerificationStateAndStartedAtToTerraformStateVersionTable: migrating 640-- change_table(:terraform_state_versions, {})641 -> 0.0027s642== 20210407140539 AddVerificationStateAndStartedAtToTerraformStateVersionTable: migrated (0.0028s) 643== 20210407150240 ConfirmSupportBotUser: migrating ============================644== 20210407150240 ConfirmSupportBotUser: migrated (0.0027s) ===================645== 20210409084242 CreateIndexOnNotesForCherryPickedMergeRequests: migrating ===646-- transaction_open?()647 -> 0.0000s648-- index_exists?(:notes, [:project_id, :commit_id], {:where=>"((noteable_type)::text = 'MergeRequest'::text)", :name=>"index_notes_for_cherry_picked_merge_requests", :algorithm=>:concurrently})649 -> 0.0071s650-- add_index(:notes, [:project_id, :commit_id], {:where=>"((noteable_type)::text = 'MergeRequest'::text)", :name=>"index_notes_for_cherry_picked_merge_requests", :algorithm=>:concurrently})651 -> 0.0018s652== 20210409084242 CreateIndexOnNotesForCherryPickedMergeRequests: migrated (0.0109s) 653== 20210409185501 IndexMembersOnUserIdSourceIdSourceType: migrating ===========654-- transaction_open?()655 -> 0.0000s656-- index_exists?(:members, [:user_id, :source_id, :source_type], {:name=>"index_members_on_user_id_source_id_source_type", :algorithm=>:concurrently})657 -> 0.0063s658-- add_index(:members, [:user_id, :source_id, :source_type], {:name=>"index_members_on_user_id_source_id_source_type", :algorithm=>:concurrently})659 -> 0.0015s660== 20210409185501 IndexMembersOnUserIdSourceIdSourceType: migrated (0.0098s) ==661== 20210409185531 RemoveMembersIndexOnUserId: migrating =======================662-- transaction_open?()663 -> 0.0000s664-- indexes(:members)665 -> 0.0066s666-- remove_index(:members, {:algorithm=>:concurrently, :name=>"index_members_on_user_id"})667 -> 0.0012s668== 20210409185531 RemoveMembersIndexOnUserId: migrated (0.0096s) ==============669== 20210411212813 AddClustersIntegrationsPrometheus: migrating ================670-- create_table(:clusters_integration_prometheus, {:id=>false})671 -> 0.0028s672== 20210411212813 AddClustersIntegrationsPrometheus: migrated (0.0060s) =======673== 20210412111213 CreateSecurityOrchestrationPolicyRuleSchedule: migrating ====674-- create_table(:security_orchestration_policy_rule_schedules, {:comment=>"{\"owner\":\"group::container security\",\"description\":\"Schedules used to store relationship between project and security policy repository\"}"})675-- quote_column_name(:cron)676 -> 0.0000s677 -> 0.0065s678-- quote_table_name("check_915825a76e")679 -> 0.0000s680-- quote_table_name(:security_orchestration_policy_rule_schedules)681 -> 0.0000s682-- execute("ALTER TABLE \"security_orchestration_policy_rule_schedules\"\nADD CONSTRAINT \"check_915825a76e\" CHECK (char_length(\"cron\") <= 255)\n")683 -> 0.0008s684== 20210412111213 CreateSecurityOrchestrationPolicyRuleSchedule: migrated (0.0109s) 685== 20210412132736 AddInstanceUrlToJiraConnectInstallations: migrating =========686-- add_column(:jira_connect_installations, :instance_url, :text)687 -> 0.0015s688== 20210412132736 AddInstanceUrlToJiraConnectInstallations: migrated (0.0016s) 689== 20210412132824 AddTextLimitToJiraConnectInstallationsInstanceUrl: migrating 690-- transaction_open?()691 -> 0.0000s692-- current_schema()693 -> 0.0005s694-- execute("ALTER TABLE jira_connect_installations\nADD CONSTRAINT check_4c6abed669\nCHECK ( char_length(instance_url) <= 255 )\nNOT VALID;\n")695 -> 0.0008s696-- current_schema()697 -> 0.0005s698-- execute("ALTER TABLE jira_connect_installations VALIDATE CONSTRAINT check_4c6abed669;")699 -> 0.0009s700== 20210412132824 AddTextLimitToJiraConnectInstallationsInstanceUrl: migrated (0.0092s) 701== 20210412142223 AddUserIndexOnSpamLogs: migrating ===========================702-- transaction_open?()703 -> 0.0000s704-- index_exists?(:spam_logs, :user_id, {:name=>"index_spam_logs_on_user_id", :algorithm=>:concurrently})705 -> 0.0014s706-- add_index(:spam_logs, :user_id, {:name=>"index_spam_logs_on_user_id", :algorithm=>:concurrently})707 -> 0.0015s708== 20210412142223 AddUserIndexOnSpamLogs: migrated (0.0048s) ==================709== 20210412172030 AddConfiguredAtToSecurityOrchestrationPolicy: migrating =====710-- add_column(:security_orchestration_policy_configurations, :configured_at, :datetime_with_timezone, {:null=>true})711 -> 0.0013s712== 20210412172030 AddConfiguredAtToSecurityOrchestrationPolicy: migrated (0.0014s) 713== 20210413092922 AddIndexToPackagesMavenMetadataPath: migrating ==============714-- transaction_open?()715 -> 0.0000s716-- index_exists?(:packages_maven_metadata, :path, {:name=>"index_packages_maven_metadata_on_path", :algorithm=>:concurrently})717 -> 0.0021s718-- add_index(:packages_maven_metadata, :path, {:name=>"index_packages_maven_metadata_on_path", :algorithm=>:concurrently})719 -> 0.0015s720== 20210413092922 AddIndexToPackagesMavenMetadataPath: migrated (0.0055s) =====721== 20210413121101 AddCreatedAtWebHookIdIndexToPartitionedWebHookLog: migrating 722-- transaction_open?()723 -> 0.0000s724-- index_name_exists?(:web_hook_logs_part_0c5294f417, "index_web_hook_logs_part_on_created_at_and_web_hook_id")725 -> 0.0012s726-- transaction_open?()727 -> 0.0000s728-- index_exists?("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_000000", [:created_at, :web_hook_id], {:name=>"index_eecfac613f", :algorithm=>:concurrently})729 -> 0.0012s730-- add_index("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_000000", [:created_at, :web_hook_id], {:name=>"index_eecfac613f", :algorithm=>:concurrently})731 -> 0.0013s732-- transaction_open?()733 -> 0.0000s734-- index_exists?("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202110", [:created_at, :web_hook_id], {:name=>"index_9cd16f1883", :algorithm=>:concurrently})735 -> 0.0010s736-- add_index("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202110", [:created_at, :web_hook_id], {:name=>"index_9cd16f1883", :algorithm=>:concurrently})737 -> 0.0012s738-- transaction_open?()739 -> 0.0000s740-- index_exists?("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202111", [:created_at, :web_hook_id], {:name=>"index_624d92e138", :algorithm=>:concurrently})741 -> 0.0010s742-- add_index("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202111", [:created_at, :web_hook_id], {:name=>"index_624d92e138", :algorithm=>:concurrently})743 -> 0.0013s744-- add_index(:web_hook_logs_part_0c5294f417, [:created_at, :web_hook_id], {:name=>"index_web_hook_logs_part_on_created_at_and_web_hook_id"})745 -> 0.0011s746== 20210413121101 AddCreatedAtWebHookIdIndexToPartitionedWebHookLog: migrated (0.0273s) 747== 20210413123832 AddIndexOnWebHookIdToPartitionedWebHookLog: migrating =======748-- transaction_open?()749 -> 0.0000s750-- index_name_exists?(:web_hook_logs_part_0c5294f417, "index_web_hook_logs_part_on_web_hook_id")751 -> 0.0011s752-- transaction_open?()753 -> 0.0000s754-- index_exists?("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_000000", :web_hook_id, {:name=>"index_80bf138a51", :algorithm=>:concurrently})755 -> 0.0021s756-- add_index("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_000000", :web_hook_id, {:name=>"index_80bf138a51", :algorithm=>:concurrently})757 -> 0.0015s758-- transaction_open?()759 -> 0.0000s760-- index_exists?("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202110", :web_hook_id, {:name=>"index_fb2dcc655b", :algorithm=>:concurrently})761 -> 0.0019s762-- add_index("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202110", :web_hook_id, {:name=>"index_fb2dcc655b", :algorithm=>:concurrently})763 -> 0.0014s764-- transaction_open?()765 -> 0.0000s766-- index_exists?("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202111", :web_hook_id, {:name=>"index_bbbe129f53", :algorithm=>:concurrently})767 -> 0.0018s768-- add_index("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202111", :web_hook_id, {:name=>"index_bbbe129f53", :algorithm=>:concurrently})769 -> 0.0013s770-- add_index(:web_hook_logs_part_0c5294f417, :web_hook_id, {:name=>"index_web_hook_logs_part_on_web_hook_id"})771 -> 0.0012s772== 20210413123832 AddIndexOnWebHookIdToPartitionedWebHookLog: migrated (0.0298s) 773== 20210413130011 AddPartitionedWebHookLogFk: migrating =======================774-- transaction_open?()775 -> 0.0000s776-- foreign_keys(:web_hook_logs_part_0c5294f417)777 -> 0.0030s778-- transaction_open?()779 -> 0.0000s780-- foreign_keys("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_000000")781 -> 0.0025s782-- execute("ALTER TABLE gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_000000\nADD CONSTRAINT fk_rails_bb3355782d\nFOREIGN KEY (web_hook_id)\nREFERENCES web_hooks (id)\nON DELETE CASCADE\nNOT VALID;\n")783 -> 0.0011s784-- execute("ALTER TABLE gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_000000 VALIDATE CONSTRAINT fk_rails_bb3355782d;")785 -> 0.0010s786-- transaction_open?()787 -> 0.0000s788-- foreign_keys("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202110")789 -> 0.0025s790-- execute("ALTER TABLE gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202110\nADD CONSTRAINT fk_rails_bb3355782d\nFOREIGN KEY (web_hook_id)\nREFERENCES web_hooks (id)\nON DELETE CASCADE\nNOT VALID;\n")791 -> 0.0010s792-- execute("ALTER TABLE gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202110 VALIDATE CONSTRAINT fk_rails_bb3355782d;")793 -> 0.0011s794-- transaction_open?()795 -> 0.0000s796-- foreign_keys("gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202111")797 -> 0.0027s798-- execute("ALTER TABLE gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202111\nADD CONSTRAINT fk_rails_bb3355782d\nFOREIGN KEY (web_hook_id)\nREFERENCES web_hooks (id)\nON DELETE CASCADE\nNOT VALID;\n")799 -> 0.0012s800-- execute("ALTER TABLE gitlab_partitions_dynamic.web_hook_logs_part_0c5294f417_202111 VALIDATE CONSTRAINT fk_rails_bb3355782d;")801 -> 0.0012s802-- add_foreign_key(:web_hook_logs_part_0c5294f417, :web_hooks, {:column=>:web_hook_id, :on_delete=>:cascade, :name=>"fk_rails_bb3355782d", :validate=>true})803 -> 0.0021s804== 20210413130011 AddPartitionedWebHookLogFk: migrated (0.0441s) ==============805== 20210413132500 RescheduleArtifactExpiryBackfillAgain: migrating ============806-- Scheduled 0 BackfillArtifactExpiryDate jobs with a maximum of 200000 records per batch and an interval of 120 seconds.807The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:10 UTC."808== 20210413132500 RescheduleArtifactExpiryBackfillAgain: migrated (0.0052s) ===809== 20210413155324 AddPauseSecondsToBatchedBackgroundMigrations: migrating =====810-- add_column(:batched_background_migrations, :pause_ms, :integer, {:null=>false, :default=>100})811 -> 0.0021s812== 20210413155324 AddPauseSecondsToBatchedBackgroundMigrations: migrated (0.0023s) 813== 20210414045322 AddPauseSecondsToBatchedBackgroundMigrationJobs: migrating ==814-- add_column(:batched_background_migration_jobs, :pause_ms, :integer, {:null=>false, :default=>100})815 -> 0.0020s816== 20210414045322 AddPauseSecondsToBatchedBackgroundMigrationJobs: migrated (0.0022s) 817== 20210414095944 AddIndexServicesOnProjectAndTypeWhereInheritNull: migrating =818-- transaction_open?()819 -> 0.0000s820-- index_exists?(:services, [:project_id, :type], {:where=>"inherit_from_id IS NULL", :name=>"index_services_on_project_and_type_where_inherit_null", :algorithm=>:concurrently})821 -> 0.0055s822-- add_index(:services, [:project_id, :type], {:where=>"inherit_from_id IS NULL", :name=>"index_services_on_project_and_type_where_inherit_null", :algorithm=>:concurrently})823 -> 0.0017s824== 20210414095944 AddIndexServicesOnProjectAndTypeWhereInheritNull: migrated (0.0090s) 825== 20210414100914 AddBulkImportExportsTable: migrating ========================826-- create_table(:bulk_import_exports, {})827-- quote_column_name(:relation)828 -> 0.0000s829-- quote_column_name(:jid)830 -> 0.0000s831-- quote_column_name(:error)832 -> 0.0000s833 -> 0.0038s834-- quote_table_name("check_24cb010672")835 -> 0.0000s836-- quote_table_name("check_9ee6d14d33")837 -> 0.0000s838-- quote_table_name("check_8f0f357334")839 -> 0.0000s840-- quote_table_name(:bulk_import_exports)841 -> 0.0000s842-- execute("ALTER TABLE \"bulk_import_exports\"\nADD CONSTRAINT \"check_24cb010672\" CHECK (char_length(\"relation\") <= 255),\nADD CONSTRAINT \"check_9ee6d14d33\" CHECK (char_length(\"jid\") <= 255),\nADD CONSTRAINT \"check_8f0f357334\" CHECK (char_length(\"error\") <= 255)\n")843 -> 0.0011s844== 20210414100914 AddBulkImportExportsTable: migrated (0.0090s) ===============845== 20210414130017 AddForeignKeyToBulkImportExportsOnProject: migrating ========846-- transaction_open?()847 -> 0.0000s848-- foreign_keys(:bulk_import_exports)849 -> 0.0028s850-- execute("ALTER TABLE bulk_import_exports\nADD CONSTRAINT fk_39c726d3b5\nFOREIGN KEY (project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n")851 -> 0.0016s852-- execute("ALTER TABLE bulk_import_exports VALIDATE CONSTRAINT fk_39c726d3b5;")853 -> 0.0018s854== 20210414130017 AddForeignKeyToBulkImportExportsOnProject: migrated (0.0105s) 855== 20210414130526 AddForeignKeyToBulkImportExportsOnGroup: migrating ==========856-- transaction_open?()857 -> 0.0000s858-- foreign_keys(:bulk_import_exports)859 -> 0.0027s860-- execute("ALTER TABLE bulk_import_exports\nADD CONSTRAINT fk_8c6f33cebe\nFOREIGN KEY (group_id)\nREFERENCES namespaces (id)\nON DELETE CASCADE\nNOT VALID;\n")861 -> 0.0015s862-- execute("ALTER TABLE bulk_import_exports VALIDATE CONSTRAINT fk_8c6f33cebe;")863 -> 0.0017s864== 20210414130526 AddForeignKeyToBulkImportExportsOnGroup: migrated (0.0102s) =865== 20210414131600 AddExternalPipelineValidationToApplicationSetting: migrating 866-- add_column(:application_settings, :external_pipeline_validation_service_timeout, :integer)867 -> 0.0021s868-- add_column(:application_settings, :encrypted_external_pipeline_validation_service_token, :text)869 -> 0.0014s870-- add_column(:application_settings, :encrypted_external_pipeline_validation_service_token_iv, :text)871 -> 0.0014s872-- add_column(:application_settings, :external_pipeline_validation_service_url, :text)873 -> 0.0013s874== 20210414131600 AddExternalPipelineValidationToApplicationSetting: migrated (0.0066s) 875== 20210414131807 AddBulkImportExportsTableIndexes: migrating =================876-- transaction_open?()877 -> 0.0000s878-- index_exists?(:bulk_import_exports, [:group_id, :relation], {:unique=>true, :where=>"group_id IS NOT NULL", :name=>"partial_index_bulk_import_exports_on_group_id_and_relation", :algorithm=>:concurrently})879 -> 0.0016s880-- add_index(:bulk_import_exports, [:group_id, :relation], {:unique=>true, :where=>"group_id IS NOT NULL", :name=>"partial_index_bulk_import_exports_on_group_id_and_relation", :algorithm=>:concurrently})881 -> 0.0015s882-- transaction_open?()883 -> 0.0000s884-- index_exists?(:bulk_import_exports, [:project_id, :relation], {:unique=>true, :where=>"project_id IS NOT NULL", :name=>"partial_index_bulk_import_exports_on_project_id_and_relation", :algorithm=>:concurrently})885 -> 0.0020s886-- add_index(:bulk_import_exports, [:project_id, :relation], {:unique=>true, :where=>"project_id IS NOT NULL", :name=>"partial_index_bulk_import_exports_on_project_id_and_relation", :algorithm=>:concurrently})887 -> 0.0015s888== 20210414131807 AddBulkImportExportsTableIndexes: migrated (0.0104s) ========889== 20210414133310 AddBulkImportExportUploadsTable: migrating ==================890-- create_table(:bulk_import_export_uploads, {})891-- quote_column_name(:export_file)892 -> 0.0000s893 -> 0.0043s894-- quote_table_name("check_5add76239d")895 -> 0.0000s896-- quote_table_name(:bulk_import_export_uploads)897 -> 0.0000s898-- execute("ALTER TABLE \"bulk_import_export_uploads\"\nADD CONSTRAINT \"check_5add76239d\" CHECK (char_length(\"export_file\") <= 255)\n")899 -> 0.0009s900== 20210414133310 AddBulkImportExportUploadsTable: migrated (0.0090s) =========901== 20210415074645 IndexMembersOnUserIdAccessLevelRequestedAtIsNull: migrating =902-- transaction_open?()903 -> 0.0000s904-- index_exists?(:members, [:user_id, :access_level], {:where=>"requested_at IS NULL", :name=>"index_members_on_user_id_and_access_level_requested_at_is_null", :algorithm=>:concurrently})905 -> 0.0068s906-- add_index(:members, [:user_id, :access_level], {:where=>"requested_at IS NULL", :name=>"index_members_on_user_id_and_access_level_requested_at_is_null", :algorithm=>:concurrently})907 -> 0.0016s908== 20210415074645 IndexMembersOnUserIdAccessLevelRequestedAtIsNull: migrated (0.0105s) 909== 20210415100159 InitializeConversionOfCiBuildNeedsToBigint: migrating =======910-- table_exists?(:ci_build_needs)911 -> 0.0012s912-- column_exists?(:ci_build_needs, :id)913 -> 0.0017s914-- column_exists?(:ci_build_needs, :build_id)915 -> 0.0014s916-- columns(:ci_build_needs)917 -> 0.0014s918-- add_column(:ci_build_needs, "build_id_convert_to_bigint", :bigint, {:default=>0, :null=>false})919 -> 0.0015s920== 20210415100159 InitializeConversionOfCiBuildNeedsToBigint: migrated (0.0129s) 921== 20210415101228 BackfillCiBuildNeedsForBigintConversion: migrating ==========922-- table_exists?(:ci_build_needs)923 -> 0.0012s924-- column_exists?(:ci_build_needs, :id)925 -> 0.0016s926-- column_exists?(:ci_build_needs, :build_id)927 -> 0.0016s928-- column_exists?(:ci_build_needs, "build_id_convert_to_bigint")929 -> 0.0015s930== 20210415101228 BackfillCiBuildNeedsForBigintConversion: migrated (0.0144s) =931== 20210415142700 AddUrlLimitToPipelineValidation: migrating ==================932-- transaction_open?()933 -> 0.0000s934-- current_schema()935 -> 0.0006s936-- execute("ALTER TABLE application_settings\nADD CONSTRAINT app_settings_ext_pipeline_validation_service_url_text_limit\nCHECK ( char_length(external_pipeline_validation_service_url) <= 255 )\nNOT VALID;\n")937 -> 0.0015s938-- current_schema()939 -> 0.0005s940-- execute("ALTER TABLE application_settings VALIDATE CONSTRAINT app_settings_ext_pipeline_validation_service_url_text_limit;")941 -> 0.0014s942== 20210415142700 AddUrlLimitToPipelineValidation: migrated (0.0137s) =========943== 20210415144538 RemoveIndexEpicsOnGroupIdFromEpics: migrating ===============944-- transaction_open?()945 -> 0.0000s946-- indexes(:epics)947 -> 0.0096s948-- remove_index(:epics, {:algorithm=>:concurrently, :name=>"index_epics_on_group_id"})949 -> 0.0013s950== 20210415144538 RemoveIndexEpicsOnGroupIdFromEpics: migrated (0.0129s) ======951== 20210415155043 MoveContainerRegistryEnabledToProjectFeatures3: migrating ===952-- Scheduled 0 MoveContainerRegistryEnabledToProjectFeature jobs with a maximum of 21000 records per batch and an interval of 120 seconds.953The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:10 UTC."954== 20210415155043 MoveContainerRegistryEnabledToProjectFeatures3: migrated (0.0218s) 955== 20210415172516 CreateVulnerabilityFindingEvidenceRequests: migrating =======956-- create_table(:vulnerability_finding_evidence_requests, {})957-- quote_column_name(:method)958 -> 0.0000s959-- quote_column_name(:url)960 -> 0.0001s961 -> 0.0048s962-- quote_table_name("check_d9d11300f4")963 -> 0.0000s964-- quote_table_name("check_8152fbb236")965 -> 0.0000s966-- quote_table_name(:vulnerability_finding_evidence_requests)967 -> 0.0001s968-- execute("ALTER TABLE \"vulnerability_finding_evidence_requests\"\nADD CONSTRAINT \"check_d9d11300f4\" CHECK (char_length(\"method\") <= 32),\nADD CONSTRAINT \"check_8152fbb236\" CHECK (char_length(\"url\") <= 2048)\n")969 -> 0.0009s970== 20210415172516 CreateVulnerabilityFindingEvidenceRequests: migrated (0.0089s) 971== 20210416172516 CreateVulnerabilityFindingEvidenceResponses: migrating ======972-- create_table(:vulnerability_finding_evidence_responses, {})973-- quote_column_name(:reason_phrase)974 -> 0.0000s975 -> 0.0044s976-- quote_table_name("check_58b124ab48")977 -> 0.0000s978-- quote_table_name(:vulnerability_finding_evidence_responses)979 -> 0.0000s980-- execute("ALTER TABLE \"vulnerability_finding_evidence_responses\"\nADD CONSTRAINT \"check_58b124ab48\" CHECK (char_length(\"reason_phrase\") <= 2048)\n")981 -> 0.0007s982== 20210416172516 CreateVulnerabilityFindingEvidenceResponses: migrated (0.0079s) 983== 20210419090412 RemoveDebianGroupArchitecturesDistributionIdIndex: migrating 984-- transaction_open?()985 -> 0.0000s986-- index_exists?(:packages_debian_group_architectures, :distribution_id, {:name=>"idx_pkgs_deb_grp_architectures_on_distribution_id", :algorithm=>:concurrently})987 -> 0.0024s988-- remove_index(:packages_debian_group_architectures, {:name=>"idx_pkgs_deb_grp_architectures_on_distribution_id", :algorithm=>:concurrently, :column=>:distribution_id})989 -> 0.0033s990== 20210419090412 RemoveDebianGroupArchitecturesDistributionIdIndex: migrated (0.0074s) 991== 20210419090542 RemoveDebianProjectArchitecturesDistributionIdIndex: migrating 992-- transaction_open?()993 -> 0.0000s994-- index_exists?(:packages_debian_project_architectures, :distribution_id, {:name=>"idx_pkgs_deb_proj_architectures_on_distribution_id", :algorithm=>:concurrently})995 -> 0.0026s996-- remove_index(:packages_debian_project_architectures, {:name=>"idx_pkgs_deb_proj_architectures_on_distribution_id", :algorithm=>:concurrently, :column=>:distribution_id})997 -> 0.0034s998== 20210419090542 RemoveDebianProjectArchitecturesDistributionIdIndex: migrated (0.0079s) 999== 20210419203017 AddRemoteImportUrlToImportExportUpload: migrating ===========1000-- add_column(:import_export_uploads, :remote_import_url, :text)1001 -> 0.0014s1002== 20210419203017 AddRemoteImportUrlToImportExportUpload: migrated (0.0015s) ==1003== 20210419203018 AddRemoteTextLimitToImportUrlInImportExportUpload: migrating 1004-- transaction_open?()1005 -> 0.0000s1006-- current_schema()1007 -> 0.0005s1008-- execute("ALTER TABLE import_export_uploads\nADD CONSTRAINT check_58f0d37481\nCHECK ( char_length(remote_import_url) <= 512 )\nNOT VALID;\n")1009 -> 0.0010s1010-- current_schema()1011 -> 0.0005s1012-- execute("ALTER TABLE import_export_uploads VALIDATE CONSTRAINT check_58f0d37481;")1013 -> 0.0008s1014== 20210419203018 AddRemoteTextLimitToImportUrlInImportExportUpload: migrated (0.0092s) 1015== 20210419224834 UpdateIssuesIterationForeignKey: migrating ==================1016-- foreign_keys(:issues)1017 -> 0.0035s1018-- remove_foreign_key(:issues, {:column=>:sprint_id})1019 -> 0.0049s1020-- transaction_open?()1021 -> 0.0000s1022-- foreign_keys(:issues)1023 -> 0.0034s1024-- execute("ALTER TABLE issues\nADD CONSTRAINT fk_3b8c72ea56\nFOREIGN KEY (sprint_id)\nREFERENCES sprints (id)\nON DELETE SET NULL\nNOT VALID;\n")1025 -> 0.0014s1026-- execute("ALTER TABLE issues VALIDATE CONSTRAINT fk_3b8c72ea56;")1027 -> 0.0017s1028== 20210419224834 UpdateIssuesIterationForeignKey: migrated (0.0211s) =========1029== 20210420012444 ChangeWebHookEventsDefault: migrating =======================1030-- change_column_default(:web_hooks, :push_events, true)1031 -> 0.0050s1032-- change_column_default(:web_hooks, :issues_events, false)1033 -> 0.0041s1034-- change_column_default(:web_hooks, :merge_requests_events, false)1035 -> 0.0036s1036-- change_column_default(:web_hooks, :tag_push_events, false)1037 -> 0.0037s1038== 20210420012444 ChangeWebHookEventsDefault: migrated (0.0167s) ==============1039== 20210420012909 IndexClusterAgentTokensOnLastUsedAt: migrating ==============1040-- transaction_open?()1041 -> 0.0000s1042-- index_exists?(:cluster_agent_tokens, "agent_id, last_used_at DESC NULLS LAST", {:name=>"index_cluster_agent_tokens_on_agent_id_and_last_used_at", :algorithm=>:concurrently})1043 -> 0.0028s1044-- add_index(:cluster_agent_tokens, "agent_id, last_used_at DESC NULLS LAST", {:name=>"index_cluster_agent_tokens_on_agent_id_and_last_used_at", :algorithm=>:concurrently})1045 -> 0.0013s1046-- transaction_open?()1047 -> 0.0000s1048-- indexes(:cluster_agent_tokens)1049 -> 0.0031s1050-- remove_index(:cluster_agent_tokens, {:algorithm=>:concurrently, :name=>"index_cluster_agent_tokens_on_agent_id"})1051 -> 0.0012s1052== 20210420012909 IndexClusterAgentTokensOnLastUsedAt: migrated (0.0114s) =====1053== 20210420103955 RemoveHipchatServiceRecords: migrating ======================1054== 20210420103955 RemoveHipchatServiceRecords: migrated (0.0025s) =============1055== 20210420120734 InitializeConversionOfCiJobArtifactsToBigint: migrating =====1056-- table_exists?(:ci_job_artifacts)1057 -> 0.0011s1058-- column_exists?(:ci_job_artifacts, :id)1059 -> 0.0019s1060-- column_exists?(:ci_job_artifacts, :id)1061 -> 0.0017s1062-- column_exists?(:ci_job_artifacts, :job_id)1063 -> 0.0017s1064-- columns(:ci_job_artifacts)1065 -> 0.0017s1066-- add_column(:ci_job_artifacts, "id_convert_to_bigint", :bigint, {:default=>0, :null=>false})1067 -> 0.0014s1068-- columns(:ci_job_artifacts)1069 -> 0.0018s1070-- add_column(:ci_job_artifacts, "job_id_convert_to_bigint", :bigint, {:default=>0, :null=>false})1071 -> 0.0011s1072== 20210420120734 InitializeConversionOfCiJobArtifactsToBigint: migrated (0.0170s) 1073== 20210420121149 BackfillConversionOfCiJobArtifacts: migrating ===============1074-- table_exists?(:ci_job_artifacts)1075 -> 0.0011s1076-- column_exists?(:ci_job_artifacts, :id)1077 -> 0.0019s1078-- column_exists?(:ci_job_artifacts, :id)1079 -> 0.0018s1080-- column_exists?(:ci_job_artifacts, "id_convert_to_bigint")1081 -> 0.0018s1082-- column_exists?(:ci_job_artifacts, :job_id)1083 -> 0.0020s1084-- column_exists?(:ci_job_artifacts, "job_id_convert_to_bigint")1085 -> 0.0018s1086== 20210420121149 BackfillConversionOfCiJobArtifacts: migrated (0.0165s) ======1087== 20210420173030 AddVerificationIndexesToTerraformStateVersions: migrating ===1088-- transaction_open?()1089 -> 0.0000s1090-- index_exists?(:terraform_state_versions, :verification_state, {:name=>"index_terraform_state_versions_on_verification_state", :algorithm=>:concurrently})1091 -> 0.0037s1092-- add_index(:terraform_state_versions, :verification_state, {:name=>"index_terraform_state_versions_on_verification_state", :algorithm=>:concurrently})1093 -> 0.0014s1094-- transaction_open?()1095 -> 0.0000s1096-- index_exists?(:terraform_state_versions, :verified_at, {:where=>"(verification_state = 0)", :order=>{:verified_at=>"ASC NULLS FIRST"}, :name=>"index_terraform_state_versions_pending_verification", :algorithm=>:concurrently})1097 -> 0.0032s1098-- add_index(:terraform_state_versions, :verified_at, {:where=>"(verification_state = 0)", :order=>{:verified_at=>"ASC NULLS FIRST"}, :name=>"index_terraform_state_versions_pending_verification", :algorithm=>:concurrently})1099 -> 0.0013s1100-- transaction_open?()1101 -> 0.0000s1102-- index_exists?(:terraform_state_versions, :verification_retry_at, {:where=>"(verification_state = 3)", :order=>{:verification_retry_at=>"ASC NULLS FIRST"}, :name=>"index_terraform_state_versions_failed_verification", :algorithm=>:concurrently})1103 -> 0.0034s1104-- add_index(:terraform_state_versions, :verification_retry_at, {:where=>"(verification_state = 3)", :order=>{:verification_retry_at=>"ASC NULLS FIRST"}, :name=>"index_terraform_state_versions_failed_verification", :algorithm=>:concurrently})1105 -> 0.0015s1106-- transaction_open?()1107 -> 0.0000s1108-- index_exists?(:terraform_state_versions, :verification_state, {:where=>"(verification_state = 0 OR verification_state = 3)", :name=>"index_terraform_state_versions_needs_verification", :algorithm=>:concurrently})1109 -> 0.0040s1110-- add_index(:terraform_state_versions, :verification_state, {:where=>"(verification_state = 0 OR verification_state = 3)", :name=>"index_terraform_state_versions_needs_verification", :algorithm=>:concurrently})1111 -> 0.0015s1112== 20210420173030 AddVerificationIndexesToTerraformStateVersions: migrated (0.0262s) 1113== 20210420210642 RecreateIndexForProjectDeploymentsWithEnvironmentIdAndDateAt: migrating 1114-- transaction_open?()1115 -> 0.0000s1116-- index_exists?(:deployments, [:project_id, :environment_id, :updated_at, :id], {:name=>"index_deployments_on_project_and_environment_and_updated_at_id", :algorithm=>:concurrently})1117 -> 0.0121s1118-- add_index(:deployments, [:project_id, :environment_id, :updated_at, :id], {:name=>"index_deployments_on_project_and_environment_and_updated_at_id", :algorithm=>:concurrently})1119 -> 0.0016s1120-- transaction_open?()1121 -> 0.0000s1122-- indexes(:deployments)1123 -> 0.0123s1124-- remove_index(:deployments, {:algorithm=>:concurrently, :name=>"index_deployments_on_project_and_environment_and_updated_at"})1125 -> 0.0011s1126== 20210420210642 RecreateIndexForProjectDeploymentsWithEnvironmentIdAndDateAt: migrated (0.0304s) 1127== 20210420221106 UpdateMergeRequestsIterationForeignKey: migrating ===========1128-- foreign_keys(:merge_requests)1129 -> 0.0035s1130-- remove_foreign_key(:merge_requests, {:column=>:sprint_id})1131 -> 0.0045s1132-- transaction_open?()1133 -> 0.0000s1134-- foreign_keys(:merge_requests)1135 -> 0.0033s1136-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_7e85395a64\nFOREIGN KEY (sprint_id)\nREFERENCES sprints (id)\nON DELETE SET NULL\nNOT VALID;\n")1137 -> 0.0011s1138-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_7e85395a64;")1139 -> 0.0015s1140== 20210420221106 UpdateMergeRequestsIterationForeignKey: migrated (0.0201s) ==1141== 20210421021510 AddDeactivateDormantUsersToApplicationSettings: migrating ===1142-- add_column(:application_settings, :deactivate_dormant_users, :boolean, {:default=>false, :null=>false})1143 -> 0.0027s1144== 20210421021510 AddDeactivateDormantUsersToApplicationSettings: migrated (0.0029s) 1145== 20210421022010 AddIndexForDormantUsers: migrating ==========================1146-- transaction_open?()1147 -> 0.0000s1148-- index_exists?(:users, [:id, :last_activity_on], {:where=>"state = 'active' AND (users.user_type IS NULL OR users.user_type IN (NULL, 6, 4))", :name=>"index_users_on_id_and_last_activity_on_for_non_internal_active", :algorithm=>:concurrently})1149 -> 0.0137s1150-- add_index(:users, [:id, :last_activity_on], {:where=>"state = 'active' AND (users.user_type IS NULL OR users.user_type IN (NULL, 6, 4))", :name=>"index_users_on_id_and_last_activity_on_for_non_internal_active", :algorithm=>:concurrently})1151 -> 0.0030s1152== 20210421022010 AddIndexForDormantUsers: migrated (0.0190s) =================1153== 20210421081724 AddCodeownersDevopsAdoptionSnapshot: migrating ==============1154-- add_column(:analytics_devops_adoption_snapshots, :total_projects_count, :integer)1155 -> 0.0015s1156-- add_column(:analytics_devops_adoption_snapshots, :code_owners_used_count, :integer)1157 -> 0.0008s1158== 20210421081724 AddCodeownersDevopsAdoptionSnapshot: migrated (0.0026s) =====1159== 20210421163509 ScheduleUpdateJiraTrackerDataDeploymentTypeBasedOnUrl: migrating 1160-- Scheduling UpdateJiraTrackerDataDeploymentTypeBasedOnUrl jobs1161-- Scheduled 0 UpdateJiraTrackerDataDeploymentTypeBasedOnUrl jobs with a maximum of 2500 records per batch and an interval of 120 seconds.1162The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:10 UTC."1163== 20210421163509 ScheduleUpdateJiraTrackerDataDeploymentTypeBasedOnUrl: migrated (0.0043s) 1164== 20210421190157 RemoveElasticTaskNullConstraintFromElasticReindexingSubtasks: migrating 1165-- transaction_open?()1166 -> 0.0000s1167-- execute("ALTER TABLE elastic_reindexing_subtasks\nDROP CONSTRAINT IF EXISTS check_aaf4e1bc37\n")1168 -> 0.0008s1169-- change_column_null(:elastic_reindexing_subtasks, :elastic_task, true)1170 -> 0.0013s1171== 20210421190157 RemoveElasticTaskNullConstraintFromElasticReindexingSubtasks: migrated (0.0060s) 1172== 20210422022825 InitializeConversionOfCiSourcesPipelinesSourceJobIdToBigint: migrating 1173-- table_exists?(:ci_sources_pipelines)1174 -> 0.0014s1175-- column_exists?(:ci_sources_pipelines, :id)1176 -> 0.0019s1177-- column_exists?(:ci_sources_pipelines, :source_job_id)1178 -> 0.0016s1179-- columns(:ci_sources_pipelines)1180 -> 0.0018s1181-- add_column(:ci_sources_pipelines, "source_job_id_convert_to_bigint", :bigint, {:default=>nil})1182 -> 0.0016s1183== 20210422022825 InitializeConversionOfCiSourcesPipelinesSourceJobIdToBigint: migrated (0.0151s) 1184== 20210422023046 BackfillCiSourcesPipelinesSourceJobIdForBigintConversion: migrating 1185-- table_exists?(:ci_sources_pipelines)1186 -> 0.0015s1187-- column_exists?(:ci_sources_pipelines, :id)1188 -> 0.0020s1189-- column_exists?(:ci_sources_pipelines, :source_job_id)1190 -> 0.0021s1191-- column_exists?(:ci_sources_pipelines, "source_job_id_convert_to_bigint")1192 -> 0.0018s1193== 20210422023046 BackfillCiSourcesPipelinesSourceJobIdForBigintConversion: migrated (0.0174s) 1194== 20210422142647 AddProjectIdNextRunAtIndexToContainerExpirationPolicies: migrating 1195-- transaction_open?()1196 -> 0.0000s1197-- index_exists?(:container_expiration_policies, [:project_id, :next_run_at], {:name=>"idx_container_exp_policies_on_project_id_next_run_at", :where=>"enabled = true", :algorithm=>:concurrently})1198 -> 0.0028s1199-- add_index(:container_expiration_policies, [:project_id, :next_run_at], {:name=>"idx_container_exp_policies_on_project_id_next_run_at", :where=>"enabled = true", :algorithm=>:concurrently})1200 -> 0.0016s1201== 20210422142647 AddProjectIdNextRunAtIndexToContainerExpirationPolicies: migrated (0.0065s) 1202== 20210422181809 AddProjectToTimelogs: migrating =============================1203-- add_column(:timelogs, :project_id, :integer)1204 -> 0.0009s1205== 20210422181809 AddProjectToTimelogs: migrated (0.0035s) ====================1206== 20210422195929 CreateElasticReindexingSlices: migrating ====================1207-- table_exists?(:elastic_reindexing_slices)1208 -> 0.0007s1209-- create_table(:elastic_reindexing_slices, {})1210-- quote_column_name(:elastic_task)1211 -> 0.0000s1212 -> 0.0067s1213-- quote_table_name("check_ca30e1396e")1214 -> 0.0000s1215-- quote_table_name(:elastic_reindexing_slices)1216 -> 0.0000s1217-- execute("ALTER TABLE \"elastic_reindexing_slices\"\nADD CONSTRAINT \"check_ca30e1396e\" CHECK (char_length(\"elastic_task\") <= 255)\n")1218 -> 0.0009s1219== 20210422195929 CreateElasticReindexingSlices: migrated (0.0160s) ===========1220== 20210423054022 CreateDastSiteProfilesPipelines: migrating ==================1221-- create_table(:dast_site_profiles_pipelines, {:primary_key=>[:dast_site_profile_id, :ci_pipeline_id], :comment=>"{\"owner\":\"group::dynamic analysis\",\"description\":\"Join table between DAST Site Profiles and CI Pipelines\"}"})1222 -> 0.0037s1223== 20210423054022 CreateDastSiteProfilesPipelines: migrated (0.0039s) =========1224== 20210423054537 AddDastSiteProfileIdFkToDastSiteProfilesPipelines: migrating 1225-- transaction_open?()1226 -> 0.0000s1227-- foreign_keys(:dast_site_profiles_pipelines)1228 -> 0.0036s1229-- execute("ALTER TABLE dast_site_profiles_pipelines\nADD CONSTRAINT fk_cf05cf8fe1\nFOREIGN KEY (dast_site_profile_id)\nREFERENCES dast_site_profiles (id)\nON DELETE CASCADE\nNOT VALID;\n")1230 -> 0.0012s1231-- execute("ALTER TABLE dast_site_profiles_pipelines VALIDATE CONSTRAINT fk_cf05cf8fe1;")1232 -> 0.0013s1233== 20210423054537 AddDastSiteProfileIdFkToDastSiteProfilesPipelines: migrated (0.0101s) 1234== 20210423054846 AddCiPipelineIdFkToDastSiteProfilesPipelines: migrating =====1235-- transaction_open?()1236 -> 0.0000s1237-- foreign_keys(:dast_site_profiles_pipelines)1238 -> 0.0041s1239-- execute("ALTER TABLE dast_site_profiles_pipelines\nADD CONSTRAINT fk_53849b0ad5\nFOREIGN KEY (ci_pipeline_id)\nREFERENCES ci_pipelines (id)\nON DELETE CASCADE\nNOT VALID;\n")1240 -> 0.0014s1241-- execute("ALTER TABLE dast_site_profiles_pipelines VALIDATE CONSTRAINT fk_53849b0ad5;")1242 -> 0.0015s1243== 20210423054846 AddCiPipelineIdFkToDastSiteProfilesPipelines: migrated (0.0111s) 1244== 20210423124223 RemoveProxySettingsToJiraTrackerData: migrating =============1245-- remove_column(:jira_tracker_data, :encrypted_proxy_address, :text)1246 -> 0.0014s1247-- remove_column(:jira_tracker_data, :encrypted_proxy_address_iv, :text)1248 -> 0.0009s1249-- remove_column(:jira_tracker_data, :encrypted_proxy_port, :text)1250 -> 0.0006s1251-- remove_column(:jira_tracker_data, :encrypted_proxy_port_iv, :text)1252 -> 0.0007s1253-- remove_column(:jira_tracker_data, :encrypted_proxy_username, :text)1254 -> 0.0007s1255-- remove_column(:jira_tracker_data, :encrypted_proxy_username_iv, :text)1256 -> 0.0007s1257-- remove_column(:jira_tracker_data, :encrypted_proxy_password, :text)1258 -> 0.0006s1259-- remove_column(:jira_tracker_data, :encrypted_proxy_password_iv, :text)1260 -> 0.0007s1261== 20210423124223 RemoveProxySettingsToJiraTrackerData: migrated (0.0068s) ====1262== 20210423155059 AddRunnerRegistrationToPlanLimits: migrating ================1263-- add_column(:plan_limits, :ci_registered_group_runners, :integer, {:default=>1000, :null=>false})1264 -> 0.0020s1265-- add_column(:plan_limits, :ci_registered_project_runners, :integer, {:default=>1000, :null=>false})1266 -> 0.0013s1267== 20210423155059 AddRunnerRegistrationToPlanLimits: migrated (0.0035s) =======1268== 20210423160427 ScheduleDropInvalidVulnerabilities: migrating ===============1269-- Scheduling DropInvalidVulnerabilities jobs1270-- Scheduled 0 DropInvalidVulnerabilities jobs with a maximum of 10000 records per batch and an interval of 120 seconds.1271The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:11 UTC."1272== 20210423160427 ScheduleDropInvalidVulnerabilities: migrated (0.0040s) ======1273== 20210423164702 InsertRunnerRegistrationPlanLimits: migrating ===============1274-- quote_column_name("ci_registered_group_runners")1275 -> 0.0000s1276-- quote("free")1277 -> 0.0000s1278-- quote(50)1279 -> 0.0000s1280-- execute("INSERT INTO plan_limits (plan_id, \"ci_registered_group_runners\")\nSELECT id, '50' FROM plans WHERE name = 'free' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"ci_registered_group_runners\" = EXCLUDED.\"ci_registered_group_runners\";\n")1281 -> 0.0016s1282-- quote_column_name("ci_registered_group_runners")1283 -> 0.0000s1284-- quote("bronze")1285 -> 0.0000s1286-- quote(1000)1287 -> 0.0000s1288-- execute("INSERT INTO plan_limits (plan_id, \"ci_registered_group_runners\")\nSELECT id, '1000' FROM plans WHERE name = 'bronze' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"ci_registered_group_runners\" = EXCLUDED.\"ci_registered_group_runners\";\n")1289 -> 0.0007s1290-- quote_column_name("ci_registered_group_runners")1291 -> 0.0000s1292-- quote("silver")1293 -> 0.0000s1294-- quote(1000)1295 -> 0.0000s1296-- execute("INSERT INTO plan_limits (plan_id, \"ci_registered_group_runners\")\nSELECT id, '1000' FROM plans WHERE name = 'silver' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"ci_registered_group_runners\" = EXCLUDED.\"ci_registered_group_runners\";\n")1297 -> 0.0008s1298-- quote_column_name("ci_registered_group_runners")1299 -> 0.0000s1300-- quote("gold")1301 -> 0.0000s1302-- quote(1000)1303 -> 0.0001s1304-- execute("INSERT INTO plan_limits (plan_id, \"ci_registered_group_runners\")\nSELECT id, '1000' FROM plans WHERE name = 'gold' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"ci_registered_group_runners\" = EXCLUDED.\"ci_registered_group_runners\";\n")1305 -> 0.0010s1306-- quote_column_name("ci_registered_project_runners")1307 -> 0.0000s1308-- quote("free")1309 -> 0.0000s1310-- quote(50)1311 -> 0.0000s1312-- execute("INSERT INTO plan_limits (plan_id, \"ci_registered_project_runners\")\nSELECT id, '50' FROM plans WHERE name = 'free' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"ci_registered_project_runners\" = EXCLUDED.\"ci_registered_project_runners\";\n")1313 -> 0.0009s1314-- quote_column_name("ci_registered_project_runners")1315 -> 0.0000s1316-- quote("bronze")1317 -> 0.0000s1318-- quote(1000)1319 -> 0.0000s1320-- execute("INSERT INTO plan_limits (plan_id, \"ci_registered_project_runners\")\nSELECT id, '1000' FROM plans WHERE name = 'bronze' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"ci_registered_project_runners\" = EXCLUDED.\"ci_registered_project_runners\";\n")1321 -> 0.0008s1322-- quote_column_name("ci_registered_project_runners")1323 -> 0.0000s1324-- quote("silver")1325 -> 0.0000s1326-- quote(1000)1327 -> 0.0000s1328-- execute("INSERT INTO plan_limits (plan_id, \"ci_registered_project_runners\")\nSELECT id, '1000' FROM plans WHERE name = 'silver' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"ci_registered_project_runners\" = EXCLUDED.\"ci_registered_project_runners\";\n")1329 -> 0.0007s1330-- quote_column_name("ci_registered_project_runners")1331 -> 0.0000s1332-- quote("gold")1333 -> 0.0000s1334-- quote(1000)1335 -> 0.0000s1336-- execute("INSERT INTO plan_limits (plan_id, \"ci_registered_project_runners\")\nSELECT id, '1000' FROM plans WHERE name = 'gold' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"ci_registered_project_runners\" = EXCLUDED.\"ci_registered_project_runners\";\n")1337 -> 0.0008s1338== 20210423164702 InsertRunnerRegistrationPlanLimits: migrated (0.0096s) ======1339== 20210423171304 ReOrderFkSourceProjectIdInMergeRequests: migrating ==========1340-- transaction_open?()1341 -> 0.0000s1342-- foreign_keys(:merge_requests)1343 -> 0.0036s1344-- execute("ALTER TABLE merge_requests\nADD CONSTRAINT fk_source_project\nFOREIGN KEY (source_project_id)\nREFERENCES projects (id)\nON DELETE SET NULL\nNOT VALID;\n")1345 -> 0.0022s1346-- execute("ALTER TABLE merge_requests VALIDATE CONSTRAINT fk_source_project;")1347 -> 0.0031s1348-- foreign_keys(:merge_requests)1349 -> 0.0042s1350-- remove_foreign_key(:merge_requests, {:column=>:source_project_id, :name=>"fk_3308fe130c"})1351 -> 0.0055s1352== 20210423171304 ReOrderFkSourceProjectIdInMergeRequests: migrated (0.0232s) =1353== 20210424115725 SwapPartitionedWebHookLogs: migrating =======================1354-- transaction()1355-- execute("DROP TRIGGER IF EXISTS table_sync_trigger_b99eb6998c ON web_hook_logs")1356 -> 0.0008s1357-- execute("DROP FUNCTION IF EXISTS table_sync_function_29bc99d6db()")1358 -> 0.0007s1359-- replace_table("ALTER TABLE "web_hook_logs"1360ALTER COLUMN "id" DROP DEFAULT;1361ALTER TABLE "web_hook_logs_part_0c5294f417"1362ALTER COLUMN "id" SET DEFAULT nextval('"web_hook_logs_id_seq"'::regclass);1363ALTER SEQUENCE "web_hook_logs_id_seq"1364OWNED BY "web_hook_logs_part_0c5294f417"."id";1365ALTER TABLE "web_hook_logs"1366RENAME TO "web_hook_logs_archived";1367ALTER TABLE "web_hook_logs_archived"1368RENAME CONSTRAINT "web_hook_logs_pkey" TO "web_hook_logs_archived_pkey";1369ALTER TABLE "web_hook_logs_part_0c5294f417"1370RENAME TO "web_hook_logs";1371ALTER TABLE "web_hook_logs"1372RENAME CONSTRAINT "web_hook_logs_part_0c5294f417_pkey" TO "web_hook_logs_pkey";1373ALTER TABLE "gitlab_partitions_dynamic"."web_hook_logs_part_0c5294f417_000000"1374RENAME CONSTRAINT "web_hook_logs_part_0c5294f417_000000_pkey" TO "web_hook_logs_000000_pkey";1375ALTER TABLE "gitlab_partitions_dynamic"."web_hook_logs_part_0c5294f417_000000"1376RENAME TO "web_hook_logs_000000";1377ALTER TABLE "gitlab_partitions_dynamic"."web_hook_logs_part_0c5294f417_202110"1378RENAME CONSTRAINT "web_hook_logs_part_0c5294f417_202110_pkey" TO "web_hook_logs_202110_pkey";1379ALTER TABLE "gitlab_partitions_dynamic"."web_hook_logs_part_0c5294f417_202110"1380RENAME TO "web_hook_logs_202110";1381ALTER TABLE "gitlab_partitions_dynamic"."web_hook_logs_part_0c5294f417_202111"1382RENAME CONSTRAINT "web_hook_logs_part_0c5294f417_202111_pkey" TO "web_hook_logs_202111_pkey";1383ALTER TABLE "gitlab_partitions_dynamic"."web_hook_logs_part_0c5294f417_202111"1384RENAME TO "web_hook_logs_202111"")1385-- execute("CREATE FUNCTION table_sync_function_29bc99d6db()\nRETURNS TRIGGER AS\n$$\nBEGIN\nIF (TG_OP = 'DELETE') THEN\n DELETE FROM web_hook_logs_archived where id = OLD.id;\nELSIF (TG_OP = 'UPDATE') THEN\n UPDATE web_hook_logs_archived\n SET web_hook_id = NEW.web_hook_id,\n trigger = NEW.trigger,\n url = NEW.url,\n request_headers = NEW.request_headers,\n request_data = NEW.request_data,\n response_headers = NEW.response_headers,\n response_body = NEW.response_body,\n response_status = NEW.response_status,\n execution_duration = NEW.execution_duration,\n internal_error_message = NEW.internal_error_message,\n created_at = NEW.created_at,\n updated_at = NEW.updated_at\n WHERE web_hook_logs_archived.id = NEW.id;\nELSIF (TG_OP = 'INSERT') THEN\n INSERT INTO web_hook_logs_archived (id,\n web_hook_id,\n trigger,\n url,\n request_headers,\n request_data,\n response_headers,\n response_body,\n response_status,\n execution_duration,\n internal_error_message,\n created_at,\n updated_at)\n VALUES (NEW.id,\n NEW.web_hook_id,\n NEW.trigger,\n NEW.url,\n NEW.request_headers,\n NEW.request_data,\n NEW.response_headers,\n NEW.response_body,\n NEW.response_status,\n NEW.execution_duration,\n NEW.internal_error_message,\n NEW.created_at,\n NEW.updated_at);\nEND IF;\nRETURN NULL;\n\nEND\n$$ LANGUAGE PLPGSQL\n")1386 -> 0.0011s1387-- execute("COMMENT ON FUNCTION table_sync_function_29bc99d6db IS 'Partitioning migration: table sync for web_hook_logs table'")1388 -> 0.0007s1389-- current_schema()1390 -> 0.0005s1391-- execute("CREATE TRIGGER table_sync_trigger_b99eb6998c\nAFTER INSERT OR UPDATE OR DELETE ON web_hook_logs\nFOR EACH ROW\nEXECUTE FUNCTION table_sync_function_29bc99d6db()\n")1392 -> 0.0012s1393 -> 0.0265s1394== 20210424115725 SwapPartitionedWebHookLogs: migrated (0.0420s) ==============1395== 20210424163400 AddProjectIdFkToTimelogs: migrating =========================1396-- transaction_open?()1397 -> 0.0000s1398-- index_exists?(:timelogs, [:project_id, :spent_at], {:name=>"index_timelogs_on_project_id_and_spent_at", :algorithm=>:concurrently})1399 -> 0.0040s1400-- add_index(:timelogs, [:project_id, :spent_at], {:name=>"index_timelogs_on_project_id_and_spent_at", :algorithm=>:concurrently})1401 -> 0.0016s1402-- transaction_open?()1403 -> 0.0000s1404-- foreign_keys(:timelogs)1405 -> 0.0037s1406-- execute("ALTER TABLE timelogs\nADD CONSTRAINT fk_c49c83dd77\nFOREIGN KEY (project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n")1407 -> 0.0021s1408-- execute("ALTER TABLE timelogs VALIDATE CONSTRAINT fk_c49c83dd77;")1409 -> 0.0021s1410== 20210424163400 AddProjectIdFkToTimelogs: migrated (0.0195s) ================1411== 20210426094524 InitializeConversionOfCiBuildsToBigint: migrating ===========1412-- table_exists?(:ci_builds)1413 -> 0.0011s1414-- column_exists?(:ci_builds, :id)1415 -> 0.0037s1416-- column_exists?(:ci_builds, :id)1417 -> 0.0034s1418-- column_exists?(:ci_builds, :stage_id)1419 -> 0.0033s1420-- columns(:ci_builds)1421 -> 0.0034s1422-- add_column(:ci_builds, "id_convert_to_bigint", :bigint, {:default=>0, :null=>false})1423 -> 0.0015s1424-- columns(:ci_builds)1425 -> 0.0035s1426-- add_column(:ci_builds, "stage_id_convert_to_bigint", :bigint, {:default=>nil})1427 -> 0.0012s1428== 20210426094524 InitializeConversionOfCiBuildsToBigint: migrated (0.0260s) ==1429== 20210426094549 BackfillCiBuildsForBigintConversion: migrating ==============1430-- table_exists?(:ci_builds)1431 -> 0.0011s1432-- column_exists?(:ci_builds, :id)1433 -> 0.0035s1434-- column_exists?(:ci_builds, :id)1435 -> 0.0034s1436-- column_exists?(:ci_builds, "id_convert_to_bigint")1437 -> 0.0035s1438-- column_exists?(:ci_builds, :stage_id)1439 -> 0.0033s1440-- column_exists?(:ci_builds, "stage_id_convert_to_bigint")1441 -> 0.0034s1442== 20210426094549 BackfillCiBuildsForBigintConversion: migrated (0.0244s) =====1443== 20210426225417 ScheduleRecalculateUuidOnVulnerabilitiesOccurrences2: migrating 1444-- Scheduling RecalculateVulnerabilitiesOccurrencesUuid jobs1445-- Scheduled 0 RecalculateVulnerabilitiesOccurrencesUuid jobs with a maximum of 2500 records per batch and an interval of 120 seconds.1446The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:11 UTC."1447== 20210426225417 ScheduleRecalculateUuidOnVulnerabilitiesOccurrences2: migrated (0.0040s) 1448== 20210427045604 InitializeConversionOfCiBuildTraceChunksToBigint: migrating =1449-- table_exists?(:ci_build_trace_chunks)1450 -> 0.0013s1451-- column_exists?(:ci_build_trace_chunks, :id)1452 -> 0.0017s1453-- column_exists?(:ci_build_trace_chunks, :build_id)1454 -> 0.0016s1455-- columns(:ci_build_trace_chunks)1456 -> 0.0015s1457-- add_column(:ci_build_trace_chunks, "build_id_convert_to_bigint", :bigint, {:default=>0, :null=>false})1458 -> 0.0013s1459== 20210427045604 InitializeConversionOfCiBuildTraceChunksToBigint: migrated (0.0120s) 1460== 20210427045711 BackfillCiBuildTraceChunksForBigintConversion: migrating ====1461-- table_exists?(:ci_build_trace_chunks)1462 -> 0.0011s1463-- column_exists?(:ci_build_trace_chunks, :id)1464 -> 0.0017s1465-- column_exists?(:ci_build_trace_chunks, :build_id)1466 -> 0.0014s1467-- column_exists?(:ci_build_trace_chunks, "build_id_convert_to_bigint")1468 -> 0.0015s1469== 20210427045711 BackfillCiBuildTraceChunksForBigintConversion: migrated (0.0112s) 1470== 20210427062807 AddIndexToBatchedMigrationJobsStatus: migrating =============1471-- transaction_open?()1472 -> 0.0000s1473-- index_exists?(:batched_background_migration_jobs, [:batched_background_migration_id, :status], {:name=>"index_batched_jobs_on_batched_migration_id_and_status", :algorithm=>:concurrently})1474 -> 0.0019s1475-- add_index(:batched_background_migration_jobs, [:batched_background_migration_id, :status], {:name=>"index_batched_jobs_on_batched_migration_id_and_status", :algorithm=>:concurrently})1476 -> 0.0015s1477== 20210427062807 AddIndexToBatchedMigrationJobsStatus: migrated (0.0050s) ====1478== 20210427084924 InitializeConversionOfCiBuildsRunnerSessionToBigint: migrating 1479-- table_exists?(:ci_builds_runner_session)1480 -> 0.0010s1481-- column_exists?(:ci_builds_runner_session, :id)1482 -> 0.0016s1483-- column_exists?(:ci_builds_runner_session, :build_id)1484 -> 0.0013s1485-- columns(:ci_builds_runner_session)1486 -> 0.0014s1487-- add_column(:ci_builds_runner_session, "build_id_convert_to_bigint", :bigint, {:default=>0, :null=>false})1488 -> 0.0015s1489== 20210427084924 InitializeConversionOfCiBuildsRunnerSessionToBigint: migrated (0.0117s) 1490== 20210427085020 BackfillCiBuildsRunnerSessionForBigintConversion: migrating =1491-- table_exists?(:ci_builds_runner_session)1492 -> 0.0012s1493-- column_exists?(:ci_builds_runner_session, :id)1494 -> 0.0016s1495-- column_exists?(:ci_builds_runner_session, :build_id)1496 -> 0.0014s1497-- column_exists?(:ci_builds_runner_session, "build_id_convert_to_bigint")1498 -> 0.0015s1499== 20210427085020 BackfillCiBuildsRunnerSessionForBigintConversion: migrated (0.0117s) 1500== 20210427094931 AddExecutionOrderIndexToBatchedBackgroundMigrationJobs: migrating 1501-- transaction_open?()1502 -> 0.0000s1503-- index_exists?(:batched_background_migration_jobs, [:batched_background_migration_id, :finished_at], {:name=>"index_migration_jobs_on_migration_id_and_finished_at", :algorithm=>:concurrently})1504 -> 0.0025s1505-- add_index(:batched_background_migration_jobs, [:batched_background_migration_id, :finished_at], {:name=>"index_migration_jobs_on_migration_id_and_finished_at", :algorithm=>:concurrently})1506 -> 0.0014s1507== 20210427094931 AddExecutionOrderIndexToBatchedBackgroundMigrationJobs: migrated (0.0055s) 1508== 20210427125400 AddSpamcheckApiKeyToApplicationSetting: migrating ===========1509-- add_column(:application_settings, :encrypted_spam_check_api_key, :binary)1510 -> 0.0019s1511-- add_column(:application_settings, :encrypted_spam_check_api_key_iv, :binary)1512 -> 0.0009s1513== 20210427125400 AddSpamcheckApiKeyToApplicationSetting: migrated (0.0030s) ==1514== 20210427194958 AddDescriptionRollOverToIterationsCadences: migrating =======1515-- add_column(:iterations_cadences, :roll_over, :boolean, {:null=>false, :default=>false})1516 -> 0.0012s1517-- add_column(:iterations_cadences, :description, :text)1518 -> 0.0006s1519== 20210427194958 AddDescriptionRollOverToIterationsCadences: migrated (0.0046s) 1520== 20210427200840 AddTextLimitToIterationsCadencesDescription: migrating ======1521-- transaction_open?()1522 -> 0.0000s1523-- current_schema()1524 -> 0.0004s1525-- execute("ALTER TABLE iterations_cadences\nADD CONSTRAINT check_5c5d2b44bd\nCHECK ( char_length(description) <= 5000 )\nNOT VALID;\n")1526 -> 0.0008s1527-- current_schema()1528 -> 0.0004s1529-- execute("ALTER TABLE iterations_cadences VALIDATE CONSTRAINT check_5c5d2b44bd;")1530 -> 0.0007s1531== 20210427200840 AddTextLimitToIterationsCadencesDescription: migrated (0.0075s) 1532== 20210427212034 ScheduleUpdateTimelogsProjectId: migrating ==================1533-- Scheduled 0 UpdateTimelogsProjectId jobs with a maximum of 50000 records per batch and an interval of 120 seconds.1534The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:11 UTC."1535== 20210427212034 ScheduleUpdateTimelogsProjectId: migrated (0.0038s) =========1536== 20210428151144 UpdateInvalidWebHooks: migrating ============================1537== 20210428151144 UpdateInvalidWebHooks: migrated (0.0025s) ===================1538== 20210428151238 ValidateForeignKeyOnGroupHooks: migrating ===================1539-- foreign_keys(:web_hooks)1540 -> 0.0038s1541-- execute("ALTER TABLE web_hooks VALIDATE CONSTRAINT fk_rails_d35697648e;")1542 -> 0.0012s1543== 20210428151238 ValidateForeignKeyOnGroupHooks: migrated (0.0058s) ==========1544== 20210429024843 AddEscalationPolicies: migrating ============================1545-- create_table(:incident_management_escalation_policies, {})1546-- quote_column_name(:name)1547 -> 0.0000s1548-- quote_column_name(:description)1549 -> 0.0000s1550 -> 0.0049s1551-- quote_table_name("check_9a26365850")1552 -> 0.0000s1553-- quote_table_name("check_510b2a5258")1554 -> 0.0000s1555-- quote_table_name(:incident_management_escalation_policies)1556 -> 0.0000s1557-- execute("ALTER TABLE \"incident_management_escalation_policies\"\nADD CONSTRAINT \"check_9a26365850\" CHECK (char_length(\"name\") <= 72),\nADD CONSTRAINT \"check_510b2a5258\" CHECK (char_length(\"description\") <= 160)\n")1558 -> 0.0009s1559== 20210429024843 AddEscalationPolicies: migrated (0.0086s) ===================1560== 20210429032320 AddEscalationRules: migrating ===============================1561-- create_table(:incident_management_escalation_rules, {})1562 -> 0.0045s1563== 20210429032320 AddEscalationRules: migrated (0.0046s) ======================1564== 20210429131525 CreateUserCreditCardValidations: migrating ==================1565-- create_table(:user_credit_card_validations, {:id=>false})1566 -> 0.0026s1567== 20210429131525 CreateUserCreditCardValidations: migrated (0.0051s) =========1568== 20210429143649 AddNewIssuesIndexForRelativePosition: migrating =============1569-- transaction_open?()1570 -> 0.0000s1571-- index_exists?(:issues, [:project_id, :relative_position, :id], {:name=>"idx_issues_on_project_id_and_rel_asc_and_id", :algorithm=>:concurrently})1572 -> 0.0135s1573-- add_index(:issues, [:project_id, :relative_position, :id], {:name=>"idx_issues_on_project_id_and_rel_asc_and_id", :algorithm=>:concurrently})1574 -> 0.0018s1575== 20210429143649 AddNewIssuesIndexForRelativePosition: migrated (0.0170s) ====1576== 20210429181325 AddFailureTrackingToWebHooks: migrating =====================1577-- change_table(:web_hooks, {:bulk=>true})1578 -> 0.0023s1579== 20210429181325 AddFailureTrackingToWebHooks: migrated (0.0024s) ============1580== 20210429192653 AddGenericPackageDuplicateSettingsToNamespacePackageSettings: migrating 1581-- add_column(:namespace_package_settings, :generic_duplicates_allowed, :boolean, {:null=>false, :default=>true})1582 -> 0.0017s1583-- add_column(:namespace_package_settings, :generic_duplicate_exception_regex, :text, {:null=>false, :default=>""})1584 -> 0.0011s1585== 20210429192653 AddGenericPackageDuplicateSettingsToNamespacePackageSettings: migrated (0.0030s) 1586== 20210429193106 AddTextLimitToNamespacePackageSettingsGenericDuplicateExceptionRegex: migrating 1587-- transaction_open?()1588 -> 0.0000s1589-- current_schema()1590 -> 0.0004s1591-- execute("ALTER TABLE namespace_package_settings\nADD CONSTRAINT check_31340211b1\nCHECK ( char_length(generic_duplicate_exception_regex) <= 255 )\nNOT VALID;\n")1592 -> 0.0008s1593-- current_schema()1594 -> 0.0004s1595-- execute("ALTER TABLE namespace_package_settings VALIDATE CONSTRAINT check_31340211b1;")1596 -> 0.0007s1597== 20210429193106 AddTextLimitToNamespacePackageSettingsGenericDuplicateExceptionRegex: migrated (0.0077s) 1598== 20210430034712 AddAlertManagerTokenToClustersIntegrationPrometheus: migrating 1599-- change_table(:clusters_integration_prometheus, {})1600 -> 0.0021s1601== 20210430034712 AddAlertManagerTokenToClustersIntegrationPrometheus: migrated (0.0022s) 1602== 20210430100947 AddElasticsearchUsernamePasswordToApplicationSettings: migrating 1603-- add_column(:application_settings, :elasticsearch_username, :text)1604 -> 0.0017s1605-- add_column(:application_settings, :encrypted_elasticsearch_password, :binary)1606 -> 0.0010s1607-- add_column(:application_settings, :encrypted_elasticsearch_password_iv, :binary)1608 -> 0.0009s1609== 20210430100947 AddElasticsearchUsernamePasswordToApplicationSettings: migrated (0.0038s) 1610== 20210430121522 InitializeConversionOfCiBuildTraceSectionsToBigint: migrating 1611-- table_exists?(:ci_build_trace_sections)1612 -> 0.0011s1613-- column_exists?(:ci_build_trace_sections, :build_id)1614 -> 0.0016s1615-- column_exists?(:ci_build_trace_sections, :build_id)1616 -> 0.0014s1617-- columns(:ci_build_trace_sections)1618 -> 0.0015s1619-- add_column(:ci_build_trace_sections, "build_id_convert_to_bigint", :bigint, {:default=>0, :null=>false})1620 -> 0.0013s1621== 20210430121522 InitializeConversionOfCiBuildTraceSectionsToBigint: migrated (0.0115s) 1622== 20210430121542 BackfillCiBuildTraceSectionsForBigintConversion: migrating ==1623== 20210430121542 BackfillCiBuildTraceSectionsForBigintConversion: migrated (0.0000s) 1624== 20210430122951 AddSnapshotNamespaceId: migrating ===========================1625-- add_column(:analytics_devops_adoption_snapshots, :namespace_id, :integer)1626 -> 0.0011s1627== 20210430122951 AddSnapshotNamespaceId: migrated (0.0012s) ==================1628== 20210430124212 AddDisplayNamespaceIdToSegments: migrating ==================1629-- add_column(:analytics_devops_adoption_segments, :display_namespace_id, :integer)1630 -> 0.0010s1631== 20210430124212 AddDisplayNamespaceIdToSegments: migrated (0.0011s) =========1632== 20210430124630 AddDevopsAdoptionIndexes: migrating =========================1633-- transaction_open?()1634 -> 0.0000s1635-- index_exists?(:analytics_devops_adoption_snapshots, [:namespace_id, :end_time], {:name=>"idx_devops_adoption_segments_namespace_end_time", :algorithm=>:concurrently})1636 -> 0.0026s1637-- add_index(:analytics_devops_adoption_snapshots, [:namespace_id, :end_time], {:name=>"idx_devops_adoption_segments_namespace_end_time", :algorithm=>:concurrently})1638 -> 0.0014s1639-- transaction_open?()1640 -> 0.0000s1641-- index_exists?(:analytics_devops_adoption_snapshots, [:namespace_id, :recorded_at], {:name=>"idx_devops_adoption_segments_namespace_recorded_at", :algorithm=>:concurrently})1642 -> 0.0027s1643-- add_index(:analytics_devops_adoption_snapshots, [:namespace_id, :recorded_at], {:name=>"idx_devops_adoption_segments_namespace_recorded_at", :algorithm=>:concurrently})1644 -> 0.0013s1645-- transaction_open?()1646 -> 0.0000s1647-- index_exists?(:analytics_devops_adoption_segments, [:display_namespace_id, :namespace_id], {:unique=>true, :name=>"idx_devops_adoption_segments_namespaces_pair", :algorithm=>:concurrently})1648 -> 0.0018s1649-- add_index(:analytics_devops_adoption_segments, [:display_namespace_id, :namespace_id], {:unique=>true, :name=>"idx_devops_adoption_segments_namespaces_pair", :algorithm=>:concurrently})1650 -> 0.0014s1651-- transaction_open?()1652 -> 0.0000s1653-- foreign_keys(:analytics_devops_adoption_snapshots)1654 -> 0.0032s1655-- execute("ALTER TABLE analytics_devops_adoption_snapshots\nADD CONSTRAINT fk_78c9eac821\nFOREIGN KEY (namespace_id)\nREFERENCES namespaces (id)\nON DELETE CASCADE\nNOT VALID;\n")1656 -> 0.0013s1657-- execute("ALTER TABLE analytics_devops_adoption_snapshots VALIDATE CONSTRAINT fk_78c9eac821;")1658 -> 0.0014s1659-- transaction_open?()1660 -> 0.0000s1661-- foreign_keys(:analytics_devops_adoption_segments)1662 -> 0.0035s1663-- execute("ALTER TABLE analytics_devops_adoption_segments\nADD CONSTRAINT fk_190a24754d\nFOREIGN KEY (display_namespace_id)\nREFERENCES namespaces (id)\nON DELETE CASCADE\nNOT VALID;\n")1664 -> 0.0014s1665-- execute("ALTER TABLE analytics_devops_adoption_segments VALIDATE CONSTRAINT fk_190a24754d;")1666 -> 0.0013s1667== 20210430124630 AddDevopsAdoptionIndexes: migrated (0.0347s) ================1668== 20210430130259 RemoveObsoleteSegmentsField: migrating ======================1669-- remove_column(:analytics_devops_adoption_segments, :name)1670 -> 0.0008s1671== 20210430130259 RemoveObsoleteSegmentsField: migrated (0.0031s) =============1672== 20210430134202 CopyAdoptionSnapshotNamespace: migrating ====================1673-- execute(" UPDATE analytics_devops_adoption_snapshots snapshots\n SET namespace_id = segments.namespace_id\n FROM analytics_devops_adoption_segments segments\n WHERE snapshots.namespace_id IS NULL AND segments.id = snapshots.segment_id\n")1674 -> 0.0011s1675== 20210430134202 CopyAdoptionSnapshotNamespace: migrated (0.0012s) ===========1676== 20210430135954 CopyAdoptionSegmentsNamespace: migrating ====================1677-- execute(" UPDATE analytics_devops_adoption_segments SET display_namespace_id = namespace_id\n WHERE display_namespace_id IS NULL\n")1678 -> 0.0008s1679== 20210430135954 CopyAdoptionSegmentsNamespace: migrated (0.0009s) ===========1680== 20210430154631 AddSliceMultiplierAndMaxSlicesToElasticReindexingTask: migrating 1681-- add_column(:elastic_reindexing_tasks, :max_slices_running, :integer, {:limit=>2, :default=>60, :null=>false})1682 -> 0.0017s1683-- add_column(:elastic_reindexing_tasks, :slice_multiplier, :integer, {:limit=>2, :default=>2, :null=>false})1684 -> 0.0010s1685== 20210430154631 AddSliceMultiplierAndMaxSlicesToElasticReindexingTask: migrated (0.0029s) 1686== 20210503105022 CreateProjectValueStreams: migrating ========================1687-- create_table(:analytics_cycle_analytics_project_value_streams, {})1688-- quote_column_name(:name)1689 -> 0.0000s1690 -> 0.0048s1691-- quote_table_name("check_9b1970a898")1692 -> 0.0000s1693-- quote_table_name(:analytics_cycle_analytics_project_value_streams)1694 -> 0.0000s1695-- execute("ALTER TABLE \"analytics_cycle_analytics_project_value_streams\"\nADD CONSTRAINT \"check_9b1970a898\" CHECK (char_length(\"name\") <= 100)\n")1696 -> 0.0008s1697== 20210503105022 CreateProjectValueStreams: migrated (0.0087s) ===============1698== 20210503105845 AddProjectValueStreamIdToProjectStages: migrating ===========1699-- transaction()1700-- add_column(:analytics_cycle_analytics_project_stages, "project_value_stream_id", :bigint, {:null=>false})1701 -> 0.0013s1702-- add_index(:analytics_cycle_analytics_project_stages, ["project_value_stream_id"], {:name=>"index_analytics_ca_project_stages_on_value_stream_id"})1703 -> 0.0010s1704-- add_foreign_key(:analytics_cycle_analytics_project_stages, :analytics_cycle_analytics_project_value_streams, {:on_delete=>:cascade, :to_table=>:analytics_cycle_analytics_project_value_streams, :column=>"project_value_stream_id"})1705 -> 0.0016s1706 -> 0.0047s1707== 20210503105845 AddProjectValueStreamIdToProjectStages: migrated (0.0088s) ==1708== 20210503131747 AddWebHookCallsToPlanLimits: migrating ======================1709-- add_column(:plan_limits, :web_hook_calls, :integer, {:null=>false, :default=>0})1710 -> 0.0017s1711== 20210503131747 AddWebHookCallsToPlanLimits: migrated (0.0019s) =============1712== 20210504085144 AddIndexOnWebHookProjectIdRecentFailures: migrating =========1713-- transaction_open?()1714 -> 0.0000s1715-- index_exists?(:web_hooks, [:project_id, :recent_failures], {:name=>"index_web_hooks_on_project_id_recent_failures", :algorithm=>:concurrently})1716 -> 0.0034s1717-- add_index(:web_hooks, [:project_id, :recent_failures], {:name=>"index_web_hooks_on_project_id_recent_failures", :algorithm=>:concurrently})1718 -> 0.0016s1719== 20210504085144 AddIndexOnWebHookProjectIdRecentFailures: migrated (0.0067s) 1720== 20210504135823 AddFlocApplicationSettings: migrating =======================1721-- add_column(:application_settings, :floc_enabled, :boolean, {:default=>false, :null=>false})1722 -> 0.0025s1723== 20210504135823 AddFlocApplicationSettings: migrated (0.0026s) ==============1724== 20210504143128 AddVerificationStateAndStartedAtToMrDiffDetailsTable: migrating 1725-- change_table(:merge_request_diff_details, {})1726 -> 0.0021s1727== 20210504143128 AddVerificationStateAndStartedAtToMrDiffDetailsTable: migrated (0.0022s) 1728== 20210504153354 CreateClustersIntegrationElasticstack: migrating ============1729-- create_table(:clusters_integration_elasticstack, {:id=>false})1730-- quote_column_name(:chart_version)1731 -> 0.0000s1732 -> 0.0035s1733-- quote_table_name("check_f8d671ce04")1734 -> 0.0000s1735-- quote_table_name(:clusters_integration_elasticstack)1736 -> 0.0001s1737-- execute("ALTER TABLE \"clusters_integration_elasticstack\"\nADD CONSTRAINT \"check_f8d671ce04\" CHECK (char_length(\"chart_version\") <= 10)\n")1738 -> 0.0007s1739== 20210504153354 CreateClustersIntegrationElasticstack: migrated (0.0073s) ===1740== 20210504164429 CreatePartialIndexesForPendingAndRunningBuilds: migrating ===1741-- transaction_open?()1742 -> 0.0000s1743-- index_exists?(:ci_builds, :runner_id, {:where=>"status = 'pending' AND type = 'Ci::Build'", :name=>"index_ci_builds_runner_id_pending", :algorithm=>:concurrently})1744 -> 0.0146s1745-- add_index(:ci_builds, :runner_id, {:where=>"status = 'pending' AND type = 'Ci::Build'", :name=>"index_ci_builds_runner_id_pending", :algorithm=>:concurrently})1746 -> 0.0017s1747-- transaction_open?()1748 -> 0.0000s1749-- index_exists?(:ci_builds, :runner_id, {:where=>"status = 'running' AND type = 'Ci::Build'", :name=>"index_ci_builds_runner_id_running", :algorithm=>:concurrently})1750 -> 0.0149s1751-- add_index(:ci_builds, :runner_id, {:where=>"status = 'running' AND type = 'Ci::Build'", :name=>"index_ci_builds_runner_id_running", :algorithm=>:concurrently})1752 -> 0.0018s1753== 20210504164429 CreatePartialIndexesForPendingAndRunningBuilds: migrated (0.0364s) 1754== 20210505070612 CreatePackagesDebianGroupDistributionKeys: migrating ========1755-- create_table(:packages_debian_group_distribution_keys, {})1756-- quote_column_name(:public_key)1757 -> 0.0000s1758-- quote_column_name(:fingerprint)1759 -> 0.0000s1760 -> 0.0046s1761-- quote_table_name("check_f708183491")1762 -> 0.0000s1763-- quote_table_name("check_bc95dc3fbe")1764 -> 0.0000s1765-- quote_table_name(:packages_debian_group_distribution_keys)1766 -> 0.0000s1767-- execute("ALTER TABLE \"packages_debian_group_distribution_keys\"\nADD CONSTRAINT \"check_f708183491\" CHECK (char_length(\"public_key\") <= 524288),\nADD CONSTRAINT \"check_bc95dc3fbe\" CHECK (char_length(\"fingerprint\") <= 255)\n")1768 -> 0.0009s1769== 20210505070612 CreatePackagesDebianGroupDistributionKeys: migrated (0.0083s) 1770== 20210505070812 CreatePackagesDebianProjectDistributionKeys: migrating ======1771-- create_table(:packages_debian_project_distribution_keys, {})1772-- quote_column_name(:public_key)1773 -> 0.0000s1774-- quote_column_name(:fingerprint)1775 -> 0.0000s1776 -> 0.0045s1777-- quote_table_name("check_d188f6547f")1778 -> 0.0000s1779-- quote_table_name("check_9e8a5eef0a")1780 -> 0.0000s1781-- quote_table_name(:packages_debian_project_distribution_keys)1782 -> 0.0000s1783-- execute("ALTER TABLE \"packages_debian_project_distribution_keys\"\nADD CONSTRAINT \"check_d188f6547f\" CHECK (char_length(\"public_key\") <= 524288),\nADD CONSTRAINT \"check_9e8a5eef0a\" CHECK (char_length(\"fingerprint\") <= 255)\n")1784 -> 0.0008s1785== 20210505070812 CreatePackagesDebianProjectDistributionKeys: migrated (0.0085s) 1786== 20210505092746 CreatePartialCoveringIndexForPendingBuilds: migrating =======1787-- indexes(:ci_builds)1788 -> 0.0161s1789-- current_schema()1790 -> 0.0005s1791-- execute("CREATE INDEX CONCURRENTLY index_ci_builds_runner_id_pending_covering ON ci_builds (runner_id, id) INCLUDE (project_id) WHERE status = 'pending' AND type = 'Ci::Build'")1792 -> 0.0018s1793-- transaction_open?()1794 -> 0.0000s1795-- indexes(:ci_builds)1796 -> 0.0163s1797-- remove_index(:ci_builds, {:algorithm=>:concurrently, :name=>"index_ci_builds_runner_id_pending"})1798 -> 0.0013s1799== 20210505092746 CreatePartialCoveringIndexForPendingBuilds: migrated (0.0403s) 1800== 20210505124816 AddTextLimitToElasticsearchUsername: migrating ==============1801-- transaction_open?()1802 -> 0.0000s1803-- current_schema()1804 -> 0.0004s1805-- execute("ALTER TABLE application_settings\nADD CONSTRAINT check_e5024c8801\nCHECK ( char_length(elasticsearch_username) <= 255 )\nNOT VALID;\n")1806 -> 0.0017s1807-- current_schema()1808 -> 0.0005s1809-- execute("ALTER TABLE application_settings VALIDATE CONSTRAINT check_e5024c8801;")1810 -> 0.0016s1811== 20210505124816 AddTextLimitToElasticsearchUsername: migrated (0.0099s) =====1812== 20210505170152 AddVerificationIndexesToMergeRequestDiffDetailsTable: migrating 1813-- transaction_open?()1814 -> 0.0000s1815-- index_exists?(:merge_request_diff_details, :verification_state, {:name=>"index_merge_request_diff_details_on_verification_state", :algorithm=>:concurrently})1816 -> 0.0020s1817-- add_index(:merge_request_diff_details, :verification_state, {:name=>"index_merge_request_diff_details_on_verification_state", :algorithm=>:concurrently})1818 -> 0.0014s1819-- transaction_open?()1820 -> 0.0000s1821-- index_exists?(:merge_request_diff_details, :verified_at, {:where=>"(verification_state = 0)", :order=>{:verified_at=>"ASC NULLS FIRST"}, :name=>"index_merge_request_diff_details_pending_verification", :algorithm=>:concurrently})1822 -> 0.0023s1823-- add_index(:merge_request_diff_details, :verified_at, {:where=>"(verification_state = 0)", :order=>{:verified_at=>"ASC NULLS FIRST"}, :name=>"index_merge_request_diff_details_pending_verification", :algorithm=>:concurrently})1824 -> 0.0015s1825-- transaction_open?()1826 -> 0.0000s1827-- index_exists?(:merge_request_diff_details, :verification_retry_at, {:where=>"(verification_state = 3)", :order=>{:verification_retry_at=>"ASC NULLS FIRST"}, :name=>"index_merge_request_diff_details_failed_verification", :algorithm=>:concurrently})1828 -> 0.0027s1829-- add_index(:merge_request_diff_details, :verification_retry_at, {:where=>"(verification_state = 3)", :order=>{:verification_retry_at=>"ASC NULLS FIRST"}, :name=>"index_merge_request_diff_details_failed_verification", :algorithm=>:concurrently})1830 -> 0.0016s1831-- transaction_open?()1832 -> 0.0000s1833-- index_exists?(:merge_request_diff_details, :verification_state, {:where=>"(verification_state = 0 OR verification_state = 3)", :name=>"index_merge_request_diff_details_needs_verification", :algorithm=>:concurrently})1834 -> 0.0032s1835-- add_index(:merge_request_diff_details, :verification_state, {:where=>"(verification_state = 0 OR verification_state = 3)", :name=>"index_merge_request_diff_details_needs_verification", :algorithm=>:concurrently})1836 -> 0.0015s1837== 20210505170152 AddVerificationIndexesToMergeRequestDiffDetailsTable: migrated (0.0229s) 1838== 20210506064413 CreateNamespacesIdParentIdInversePartialIndex: migrating ====1839-- transaction_open?()1840 -> 0.0000s1841-- index_exists?(:namespaces, :id, {:where=>"parent_id IS NOT NULL", :name=>"index_namespaces_id_parent_id_is_not_null", :algorithm=>:concurrently})1842 -> 0.0102s1843-- add_index(:namespaces, :id, {:where=>"parent_id IS NOT NULL", :name=>"index_namespaces_id_parent_id_is_not_null", :algorithm=>:concurrently})1844 -> 0.0019s1845== 20210506064413 CreateNamespacesIdParentIdInversePartialIndex: migrated (0.0137s) 1846== 20210506065000 ScheduleBackfillTraversalIds: migrating =====================1847-- Scheduled 1 BackfillNamespaceTraversalIdsRoots jobs with a maximum of 1000 records per batch and an interval of 120 seconds.1848The migration is expected to take at least 120 seconds. Expect all jobs to have completed after 2021-10-13 18:29:11 UTC."1849-- Scheduled 0 BackfillNamespaceTraversalIdsChildren jobs with a maximum of 1000 records per batch and an interval of 120 seconds.1850The migration is expected to take at least 240 seconds. Expect all jobs to have completed after 2021-10-13 18:31:11 UTC."1851== 20210506065000 ScheduleBackfillTraversalIds: migrated (0.0468s) ============1852== 20210506150833 CreateVulnerabilityFindingEvidenceHeaders: migrating ========1853-- create_table(:vulnerability_finding_evidence_headers, {})1854-- quote_column_name(:name)1855 -> 0.0000s1856-- quote_column_name(:value)1857 -> 0.0000s1858 -> 0.0055s1859-- quote_table_name("check_01d21e8d92")1860 -> 0.0000s1861-- quote_table_name("check_3f9011f903")1862 -> 0.0000s1863-- quote_table_name(:vulnerability_finding_evidence_headers)1864 -> 0.0000s1865-- execute("ALTER TABLE \"vulnerability_finding_evidence_headers\"\nADD CONSTRAINT \"check_01d21e8d92\" CHECK (char_length(\"name\") <= 255),\nADD CONSTRAINT \"check_3f9011f903\" CHECK (char_length(\"value\") <= 8192)\n")1866 -> 0.0009s1867== 20210506150833 CreateVulnerabilityFindingEvidenceHeaders: migrated (0.0091s) 1868== 20210507191949 AddRemoveOnIssueCloseToLabels: migrating ====================1869== 20210507191949 AddRemoveOnIssueCloseToLabels: migrated (0.0000s) ===========1870== 20210510083845 AddShaToStatusCheckResponse: migrating ======================1871-- execute("DELETE FROM status_check_responses")1872 -> 0.0009s1873-- add_column(:status_check_responses, :sha, :binary, {:null=>false})1874 -> 0.0017s1875== 20210510083845 AddShaToStatusCheckResponse: migrated (0.0027s) =============1876== 20210510191551 AddBodyToFindingsEvidencesRequest: migrating ================1877-- add_column(:vulnerability_finding_evidence_requests, :body, :text)1878 -> 0.0011s1879== 20210510191551 AddBodyToFindingsEvidencesRequest: migrated (0.0012s) =======1880== 20210510191552 AddLimitToFindingsEvidencesRequestBody: migrating ===========1881-- transaction_open?()1882 -> 0.0000s1883-- current_schema()1884 -> 0.0004s1885-- execute("ALTER TABLE vulnerability_finding_evidence_requests\nADD CONSTRAINT check_7e37f2d01a\nCHECK ( char_length(body) <= 2048 )\nNOT VALID;\n")1886 -> 0.0008s1887-- current_schema()1888 -> 0.0004s1889-- execute("ALTER TABLE vulnerability_finding_evidence_requests VALIDATE CONSTRAINT check_7e37f2d01a;")1890 -> 0.0006s1891== 20210510191552 AddLimitToFindingsEvidencesRequestBody: migrated (0.0076s) ==1892== 20210511095657 AddTemporaryIndexForProjectTopicsToTaggings: migrating ======1893-- transaction_open?()1894 -> 0.0000s1895-- index_exists?(:taggings, :id, {:where=>"taggable_type = 'Project' AND context = 'tags'", :name=>"tmp_index_taggings_on_id_where_taggable_type_project_and_tags", :algorithm=>:concurrently})1896 -> 0.0033s1897-- add_index(:taggings, :id, {:where=>"taggable_type = 'Project' AND context = 'tags'", :name=>"tmp_index_taggings_on_id_where_taggable_type_project_and_tags", :algorithm=>:concurrently})1898 -> 0.0016s1899== 20210511095657 AddTemporaryIndexForProjectTopicsToTaggings: migrated (0.0064s) 1900== 20210511095658 ScheduleMigrateProjectTaggingsContextFromTagsToTopics: migrating 1901-- Scheduled 0 MigrateProjectTaggingsContextFromTagsToTopics jobs with a maximum of 30000 records per batch and an interval of 120 seconds.1902The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:11 UTC."1903== 20210511095658 ScheduleMigrateProjectTaggingsContextFromTagsToTopics: migrated (0.0046s) 1904== 20210511104929 AddEpicBoardRecentVisitsTable: migrating ====================1905-- table_exists?(:boards_epic_board_recent_visits)1906 -> 0.0008s1907-- create_table(:boards_epic_board_recent_visits, {})1908 -> 0.0070s1909== 20210511104929 AddEpicBoardRecentVisitsTable: migrated (0.0108s) ===========1910== 20210511104930 AddIndexToEpicBoardRecentVisits: migrating ==================1911-- transaction_open?()1912 -> 0.0000s1913-- index_exists?(:boards_epic_board_recent_visits, [:user_id, :group_id, :epic_board_id], {:name=>"index_epic_board_recent_visits_on_user_group_and_board", :unique=>true, :algorithm=>:concurrently})1914 -> 0.0033s1915-- add_index(:boards_epic_board_recent_visits, [:user_id, :group_id, :epic_board_id], {:name=>"index_epic_board_recent_visits_on_user_group_and_board", :unique=>true, :algorithm=>:concurrently})1916 -> 0.0016s1917== 20210511104930 AddIndexToEpicBoardRecentVisits: migrated (0.0069s) =========1918== 20210511142748 ScheduleDropInvalidVulnerabilities2: migrating ==============1919-- Scheduled 0 DropInvalidVulnerabilities jobs with a maximum of 10000 records per batch and an interval of 120 seconds.1920The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:11 UTC."1921== 20210511142748 ScheduleDropInvalidVulnerabilities2: migrated (0.0039s) =====1922== 20210511165250 AddForeignKeyToLfsObjectsProjects: migrating ================1923-- transaction_open?()1924 -> 0.0000s1925-- foreign_keys(:lfs_objects_projects)1926 -> 0.0034s1927-- execute("ALTER TABLE lfs_objects_projects\nADD CONSTRAINT fk_a56e02279c\nFOREIGN KEY (lfs_object_id)\nREFERENCES lfs_objects (id)\nON DELETE RESTRICT\nNOT VALID;\n")1928 -> 0.0011s1929-- transaction_open?()1930 -> 0.0000s1931-- foreign_keys(:lfs_objects_projects)1932 -> 0.0032s1933-- execute("ALTER TABLE lfs_objects_projects\nADD CONSTRAINT fk_2eb33f7a78\nFOREIGN KEY (project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n")1934 -> 0.0018s1935== 20210511165250 AddForeignKeyToLfsObjectsProjects: migrated (0.0147s) =======1936== 20210512120122 AddPendingBuildsTable: migrating ============================1937-- create_table(:ci_pending_builds, {})1938 -> 0.0054s1939== 20210512120122 AddPendingBuildsTable: migrated (0.0054s) ===================1940== 20210512183309 AddBodyToFindingsEvidencesResponse: migrating ===============1941-- add_column(:vulnerability_finding_evidence_responses, :body, :text)1942 -> 0.0014s1943== 20210512183309 AddBodyToFindingsEvidencesResponse: migrated (0.0014s) ======1944== 20210512183310 AddLimitToFindingsEvidencesResponseBody: migrating ==========1945-- transaction_open?()1946 -> 0.0000s1947-- current_schema()1948 -> 0.0005s1949-- execute("ALTER TABLE vulnerability_finding_evidence_responses\nADD CONSTRAINT check_76bac0c32b\nCHECK ( char_length(body) <= 2048 )\nNOT VALID;\n")1950 -> 0.0007s1951-- current_schema()1952 -> 0.0004s1953-- execute("ALTER TABLE vulnerability_finding_evidence_responses VALIDATE CONSTRAINT check_76bac0c32b;")1954 -> 0.0007s1955== 20210512183310 AddLimitToFindingsEvidencesResponseBody: migrated (0.0076s) =1956== 20210513093418 AddDraftColumnToMergeRequests: migrating ====================1957-- add_column(:merge_requests, :draft, :boolean, {:default=>false, :null=>false})1958 -> 0.0016s1959== 20210513093418 AddDraftColumnToMergeRequests: migrated (0.0042s) ===========1960== 20210513155447 AddTemporaryPackageIndexForNugetDataMigration: migrating ====1961-- transaction_open?()1962 -> 0.0000s1963-- index_exists?(:packages_packages, :id, {:where=>"package_type = 4 AND name = 'NuGet.Temporary.Package' AND status = 0", :name=>"tmp_index_packages_on_id_where_nuget_default_temp_package", :algorithm=>:concurrently})1964 -> 0.0071s1965-- add_index(:packages_packages, :id, {:where=>"package_type = 4 AND name = 'NuGet.Temporary.Package' AND status = 0", :name=>"tmp_index_packages_on_id_where_nuget_default_temp_package", :algorithm=>:concurrently})1966 -> 0.0017s1967== 20210513155447 AddTemporaryPackageIndexForNugetDataMigration: migrated (0.0105s) 1968== 20210513155546 BackfillNugetTemporaryPackagesToProcessingStatus: migrating =1969== 20210513155546 BackfillNugetTemporaryPackagesToProcessingStatus: migrated (0.0043s) 1970== 20210513155635 RemoveTemporaryPackageIndexForNugetDataMigration: migrating =1971-- transaction_open?()1972 -> 0.0000s1973-- indexes(:packages_packages)1974 -> 0.0074s1975-- remove_index(:packages_packages, {:algorithm=>:concurrently, :name=>"tmp_index_packages_on_id_where_nuget_default_temp_package"})1976 -> 0.0013s1977== 20210513155635 RemoveTemporaryPackageIndexForNugetDataMigration: migrated (0.0107s) 1978== 20210513163904 CleanupMoveContainerRegistryEnabledToProjectFeature: migrating 1979== 20210513163904 CleanupMoveContainerRegistryEnabledToProjectFeature: migrated (0.0052s) 1980== 20210514063252 ScheduleCleanupOrphanedLfsObjectsProjects: migrating ========1981-- Scheduled 0 CleanupOrphanedLfsObjectsProjects jobs with a maximum of 50000 records per batch and an interval of 120 seconds.1982The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:11 UTC."1983== 20210514063252 ScheduleCleanupOrphanedLfsObjectsProjects: migrated (0.0020s) 1984== 20210517075444 RemoveTemporaryIndexForProjectTopicsToTaggings: migrating ===1985-- transaction_open?()1986 -> 0.0000s1987-- indexes(:taggings)1988 -> 0.0038s1989-- remove_index(:taggings, {:algorithm=>:concurrently, :name=>"tmp_index_taggings_on_id_where_taggable_type_project_and_tags"})1990 -> 0.0010s1991== 20210517075444 RemoveTemporaryIndexForProjectTopicsToTaggings: migrated (0.0066s) 1992== 20210517130723 MakeSnapshotSegmentIdOptional: migrating ====================1993-- change_column_null(:analytics_devops_adoption_snapshots, :segment_id, true)1994 -> 0.0014s1995== 20210517130723 MakeSnapshotSegmentIdOptional: migrated (0.0015s) ===========1996== 20210517144856 RequireSnapshotNamespace: migrating =========================1997-- execute(" UPDATE analytics_devops_adoption_snapshots snapshots\n SET namespace_id = segments.namespace_id\n FROM analytics_devops_adoption_segments segments\n WHERE snapshots.namespace_id IS NULL AND segments.id = snapshots.segment_id\n")1998 -> 0.0011s1999-- current_schema()2000 -> 0.0004s2001-- transaction_open?()2002 -> 0.0000s2003-- current_schema()2004 -> 0.0006s2005-- execute("ALTER TABLE analytics_devops_adoption_snapshots\nADD CONSTRAINT check_3f472de131\nCHECK ( namespace_id IS NOT NULL )\nNOT VALID;\n")2006 -> 0.0009s2007-- current_schema()2008 -> 0.0005s2009-- execute("ALTER TABLE analytics_devops_adoption_snapshots VALIDATE CONSTRAINT check_3f472de131;")2010 -> 0.0008s2011== 20210517144856 RequireSnapshotNamespace: migrated (0.0142s) ================2012== 20210517221612 AddDefaultValueToMergeRequestsAuthorApprovalOnProjects: migrating 2013-- change_column_default(:projects, :merge_requests_author_approval, false)2014 -> 0.0093s2015== 20210517221612 AddDefaultValueToMergeRequestsAuthorApprovalOnProjects: migrated (0.0122s) 2016== 20210518001450 BackfillClustersIntegrationElasticStackEnabled: migrating ===2017== 20210518001450 BackfillClustersIntegrationElasticStackEnabled: migrated (0.0011s) 2018== 20210518074332 ScheduleDisableExpirationPoliciesLinkedToNoContainerImages: migrating 2019-- Scheduled 0 DisableExpirationPoliciesLinkedToNoContainerImages jobs with a maximum of 30000 records per batch and an interval of 120 seconds.2020The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:11 UTC."2021== 20210518074332 ScheduleDisableExpirationPoliciesLinkedToNoContainerImages: migrated (0.0049s) 2022== 20210519104931 BackfillClustersIntegrationPrometheusEnabled: migrating =====2023== 20210519104931 BackfillClustersIntegrationPrometheusEnabled: migrated (0.0022s) 2024== 20210519132109 InitializeConversionOfCiBuildsMetadataToBigint: migrating ===2025-- table_exists?(:ci_builds_metadata)2026 -> 0.0018s2027-- column_exists?(:ci_builds_metadata, :id)2028 -> 0.0020s2029-- column_exists?(:ci_builds_metadata, :build_id)2030 -> 0.0017s2031-- columns(:ci_builds_metadata)2032 -> 0.0018s2033-- add_column(:ci_builds_metadata, "build_id_convert_to_bigint", :bigint, {:default=>0, :null=>false})2034 -> 0.0014s2035== 20210519132109 InitializeConversionOfCiBuildsMetadataToBigint: migrated (0.0136s) 2036== 20210519132129 BackfillCiBuildsMetadataForBigintConversion: migrating ======2037-- table_exists?(:ci_builds_metadata)2038 -> 0.0012s2039-- column_exists?(:ci_builds_metadata, :id)2040 -> 0.0019s2041-- column_exists?(:ci_builds_metadata, :build_id)2042 -> 0.0017s2043-- column_exists?(:ci_builds_metadata, "build_id_convert_to_bigint")2044 -> 0.0018s2045== 20210519132129 BackfillCiBuildsMetadataForBigintConversion: migrated (0.0126s) 2046== 20210519154058 ScheduleUpdateUsersWhereTwoFactorAuthRequiredFromGroup: migrating 2047-- transaction_open?()2048 -> 0.0000s2049-- index_exists?(:users, :require_two_factor_authentication_from_group, {:where=>"require_two_factor_authentication_from_group = FALSE", :name=>"index_users_require_two_factor_authentication_from_group_false", :algorithm=>:concurrently})2050 -> 0.0136s2051-- add_index(:users, :require_two_factor_authentication_from_group, {:where=>"require_two_factor_authentication_from_group = FALSE", :name=>"index_users_require_two_factor_authentication_from_group_false", :algorithm=>:concurrently})2052 -> 0.0023s2053-- Scheduled 1 UpdateUsersWhereTwoFactorAuthRequiredFromGroup jobs with a maximum of 10000 records per batch and an interval of 120 seconds.2054The migration is expected to take at least 120 seconds. Expect all jobs to have completed after 2021-10-13 18:29:12 UTC."2055== 20210519154058 ScheduleUpdateUsersWhereTwoFactorAuthRequiredFromGroup: migrated (0.0759s) 2056== 20210519220019 BackfillEscalationPoliciesForOncallSchedules: migrating =====2057== 20210519220019 BackfillEscalationPoliciesForOncallSchedules: migrated (0.0020s) 2058== 20210520012430 BackfillPkConversionForSelfManaged: migrating ===============2059-- table_exists?(:events)2060 -> 0.0010s2061-- column_exists?(:events, :id)2062 -> 0.0018s2063-- column_exists?(:events, :id)2064 -> 0.0015s2065-- column_exists?(:events, "id_convert_to_bigint")2066 -> 0.0016s2067-- table_exists?(:push_event_payloads)2068 -> 0.0008s2069-- column_exists?(:push_event_payloads, :event_id)2070 -> 0.0018s2071-- column_exists?(:push_event_payloads, :event_id)2072 -> 0.0016s2073-- column_exists?(:push_event_payloads, "event_id_convert_to_bigint")2074 -> 0.0017s2075-- table_exists?(:ci_job_artifacts)2076 -> 0.0007s2077-- column_exists?(:ci_job_artifacts, :id)2078 -> 0.0020s2079-- column_exists?(:ci_job_artifacts, :id)2080 -> 0.0018s2081-- column_exists?(:ci_job_artifacts, "id_convert_to_bigint")2082 -> 0.0019s2083-- column_exists?(:ci_job_artifacts, :job_id)2084 -> 0.0019s2085-- column_exists?(:ci_job_artifacts, "job_id_convert_to_bigint")2086 -> 0.0018s2087-- table_exists?(:ci_sources_pipelines)2088 -> 0.0007s2089-- column_exists?(:ci_sources_pipelines, :id)2090 -> 0.0015s2091-- column_exists?(:ci_sources_pipelines, :source_job_id)2092 -> 0.0015s2093-- column_exists?(:ci_sources_pipelines, "source_job_id_convert_to_bigint")2094 -> 0.0015s2095-- table_exists?(:ci_build_needs)2096 -> 0.0007s2097-- column_exists?(:ci_build_needs, :id)2098 -> 0.0015s2099-- column_exists?(:ci_build_needs, :build_id)2100 -> 0.0015s2101-- column_exists?(:ci_build_needs, "build_id_convert_to_bigint")2102 -> 0.0015s2103-- table_exists?(:ci_builds)2104 -> 0.0006s2105-- column_exists?(:ci_builds, :id)2106 -> 0.0036s2107-- column_exists?(:ci_builds, :id)2108 -> 0.0035s2109-- column_exists?(:ci_builds, "id_convert_to_bigint")2110 -> 0.0037s2111-- column_exists?(:ci_builds, :stage_id)2112 -> 0.0035s2113-- column_exists?(:ci_builds, "stage_id_convert_to_bigint")2114 -> 0.0037s2115-- table_exists?(:ci_builds_runner_session)2116 -> 0.0007s2117-- column_exists?(:ci_builds_runner_session, :id)2118 -> 0.0016s2119-- column_exists?(:ci_builds_runner_session, :build_id)2120 -> 0.0014s2121-- column_exists?(:ci_builds_runner_session, "build_id_convert_to_bigint")2122 -> 0.0014s2123-- table_exists?(:ci_build_trace_chunks)2124 -> 0.0008s2125-- column_exists?(:ci_build_trace_chunks, :id)2126 -> 0.0017s2127-- column_exists?(:ci_build_trace_chunks, :build_id)2128 -> 0.0017s2129-- column_exists?(:ci_build_trace_chunks, "build_id_convert_to_bigint")2130 -> 0.0017s2131== 20210520012430 BackfillPkConversionForSelfManaged: migrated (0.0828s) ======2132== 20210520102039 GroupProtectedEnvironmentsAddColumn: migrating ==============2133-- add_column(:protected_environments, :group_id, :bigint)2134 -> 0.0017s2135-- change_column_null(:protected_environments, :project_id, true)2136 -> 0.0006s2137== 20210520102039 GroupProtectedEnvironmentsAddColumn: migrated (0.0025s) =====2138== 20210520133032 InitializeConversionOfTaggingsToBigint: migrating ===========2139-- table_exists?(:taggings)2140 -> 0.0012s2141-- column_exists?(:taggings, :id)2142 -> 0.0017s2143-- column_exists?(:taggings, :id)2144 -> 0.0014s2145-- column_exists?(:taggings, :taggable_id)2146 -> 0.0015s2147-- columns(:taggings)2148 -> 0.0016s2149-- add_column(:taggings, "id_convert_to_bigint", :bigint, {:default=>0, :null=>false})2150 -> 0.0015s2151-- columns(:taggings)2152 -> 0.0016s2153-- add_column(:taggings, "taggable_id_convert_to_bigint", :bigint, {:default=>nil})2154 -> 0.0012s2155== 20210520133032 InitializeConversionOfTaggingsToBigint: migrated (0.0176s) ==2156== 20210520133440 BackfillTaggingsForBigintConversion: migrating ==============2157-- table_exists?(:taggings)2158 -> 0.0015s2159-- column_exists?(:taggings, :id)2160 -> 0.0020s2161-- column_exists?(:taggings, :id)2162 -> 0.0018s2163-- column_exists?(:taggings, "id_convert_to_bigint")2164 -> 0.0017s2165-- column_exists?(:taggings, :taggable_id)2166 -> 0.0017s2167-- column_exists?(:taggings, "taggable_id_convert_to_bigint")2168 -> 0.0017s2169== 20210520133440 BackfillTaggingsForBigintConversion: migrated (0.0184s) =====2170== 20210521073920 DropDevopsAdoptionNamespaceUniqueness: migrating ============2171-- transaction_open?()2172 -> 0.0000s2173-- index_exists?(:analytics_devops_adoption_segments, :namespace_id, {:name=>"idx_analytics_devops_adoption_segments_on_namespace_id", :algorithm=>:concurrently})2174 -> 0.0024s2175-- add_index(:analytics_devops_adoption_segments, :namespace_id, {:name=>"idx_analytics_devops_adoption_segments_on_namespace_id", :algorithm=>:concurrently})2176 -> 0.0014s2177-- transaction_open?()2178 -> 0.0000s2179-- indexes(:analytics_devops_adoption_segments)2180 -> 0.0026s2181-- remove_index(:analytics_devops_adoption_segments, {:algorithm=>:concurrently, :name=>"index_analytics_devops_adoption_segments_on_namespace_id"})2182 -> 0.0012s2183== 20210521073920 DropDevopsAdoptionNamespaceUniqueness: migrated (0.0109s) ===2184== 20210525075724 CleanUpPendingBuildsTable: migrating ========================2185-- transaction_open?()2186 -> 0.0000s2187== 20210525075724 CleanUpPendingBuildsTable: migrated (0.0142s) ===============2188== 20210525085158 InitializeConversionOfDeploymentsToBigint: migrating ========2189-- table_exists?(:deployments)2190 -> 0.0011s2191-- column_exists?(:deployments, :id)2192 -> 0.0020s2193-- column_exists?(:deployments, :deployable_id)2194 -> 0.0020s2195-- columns(:deployments)2196 -> 0.0019s2197-- add_column(:deployments, "deployable_id_convert_to_bigint", :bigint, {:default=>nil})2198 -> 0.0014s2199== 20210525085158 InitializeConversionOfDeploymentsToBigint: migrated (0.0138s) 2200== 20210525085325 BackfillDeploymentsForBigintConversion: migrating ===========2201-- table_exists?(:deployments)2202 -> 0.0011s2203-- column_exists?(:deployments, :id)2204 -> 0.0021s2205-- column_exists?(:deployments, :deployable_id)2206 -> 0.0020s2207-- column_exists?(:deployments, "deployable_id_convert_to_bigint")2208 -> 0.0021s2209== 20210525085325 BackfillDeploymentsForBigintConversion: migrated (0.0154s) ==2210== 20210525100539 InitializeConversionOfGeoJobArtifactDeletedEventsToBigint: migrating 2211-- table_exists?(:geo_job_artifact_deleted_events)2212 -> 0.0011s2213-- column_exists?(:geo_job_artifact_deleted_events, :id)2214 -> 0.0013s2215-- column_exists?(:geo_job_artifact_deleted_events, :job_artifact_id)2216 -> 0.0012s2217-- columns(:geo_job_artifact_deleted_events)2218 -> 0.0013s2219-- add_column(:geo_job_artifact_deleted_events, "job_artifact_id_convert_to_bigint", :bigint, {:default=>0, :null=>false})2220 -> 0.0013s2221== 20210525100539 InitializeConversionOfGeoJobArtifactDeletedEventsToBigint: migrated (0.0122s) 2222== 20210525100603 BackfillGeoJobArtifactDeletedEventsForBigintConversion: migrating 2223-- table_exists?(:geo_job_artifact_deleted_events)2224 -> 0.0011s2225-- column_exists?(:geo_job_artifact_deleted_events, :id)2226 -> 0.0014s2227-- column_exists?(:geo_job_artifact_deleted_events, :job_artifact_id)2228 -> 0.0013s2229-- column_exists?(:geo_job_artifact_deleted_events, "job_artifact_id_convert_to_bigint")2230 -> 0.0013s2231== 20210525100603 BackfillGeoJobArtifactDeletedEventsForBigintConversion: migrated (0.0122s) 2232== 20210525184900 AddLatestPipelineIdIntoVulnerabilityStatisticsTable: migrating 2233-- add_column(:vulnerability_statistics, :latest_pipeline_id, :bigint)2234 -> 0.0013s2235== 20210525184900 AddLatestPipelineIdIntoVulnerabilityStatisticsTable: migrated (0.0014s) 2236== 20210526135911 CreateCiMinutesAdditionalPacks: migrating ===================2237-- create_table(:ci_minutes_additional_packs, {:if_not_exists=>true})2238-- quote_column_name(:purchase_xid)2239 -> 0.0000s2240 -> 0.0048s2241-- quote_table_name("check_d7ef254af0")2242 -> 0.0000s2243-- quote_table_name(:ci_minutes_additional_packs)2244 -> 0.0000s2245-- execute("ALTER TABLE \"ci_minutes_additional_packs\"\nADD CONSTRAINT \"check_d7ef254af0\" CHECK (char_length(\"purchase_xid\") <= 32)\n")2246 -> 0.0008s2247== 20210526135911 CreateCiMinutesAdditionalPacks: migrated (0.0094s) ==========2248== 20210526155257 RenameSyncSecurityReportApprovalRulesSidekiqQueue: migrating 2249== 20210526155257 RenameSyncSecurityReportApprovalRulesSidekiqQueue: migrated (0.0005s) 2250== 20210526160133 RemoveSegmentSelectionsTable: migrating =====================2251-- drop_table(:analytics_devops_adoption_segment_selections)2252 -> 0.0030s2253== 20210526160133 RemoveSegmentSelectionsTable: migrated (0.0032s) ============2254== 20210526181820 AddIndexToVulnerabilityStatisticsOnLatestPipelineId: migrating 2255-- transaction_open?()2256 -> 0.0000s2257-- index_exists?(:vulnerability_statistics, :latest_pipeline_id, {:name=>"index_vulnerability_statistics_on_latest_pipeline_id", :algorithm=>:concurrently})2258 -> 0.0026s2259-- add_index(:vulnerability_statistics, :latest_pipeline_id, {:name=>"index_vulnerability_statistics_on_latest_pipeline_id", :algorithm=>:concurrently})2260 -> 0.0012s2261== 20210526181820 AddIndexToVulnerabilityStatisticsOnLatestPipelineId: migrated (0.0055s) 2262== 20210526181821 AddForeignKeyForLatestPipelineIdToCiPipelines: migrating ====2263-- transaction_open?()2264 -> 0.0000s2265-- foreign_keys(:vulnerability_statistics)2266 -> 0.0026s2267-- execute("ALTER TABLE vulnerability_statistics\nADD CONSTRAINT fk_e8b13c928f\nFOREIGN KEY (latest_pipeline_id)\nREFERENCES ci_pipelines (id)\nON DELETE SET NULL\nNOT VALID;\n")2268 -> 0.0011s2269-- execute("ALTER TABLE vulnerability_statistics VALIDATE CONSTRAINT fk_e8b13c928f;")2270 -> 0.0013s2271== 20210526181821 AddForeignKeyForLatestPipelineIdToCiPipelines: migrated (0.0086s) 2272== 20210526190259 AddCiDailyPipelineScheduleTriggersToPlanLimits: migrating ===2273-- add_column(:plan_limits, :ci_daily_pipeline_schedule_triggers, :integer, {:default=>0, :null=>false})2274 -> 0.0020s2275== 20210526190259 AddCiDailyPipelineScheduleTriggersToPlanLimits: migrated (0.0021s) 2276== 20210526190553 InsertCiDailyPipelineScheduleTriggersPlanLimits: migrating ==2277== 20210526190553 InsertCiDailyPipelineScheduleTriggersPlanLimits: migrated (0.0000s) 2278== 20210526222715 BackfillDraftStatusOnMergeRequests: migrating ===============2279== 20210526222715 BackfillDraftStatusOnMergeRequests: migrated (0.0000s) ======2280== 20210527065005 AddIndexForCadenceIterationsAutomation: migrating ===========2281== 20210527065005 AddIndexForCadenceIterationsAutomation: migrated (0.0000s) ==2282== 20210527130524 RenameExperimentSubjectsGroupIdToNamespaceId: migrating =====2283-- transaction_open?()2284 -> 0.0000s2285-- columns(:experiment_subjects)2286 -> 0.0021s2287-- column_exists?(:experiment_subjects, :id)2288 -> 0.0020s2289-- column_exists?(:experiment_subjects, :namespace_id)2290 -> 0.0020s2291-- columns(:experiment_subjects)2292 -> 0.0020s2293-- add_column(:experiment_subjects, :namespace_id, :integer, {:limit=>8, :precision=>nil, :scale=>nil})2294 -> 0.0013s2295-- transaction_open?()2296 -> 0.0000s2297-- exec_query("SELECT COUNT(*) AS count FROM \"experiment_subjects\"")2298 -> 0.0012s2299-- indexes(:experiment_subjects)2300 -> 0.0037s2301-- transaction_open?()2302 -> 0.0000s2303-- index_exists?(:experiment_subjects, ["namespace_id"], {:unique=>false, :name=>"index_experiment_subjects_on_namespace_id", :length=>{}, :order=>{}, :using=>:btree, :algorithm=>:concurrently})2304 -> 0.0036s2305-- add_index(:experiment_subjects, ["namespace_id"], {:unique=>false, :name=>"index_experiment_subjects_on_namespace_id", :length=>{}, :order=>{}, :using=>:btree, :algorithm=>:concurrently})2306 -> 0.0017s2307-- foreign_keys(:experiment_subjects)2308 -> 0.0031s2309-- transaction_open?()2310 -> 0.0000s2311-- foreign_keys("experiment_subjects")2312 -> 0.0033s2313-- transaction_open?()2314 -> 0.0000s2315-- execute("ALTER TABLE experiment_subjects\nADD CONSTRAINT fk_842649f2f5\nFOREIGN KEY (namespace_id)\nREFERENCES namespaces (id)\nON DELETE CASCADE\nNOT VALID;\n")2316 -> 0.0018s2317-- execute("ALTER TABLE experiment_subjects VALIDATE CONSTRAINT fk_842649f2f5;")2318 -> 0.0019s2319-- transaction_open?()2320 -> 0.0000s2321-- column_exists?(:experiment_subjects, :group_id)2322 -> 0.0024s2323-- column_exists?(:experiment_subjects, :namespace_id)2324 -> 0.0022s2325-- current_schema()2326 -> 0.0006s2327-- transaction_open?()2328 -> 0.0000s2329-- current_schema()2330 -> 0.0006s2331-- transaction_open?()2332 -> 0.0000s2333-- execute("ALTER TABLE experiment_subjects\nADD CONSTRAINT check_f6411bc4b5\nCHECK ( (num_nonnulls(user_id, namespace_id, project_id) = 1) )\nNOT VALID;\n")2334 -> 0.0010s2335-- current_schema()2336 -> 0.0006s2337-- execute("ALTER TABLE experiment_subjects VALIDATE CONSTRAINT check_f6411bc4b5;")2338 -> 0.0008s2339-- transaction_open?()2340 -> 0.0000s2341-- quote_table_name(:experiment_subjects)2342 -> 0.0000s2343-- quote_column_name(:group_id)2344 -> 0.0001s2345-- quote_column_name(:namespace_id)2346 -> 0.0000s2347-- execute("CREATE OR REPLACE FUNCTION function_for_trigger_836cc6e21090()\nRETURNS trigger\nLANGUAGE plpgsql\nAS $$\nBEGIN\n IF NEW.\"group_id\" IS NULL AND NEW.\"namespace_id\" IS NOT NULL THEN\n NEW.\"group_id\" = NEW.\"namespace_id\";\n END IF;\n\n IF NEW.\"namespace_id\" IS NULL AND NEW.\"group_id\" IS NOT NULL THEN\n NEW.\"namespace_id\" = NEW.\"group_id\";\n END IF;\n\n RETURN NEW;\nEND\n$$;\n\nDROP TRIGGER IF EXISTS trigger_836cc6e21090\nON \"experiment_subjects\";\n\nCREATE TRIGGER trigger_836cc6e21090\nBEFORE INSERT ON \"experiment_subjects\"\nFOR EACH ROW EXECUTE FUNCTION function_for_trigger_836cc6e21090();\n")2348 -> 0.0011s2349-- execute("CREATE OR REPLACE FUNCTION function_for_trigger_f34d96e77cd2()\nRETURNS trigger\nLANGUAGE plpgsql\nAS $$\nBEGIN\n NEW.\"group_id\" := NEW.\"namespace_id\";\n RETURN NEW;\nEND\n$$;\n\nDROP TRIGGER IF EXISTS trigger_f34d96e77cd2\nON \"experiment_subjects\";\n\nCREATE TRIGGER trigger_f34d96e77cd2\nBEFORE UPDATE OF \"namespace_id\" ON \"experiment_subjects\"\nFOR EACH ROW EXECUTE FUNCTION function_for_trigger_f34d96e77cd2();\n")2350 -> 0.0008s2351-- execute("CREATE OR REPLACE FUNCTION function_for_trigger_e4cd678bbcb3()\nRETURNS trigger\nLANGUAGE plpgsql\nAS $$\nBEGIN\n NEW.\"namespace_id\" := NEW.\"group_id\";\n RETURN NEW;\nEND\n$$;\n\nDROP TRIGGER IF EXISTS trigger_e4cd678bbcb3\nON \"experiment_subjects\";\n\nCREATE TRIGGER trigger_e4cd678bbcb3\nBEFORE UPDATE OF \"group_id\" ON \"experiment_subjects\"\nFOR EACH ROW EXECUTE FUNCTION function_for_trigger_e4cd678bbcb3();\n")2352 -> 0.0007s2353== 20210527130524 RenameExperimentSubjectsGroupIdToNamespaceId: migrated (0.0660s) 2354== 20210527131039 CleanUpRenameExperimentSubjectsGroupIdToNamespaceId: migrating 2355-- column_exists?(:experiment_subjects, :group_id)2356 -> 0.0021s2357-- transaction_open?()2358 -> 0.0000s2359-- quote_table_name(:experiment_subjects)2360 -> 0.0000s2361-- execute("DROP TRIGGER IF EXISTS trigger_836cc6e21090\nON \"experiment_subjects\";\n\nDROP FUNCTION IF EXISTS function_for_trigger_836cc6e21090;\n")2362 -> 0.0007s2363-- execute("DROP TRIGGER IF EXISTS trigger_f34d96e77cd2\nON \"experiment_subjects\";\n\nDROP FUNCTION IF EXISTS function_for_trigger_f34d96e77cd2;\n")2364 -> 0.0009s2365-- execute("DROP TRIGGER IF EXISTS trigger_e4cd678bbcb3\nON \"experiment_subjects\";\n\nDROP FUNCTION IF EXISTS function_for_trigger_e4cd678bbcb3;\n")2366 -> 0.0007s2367-- remove_column(:experiment_subjects, :group_id)2368 -> 0.0013s2369== 20210527131039 CleanUpRenameExperimentSubjectsGroupIdToNamespaceId: migrated (0.0100s) 2370== 20210527133919 AddDiffMaxLinesToApplicationSettings: migrating =============2371-- add_column(:application_settings, :diff_max_lines, :integer, {:default=>50000, :null=>false})2372 -> 0.0029s2373== 20210527133919 AddDiffMaxLinesToApplicationSettings: migrated (0.0031s) ====2374== 20210527134019 AddDiffMaxFilesToApplicationSettings: migrating =============2375-- add_column(:application_settings, :diff_max_files, :integer, {:default=>1000, :null=>false})2376 -> 0.0026s2377== 20210527134019 AddDiffMaxFilesToApplicationSettings: migrated (0.0027s) ====2378== 20210527185542 AddPreventSharingGroupsOutsideHierarchyToNamespaceSettings: migrating 2379-- add_column(:namespace_settings, :prevent_sharing_groups_outside_hierarchy, :boolean, {:null=>false, :default=>false})2380 -> 0.0014s2381== 20210527185542 AddPreventSharingGroupsOutsideHierarchyToNamespaceSettings: migrated (0.0046s) 2382== 20210527194558 CreateCiJobTokenProjectScopeLinks: migrating ================2383-- create_table(:ci_job_token_project_scope_links, {:if_not_exists=>true})2384 -> 0.0069s2385== 20210527194558 CreateCiJobTokenProjectScopeLinks: migrated (0.0102s) =======2386== 20210529164247 ChangeIterationsTitleUniquenessIndex: migrating =============2387-- transaction_open?()2388 -> 0.0000s2389-- index_exists?(:sprints, [:iterations_cadence_id, :title], {:name=>"index_sprints_on_iterations_cadence_id_and_title", :unique=>true, :algorithm=>:concurrently})2390 -> 0.0060s2391-- add_index(:sprints, [:iterations_cadence_id, :title], {:name=>"index_sprints_on_iterations_cadence_id_and_title", :unique=>true, :algorithm=>:concurrently})2392 -> 0.0013s2393-- transaction_open?()2394 -> 0.0000s2395-- indexes(:sprints)2396 -> 0.0060s2397-- remove_index(:sprints, {:algorithm=>:concurrently, :name=>"index_sprints_on_group_id_and_title"})2398 -> 0.0011s2399== 20210529164247 ChangeIterationsTitleUniquenessIndex: migrated (0.0175s) ====2400== 20210531053916 RenameInstanceStatisticsMeasurements: migrating =============2401-- transaction()2402-- rename_table(:analytics_instance_statistics_measurements, :analytics_usage_trends_measurements)2403 -> 0.0051s2404-- execute("CREATE VIEW analytics_instance_statistics_measurements AS SELECT * FROM analytics_usage_trends_measurements")2405 -> 0.0012s2406 -> 0.0065s2407== 20210531053916 RenameInstanceStatisticsMeasurements: migrated (0.0067s) ====2408== 20210531054108 FinalizeRenameInstanceStatisticsMeasurements: migrating =====2409-- transaction()2410-- execute("DROP VIEW IF EXISTS analytics_instance_statistics_measurements")2411 -> 0.0012s2412 -> 0.0013s2413== 20210531054108 FinalizeRenameInstanceStatisticsMeasurements: migrated (0.0013s) 2414== 20210531070452 DefaultEnforceSshKeyExpiration: migrating ===================2415-- change_column_default(:application_settings, :enforce_ssh_key_expiration, {:from=>false, :to=>true})2416 -> 0.0976s2417== 20210531070452 DefaultEnforceSshKeyExpiration: migrated (0.0978s) ==========2418== 20210531071107 EnableEnforceSshKeyExpiration: migrating ====================2419== 20210531071107 EnableEnforceSshKeyExpiration: migrated (0.1212s) ===========2420== 20210601073400 FixTotalStageInVsa: migrating ===============================2421== 20210601073400 FixTotalStageInVsa: migrated (0.0054s) ======================2422== 20210601080039 GroupProtectedEnvironmentsAddIndexAndConstraint: migrating ==2423-- transaction_open?()2424 -> 0.0000s2425-- index_exists?(:protected_environments, [:group_id, :name], {:unique=>true, :name=>"index_protected_environments_on_group_id_and_name", :where=>"group_id IS NOT NULL", :algorithm=>:concurrently})2426 -> 0.0025s2427-- add_index(:protected_environments, [:group_id, :name], {:unique=>true, :name=>"index_protected_environments_on_group_id_and_name", :where=>"group_id IS NOT NULL", :algorithm=>:concurrently})2428 -> 0.0015s2429-- transaction_open?()2430 -> 0.0000s2431-- foreign_keys(:protected_environments)2432 -> 0.0028s2433-- execute("ALTER TABLE protected_environments\nADD CONSTRAINT fk_9e112565b7\nFOREIGN KEY (group_id)\nREFERENCES namespaces (id)\nON DELETE CASCADE\nNOT VALID;\n")2434 -> 0.0016s2435-- execute("ALTER TABLE protected_environments VALIDATE CONSTRAINT fk_9e112565b7;")2436 -> 0.0016s2437-- transaction_open?()2438 -> 0.0000s2439-- current_schema()2440 -> 0.0007s2441-- execute("ALTER TABLE protected_environments\nADD CONSTRAINT protected_environments_project_or_group_existence\nCHECK ( ((project_id IS NULL) != (group_id IS NULL)) )\nNOT VALID;\n")2442 -> 0.0010s2443-- current_schema()2444 -> 0.0005s2445-- execute("ALTER TABLE protected_environments VALIDATE CONSTRAINT protected_environments_project_or_group_existence;")2446 -> 0.0008s2447== 20210601080039 GroupProtectedEnvironmentsAddIndexAndConstraint: migrated (0.0259s) 2448== 20210601123341 AddRunningBuildsTable: migrating ============================2449-- create_table(:ci_running_builds, {})2450 -> 0.0076s2451== 20210601123341 AddRunningBuildsTable: migrated (0.0078s) ===================2452== 20210601125410 AddRunnersCreatedAtIndex: migrating =========================2453-- transaction_open?()2454 -> 0.0000s2455-- index_exists?(:ci_runners, [:created_at, :id], {:order=>{:id=>:desc}, :name=>"index_ci_runners_on_created_at_and_id_desc", :algorithm=>:concurrently})2456 -> 0.0039s2457-- add_index(:ci_runners, [:created_at, :id], {:order=>{:id=>:desc}, :name=>"index_ci_runners_on_created_at_and_id_desc", :algorithm=>:concurrently})2458 -> 0.0017s2459-- transaction_open?()2460 -> 0.0000s2461-- index_exists?(:ci_runners, [:created_at, :id], {:order=>{:created_at=>:desc, :id=>:desc}, :name=>"index_ci_runners_on_created_at_desc_and_id_desc", :algorithm=>:concurrently})2462 -> 0.0042s2463-- add_index(:ci_runners, [:created_at, :id], {:order=>{:created_at=>:desc, :id=>:desc}, :name=>"index_ci_runners_on_created_at_desc_and_id_desc", :algorithm=>:concurrently})2464 -> 0.0015s2465== 20210601125410 AddRunnersCreatedAtIndex: migrated (0.0154s) ================2466== 20210601131742 UpdateWebHookCallsLimit: migrating ==========================2467== 20210601131742 UpdateWebHookCallsLimit: migrated (0.0001s) =================2468== 20210601132134 RemovePartialIndexForHashedStorageMigration: migrating ======2469-- transaction_open?()2470 -> 0.0000s2471-- index_exists?(:projects, :id, {:name=>"index_on_id_partial_with_legacy_storage", :algorithm=>:concurrently})2472 -> 0.0274s2473-- remove_index(:projects, {:name=>"index_on_id_partial_with_legacy_storage", :algorithm=>:concurrently, :column=>:id})2474 -> 0.0288s2475== 20210601132134 RemovePartialIndexForHashedStorageMigration: migrated (0.0585s) 2476== 20210601133459 ReplaceRunnersContactedAtIndex: migrating ===================2477-- transaction_open?()2478 -> 0.0000s2479-- index_exists?(:ci_runners, [:contacted_at, :id], {:order=>{:id=>:desc}, :name=>"index_ci_runners_on_contacted_at_and_id_desc", :using=>"btree", :algorithm=>:concurrently})2480 -> 0.0049s2481-- add_index(:ci_runners, [:contacted_at, :id], {:order=>{:id=>:desc}, :name=>"index_ci_runners_on_contacted_at_and_id_desc", :using=>"btree", :algorithm=>:concurrently})2482 -> 0.0014s2483-- transaction_open?()2484 -> 0.0000s2485-- index_exists?(:ci_runners, [:contacted_at, :id], {:order=>{:contacted_at=>:desc, :id=>:desc}, :name=>"index_ci_runners_on_contacted_at_desc_and_id_desc", :using=>"btree", :algorithm=>:concurrently})2486 -> 0.0052s2487-- add_index(:ci_runners, [:contacted_at, :id], {:order=>{:contacted_at=>:desc, :id=>:desc}, :name=>"index_ci_runners_on_contacted_at_desc_and_id_desc", :using=>"btree", :algorithm=>:concurrently})2488 -> 0.0016s2489-- transaction_open?()2490 -> 0.0000s2491-- indexes(:ci_runners)2492 -> 0.0056s2493-- remove_index(:ci_runners, {:algorithm=>:concurrently, :name=>"index_ci_runners_on_contacted_at"})2494 -> 0.0014s2495== 20210601133459 ReplaceRunnersContactedAtIndex: migrated (0.0265s) ==========2496== 20210602122213 AddUpcomingReconciliations: migrating =======================2497-- create_table(:upcoming_reconciliations)2498 -> 0.0041s2499== 20210602122213 AddUpcomingReconciliations: migrated (0.0075s) ==============2500== 20210602122233 AddRunnersDescriptionIndex: migrating =======================2501-- transaction_open?()2502 -> 0.0000s2503-- index_exists?(:ci_runners, :description, {:name=>"index_ci_runners_on_description_trigram", :using=>:gin, :opclass=>{:description=>:gin_trgm_ops}, :algorithm=>:concurrently})2504 -> 0.0053s2505-- add_index(:ci_runners, :description, {:name=>"index_ci_runners_on_description_trigram", :using=>:gin, :opclass=>{:description=>:gin_trgm_ops}, :algorithm=>:concurrently})2506 -> 0.0014s2507== 20210602122233 AddRunnersDescriptionIndex: migrated (0.0085s) ==============2508== 20210602155056 AddMergeRequestDiffCommitUsers: migrating ===================2509-- create_table(:merge_request_diff_commit_users, {:id=>:bigint})2510-- quote_column_name(:name)2511 -> 0.0000s2512-- quote_column_name(:email)2513 -> 0.0000s2514 -> 0.0040s2515-- quote_table_name("check_147358fc42")2516 -> 0.0000s2517-- quote_table_name("check_f5fa206cf7")2518 -> 0.0000s2519-- quote_table_name(:merge_request_diff_commit_users)2520 -> 0.0000s2521-- execute("ALTER TABLE \"merge_request_diff_commit_users\"\nADD CONSTRAINT \"check_147358fc42\" CHECK (char_length(\"name\") <= 512),\nADD CONSTRAINT \"check_f5fa206cf7\" CHECK (char_length(\"email\") <= 512)\n")2522 -> 0.0011s2523-- transaction_open?()2524 -> 0.0000s2525-- current_schema()2526 -> 0.0005s2527-- execute("ALTER TABLE merge_request_diff_commit_users\nADD CONSTRAINT merge_request_diff_commit_users_name_or_email_existence\nCHECK ( (COALESCE(name, '') != '') OR (COALESCE(email, '') != '') )\nNOT VALID;\n")2528 -> 0.0010s2529-- current_schema()2530 -> 0.0005s2531-- execute("ALTER TABLE merge_request_diff_commit_users VALIDATE CONSTRAINT merge_request_diff_commit_users_name_or_email_existence;")2532 -> 0.0008s2533== 20210602155056 AddMergeRequestDiffCommitUsers: migrated (0.0175s) ==========2534== 20210602155110 AddMergeRequestDiffCommitUserColumns: migrating =============2535-- add_column(:merge_request_diff_commits, :commit_author_id, :bigint)2536 -> 0.0016s2537-- add_column(:merge_request_diff_commits, :committer_id, :bigint)2538 -> 0.0008s2539== 20210602155110 AddMergeRequestDiffCommitUserColumns: migrated (0.0025s) ====2540== 20210602164044 ScheduleLatestPipelineIdPopulation: migrating ===============2541== 20210602164044 ScheduleLatestPipelineIdPopulation: migrated (0.0000s) ======2542== 20210603140302 AddPronounsToUserDetails: migrating =========================2543-- add_column(:user_details, :pronouns, :text, {:null=>true})2544 -> 0.0010s2545== 20210603140302 AddPronounsToUserDetails: migrated (0.0043s) ================2546== 20210603222333 RemoveBuildsEmailServiceFromServices: migrating =============2547-- execute("DELETE from services WHERE type = 'BuildsEmailService'")2548 -> 0.0012s2549== 20210603222333 RemoveBuildsEmailServiceFromServices: migrated (0.0014s) ====2550== 20210604032738 CreateDastSiteProfilesBuilds: migrating =====================2551-- create_table(:dast_site_profiles_builds, {:primary_key=>[:dast_site_profile_id, :ci_build_id], :comment=>"{\"owner\":\"group::dynamic analysis\",\"description\":\"Join table between DAST Site Profiles and CI Builds\"}"})2552 -> 0.0037s2553== 20210604032738 CreateDastSiteProfilesBuilds: migrated (0.0039s) ============2554== 20210604034158 AddCiBuildIdFkToDastSiteProfilesBuilds: migrating ===========2555-- transaction_open?()2556 -> 0.0000s2557-- foreign_keys(:dast_site_profiles_builds)2558 -> 0.0030s2559-- execute("ALTER TABLE dast_site_profiles_builds\nADD CONSTRAINT fk_a325505e99\nFOREIGN KEY (ci_build_id)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n")2560 -> 0.0013s2561-- execute("ALTER TABLE dast_site_profiles_builds VALIDATE CONSTRAINT fk_a325505e99;")2562 -> 0.0015s2563== 20210604034158 AddCiBuildIdFkToDastSiteProfilesBuilds: migrated (0.0103s) ==2564== 20210604034354 AddDastSiteProfileIdFkToDastSiteProfilesBuilds: migrating ===2565-- transaction_open?()2566 -> 0.0001s2567-- foreign_keys(:dast_site_profiles_builds)2568 -> 0.0030s2569-- execute("ALTER TABLE dast_site_profiles_builds\nADD CONSTRAINT fk_94e80df60e\nFOREIGN KEY (dast_site_profile_id)\nREFERENCES dast_site_profiles (id)\nON DELETE CASCADE\nNOT VALID;\n")2570 -> 0.0014s2571-- execute("ALTER TABLE dast_site_profiles_builds VALIDATE CONSTRAINT fk_94e80df60e;")2572 -> 0.0013s2573== 20210604034354 AddDastSiteProfileIdFkToDastSiteProfilesBuilds: migrated (0.0106s) 2574== 20210604051330 CreateDastScannerProfilesBuilds: migrating ==================2575-- create_table(:dast_scanner_profiles_builds, {:primary_key=>[:dast_scanner_profile_id, :ci_build_id], :comment=>"{\"owner\":\"group::dynamic analysis\",\"description\":\"Join table between DAST Scanner Profiles and CI Builds\"}"})2576 -> 0.0034s2577== 20210604051330 CreateDastScannerProfilesBuilds: migrated (0.0037s) =========2578== 20210604051742 AddCiBuildIdFkToDastScannerProfilesBuilds: migrating ========2579-- transaction_open?()2580 -> 0.0000s2581-- foreign_keys(:dast_scanner_profiles_builds)2582 -> 0.0027s2583-- execute("ALTER TABLE dast_scanner_profiles_builds\nADD CONSTRAINT fk_e4c49200f8\nFOREIGN KEY (ci_build_id)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n")2584 -> 0.0011s2585-- execute("ALTER TABLE dast_scanner_profiles_builds VALIDATE CONSTRAINT fk_e4c49200f8;")2586 -> 0.0013s2587== 20210604051742 AddCiBuildIdFkToDastScannerProfilesBuilds: migrated (0.0091s) 2588== 20210604051917 AddDastScannerProfileIdFkToDastScannerProfilesBuilds: migrating 2589-- transaction_open?()2590 -> 0.0000s2591-- foreign_keys(:dast_scanner_profiles_builds)2592 -> 0.0028s2593-- execute("ALTER TABLE dast_scanner_profiles_builds\nADD CONSTRAINT fk_5d46286ad3\nFOREIGN KEY (dast_scanner_profile_id)\nREFERENCES dast_scanner_profiles (id)\nON DELETE CASCADE\nNOT VALID;\n")2594 -> 0.0010s2595-- execute("ALTER TABLE dast_scanner_profiles_builds VALIDATE CONSTRAINT fk_5d46286ad3;")2596 -> 0.0011s2597== 20210604051917 AddDastScannerProfileIdFkToDastScannerProfilesBuilds: migrated (0.0093s) 2598== 20210604070207 RetryBackfillTraversalIds: migrating ========================2599-- Scheduled 1 BackfillNamespaceTraversalIdsRoots jobs with an interval of 120 seconds.2600The migration is expected to take at least 120 seconds. Expect all jobs to have completed after 2021-10-13 18:29:12 UTC."2601-- Scheduled 0 BackfillNamespaceTraversalIdsChildren jobs with an interval of 120 seconds.2602The migration is expected to take at least 120 seconds. Expect all jobs to have completed after 2021-10-13 18:29:12 UTC."2603== 20210604070207 RetryBackfillTraversalIds: migrated (0.0099s) ===============2604== 20210604082145 CreateExternalStatusChecksTable: migrating ==================2605-- create_table(:external_status_checks, {:if_not_exists=>true})2606-- quote_column_name(:external_url)2607 -> 0.0000s2608-- quote_column_name(:name)2609 -> 0.0000s2610 -> 0.0076s2611-- quote_table_name("check_ae0dec3f61")2612 -> 0.0000s2613-- quote_table_name("check_7e3b9eb41a")2614 -> 0.0000s2615-- quote_table_name(:external_status_checks)2616 -> 0.0000s2617-- execute("ALTER TABLE \"external_status_checks\"\nADD CONSTRAINT \"check_ae0dec3f61\" CHECK (char_length(\"external_url\") <= 255),\nADD CONSTRAINT \"check_7e3b9eb41a\" CHECK (char_length(\"name\") <= 255)\n")2618 -> 0.0009s2619-- create_table(:external_status_checks_protected_branches)2620 -> 0.0038s2621== 20210604082145 CreateExternalStatusChecksTable: migrated (0.0159s) =========2622== 20210604085600 RenameStatusCheckResponsesApprovalRule: migrating ===========2623-- execute("DELETE FROM status_check_responses")2624 -> 0.0007s2625-- column_exists?(:status_check_responses, :external_status_check_id)2626 -> 0.0015s2627-- add_column(:status_check_responses, :external_status_check_id, :bigint, {:null=>false})2628 -> 0.0013s2629-- transaction_open?()2630 -> 0.0000s2631-- foreign_keys(:status_check_responses)2632 -> 0.0027s2633-- execute("ALTER TABLE status_check_responses\nADD CONSTRAINT fk_55bd2abc83\nFOREIGN KEY (external_status_check_id)\nREFERENCES external_status_checks (id)\nON DELETE CASCADE\nNOT VALID;\n")2634 -> 0.0010s2635-- execute("ALTER TABLE status_check_responses VALIDATE CONSTRAINT fk_55bd2abc83;")2636 -> 0.0011s2637-- transaction_open?()2638 -> 0.0000s2639-- foreign_keys(:status_check_responses)2640 -> 0.0029s2641-- execute("ALTER TABLE status_check_responses VALIDATE CONSTRAINT fk_f3953d86c6;")2642 -> 0.0007s2643-- transaction_open?()2644 -> 0.0000s2645-- index_exists?(:status_check_responses, :external_status_check_id, {:algorithm=>:concurrently})2646 -> 0.0024s2647-- add_index(:status_check_responses, :external_status_check_id, {:algorithm=>:concurrently})2648 -> 0.0012s2649-- change_column_null(:status_check_responses, :external_approval_rule_id, true)2650 -> 0.0007s2651-- remove_foreign_key(:status_check_responses, :external_approval_rules)2652 -> 0.0038s2653== 20210604085600 RenameStatusCheckResponsesApprovalRule: migrated (0.0307s) ==2654== 20210604133651 ScheduleMergeRequestDiffUsersBackgroundMigration: migrating =2655== 20210604133651 ScheduleMergeRequestDiffUsersBackgroundMigration: migrated (0.0000s) 2656== 20210606143426 AddIndexForContainerRegistryAccessLevel: migrating ==========2657-- indexes("project_features")2658 -> 0.0030s2659-- current_schema()2660 -> 0.0005s2661-- execute("CREATE UNIQUE INDEX CONCURRENTLY index_project_features_on_project_id_include_container_registry ON project_features USING btree (project_id) INCLUDE (container_registry_access_level)")2662 -> 0.0014s2663-- execute("COMMENT ON INDEX index_project_features_on_project_id_include_container_registry IS 'Included column (container_registry_access_level) improves performance of the ContainerRepository.for_group_and_its_subgroups scope query'")2664 -> 0.0007s2665== 20210606143426 AddIndexForContainerRegistryAccessLevel: migrated (0.0082s) =2666== 20210607050531 AddTextLimitToUserDetailsPronouns: migrating ================2667-- transaction_open?()2668 -> 0.0000s2669-- current_schema()2670 -> 0.0005s2671-- execute("ALTER TABLE user_details\nADD CONSTRAINT check_eeeaf8d4f0\nCHECK ( char_length(pronouns) <= 50 )\nNOT VALID;\n")2672 -> 0.0009s2673-- current_schema()2674 -> 0.0005s2675-- execute("ALTER TABLE user_details VALIDATE CONSTRAINT check_eeeaf8d4f0;")2676 -> 0.0008s2677== 20210607050531 AddTextLimitToUserDetailsPronouns: migrated (0.0089s) =======2678== 20210607080044 RemoveTemporaryIndexOnSecurityFindingsScanId: migrating =====2679-- transaction_open?()2680 -> 0.0000s2681-- indexes(:security_findings)2682 -> 0.0056s2683-- remove_index(:security_findings, {:algorithm=>:concurrently, :name=>"tmp_index_on_security_findings_scan_id"})2684 -> 0.0014s2685== 20210607080044 RemoveTemporaryIndexOnSecurityFindingsScanId: migrated (0.0090s) 2686== 20210607154719 AddJobTokenScopeEnabledToCiCdSettings: migrating ============2687-- add_column(:project_ci_cd_settings, :job_token_scope_enabled, :boolean, {:default=>false, :null=>false})2688 -> 0.0015s2689== 20210607154719 AddJobTokenScopeEnabledToCiCdSettings: migrated (0.0050s) ===2690== 20210608072312 InitializeConversionOfCiStagesToBigint: migrating ===========2691-- table_exists?(:ci_stages)2692 -> 0.0013s2693-- column_exists?(:ci_stages, :id)2694 -> 0.0020s2695-- column_exists?(:ci_stages, :id)2696 -> 0.0017s2697-- columns(:ci_stages)2698 -> 0.0018s2699-- add_column(:ci_stages, "id_convert_to_bigint", :bigint, {:default=>0, :null=>false})2700 -> 0.0015s2701== 20210608072312 InitializeConversionOfCiStagesToBigint: migrated (0.0141s) ==2702== 20210608072346 BackfillCiStagesForBigintConversion: migrating ==============2703-- table_exists?(:ci_stages)2704 -> 0.0014s2705-- column_exists?(:ci_stages, :id)2706 -> 0.0020s2707-- column_exists?(:ci_stages, :id)2708 -> 0.0019s2709-- column_exists?(:ci_stages, "id_convert_to_bigint")2710 -> 0.0019s2711== 20210608072346 BackfillCiStagesForBigintConversion: migrated (0.0161s) =====2712== 20210608103230 AddIssueIdToTestReport: migrating ===========================2713-- add_column(:requirements_management_test_reports, :issue_id, :bigint, {:null=>true})2714 -> 0.0011s2715== 20210608103230 AddIssueIdToTestReport: migrated (0.0045s) ==================2716== 20210608103235 AddIssueIndexToTestReport: migrating ========================2717-- transaction_open?()2718 -> 0.0000s2719-- index_exists?(:requirements_management_test_reports, :issue_id, {:name=>"index_requirements_management_test_reports_on_issue_id", :algorithm=>:concurrently})2720 -> 0.0031s2721-- add_index(:requirements_management_test_reports, :issue_id, {:name=>"index_requirements_management_test_reports_on_issue_id", :algorithm=>:concurrently})2722 -> 0.0015s2723== 20210608103235 AddIssueIndexToTestReport: migrated (0.0064s) ===============2724== 20210608110752 ChangeColumnNullTestReportRequirement: migrating ============2725-- change_column_null(:requirements_management_test_reports, :requirement_id, true)2726 -> 0.0008s2727== 20210608110752 ChangeColumnNullTestReportRequirement: migrated (0.0042s) ===2728== 20210608110760 AddRequirementTestReportsForeignKey: migrating ==============2729-- transaction_open?()2730 -> 0.0000s2731-- foreign_keys(:requirements_management_test_reports)2732 -> 0.0029s2733-- execute("ALTER TABLE requirements_management_test_reports\nADD CONSTRAINT fk_88f30752fc\nFOREIGN KEY (issue_id)\nREFERENCES issues (id)\nON DELETE CASCADE\nNOT VALID;\n")2734 -> 0.0015s2735-- execute("ALTER TABLE requirements_management_test_reports VALIDATE CONSTRAINT fk_88f30752fc;")2736 -> 0.0016s2737-- transaction_open?()2738 -> 0.0000s2739-- current_schema()2740 -> 0.0005s2741-- execute("ALTER TABLE requirements_management_test_reports\nADD CONSTRAINT requirements_test_reports_requirement_id_xor_issue_id\nCHECK ( num_nonnulls(requirement_id, issue_id) = 1 )\nNOT VALID;\n")2742 -> 0.0010s2743-- current_schema()2744 -> 0.0005s2745-- execute("ALTER TABLE requirements_management_test_reports VALIDATE CONSTRAINT requirements_test_reports_requirement_id_xor_issue_id;")2746 -> 0.0010s2747== 20210608110760 AddRequirementTestReportsForeignKey: migrated (0.0205s) =====2748== 20210609013512 AddUniqueIndexForBatchedBackgroundMigrations: migrating =====2749-- transaction_open?()2750 -> 0.0000s2751-- index_exists?(:batched_background_migrations, [:job_class_name, :table_name, :column_name, :job_arguments], {:unique=>true, :name=>"index_batched_background_migrations_on_unique_configuration", :algorithm=>:concurrently})2752 -> 0.0024s2753-- add_index(:batched_background_migrations, [:job_class_name, :table_name, :column_name, :job_arguments], {:unique=>true, :name=>"index_batched_background_migrations_on_unique_configuration", :algorithm=>:concurrently})2754 -> 0.0019s2755-- transaction_open?()2756 -> 0.0000s2757-- indexes(:batched_background_migrations)2758 -> 0.0041s2759-- remove_index(:batched_background_migrations, {:algorithm=>:concurrently, :name=>"index_batched_migrations_on_job_table_and_column_name"})2760 -> 0.0014s2761== 20210609013512 AddUniqueIndexForBatchedBackgroundMigrations: migrated (0.0139s) 2762== 20210609090856 AddExpiryIdSshKeyNotificationIndex: migrating ===============2763-- transaction_open?()2764 -> 0.0000s2765-- index_exists?(:keys, "date(timezone('UTC', expires_at)), id", {:where=>"expiry_notification_delivered_at IS NULL", :name=>"index_keys_on_expires_at_and_id", :algorithm=>:concurrently})2766 -> 0.0049s2767-- add_index(:keys, "date(timezone('UTC', expires_at)), id", {:where=>"expiry_notification_delivered_at IS NULL", :name=>"index_keys_on_expires_at_and_id", :algorithm=>:concurrently})2768 -> 0.0017s2769== 20210609090856 AddExpiryIdSshKeyNotificationIndex: migrated (0.0089s) ======2770== 20210609125005 DropNonPartitionedWebHookLogs: migrating ====================2771-- execute("DROP TRIGGER IF EXISTS table_sync_trigger_b99eb6998c ON web_hook_logs")2772 -> 0.0011s2773-- execute("DROP FUNCTION IF EXISTS table_sync_function_29bc99d6db()")2774 -> 0.0007s2775-- drop_table("web_hook_logs_archived")2776 -> 0.0015s2777== 20210609125005 DropNonPartitionedWebHookLogs: migrated (0.0071s) ===========2778== 20210609192728 AddStatusCheckForeignKeyToExternalStatusCheckId: migrating ==2779-- transaction_open?()2780 -> 0.0000s2781-- foreign_keys(:external_status_checks_protected_branches)2782 -> 0.0029s2783-- execute("ALTER TABLE external_status_checks_protected_branches\nADD CONSTRAINT fk_cc0dcc36d1\nFOREIGN KEY (external_status_check_id)\nREFERENCES external_status_checks (id)\nON DELETE CASCADE\nNOT VALID;\n")2784 -> 0.0013s2785-- execute("ALTER TABLE external_status_checks_protected_branches VALIDATE CONSTRAINT fk_cc0dcc36d1;")2786 -> 0.0011s2787== 20210609192728 AddStatusCheckForeignKeyToExternalStatusCheckId: migrated (0.0094s) 2788== 20210609193101 AddStatusCheckForeignKeyToProtectedBranchId: migrating ======2789-- transaction_open?()2790 -> 0.0000s2791-- foreign_keys(:external_status_checks_protected_branches)2792 -> 0.0028s2793-- execute("ALTER TABLE external_status_checks_protected_branches\nADD CONSTRAINT fk_b7d788e813\nFOREIGN KEY (protected_branch_id)\nREFERENCES protected_branches (id)\nON DELETE CASCADE\nNOT VALID;\n")2794 -> 0.0012s2795-- execute("ALTER TABLE external_status_checks_protected_branches VALIDATE CONSTRAINT fk_b7d788e813;")2796 -> 0.0010s2797== 20210609193101 AddStatusCheckForeignKeyToProtectedBranchId: migrated (0.0089s) 2798== 20210609202501 ScheduleBackfillDraftStatusOnMergeRequests: migrating =======2799== 20210609202501 ScheduleBackfillDraftStatusOnMergeRequests: migrated (0.0000s) 2800== 20210610042700 RemoveClustersApplicationsFluentdTable: migrating ===========2801-- drop_table(:clusters_applications_fluentd)2802 -> 0.0026s2803== 20210610042700 RemoveClustersApplicationsFluentdTable: migrated (0.0028s) ==2804== 20210610102410 AddProtectedAttributeToPendingBuilds: migrating =============2805-- add_column(:ci_pending_builds, :protected, :boolean, {:null=>false, :default=>false})2806 -> 0.0020s2807== 20210610102410 AddProtectedAttributeToPendingBuilds: migrated (0.0021s) ====2808== 20210610102413 MigrateProtectedAttributeToPendingBuilds: migrating =========2809-- transaction_open?()2810 -> 0.0000s2811== 20210610102413 MigrateProtectedAttributeToPendingBuilds: migrated (0.0036s) 2812== 20210610113229 AddIndexToProtectedPendingBuilds: migrating =================2813-- transaction_open?()2814 -> 0.0000s2815-- index_exists?(:ci_pending_builds, :id, {:where=>"protected = true", :name=>"index_ci_pending_builds_id_on_protected_partial", :algorithm=>:concurrently})2816 -> 0.0026s2817-- add_index(:ci_pending_builds, :id, {:where=>"protected = true", :name=>"index_ci_pending_builds_id_on_protected_partial", :algorithm=>:concurrently})2818 -> 0.0016s2819== 20210610113229 AddIndexToProtectedPendingBuilds: migrated (0.0062s) ========2820== 20210610141711 DisableExpirationPoliciesLinkedToNoContainerImages: migrating 2821== 20210610141711 DisableExpirationPoliciesLinkedToNoContainerImages: migrated (0.0027s) 2822== 20210610153556 DeleteLegacyOperationsFeatureFlags: migrating ===============2823-- execute("DELETE FROM operations_feature_flags WHERE version = 1")2824 -> 0.0019s2825== 20210610153556 DeleteLegacyOperationsFeatureFlags: migrated (0.0020s) ======2826== 20210611080951 FixMissingTraversalIds: migrating ===========================2827-- transaction_open?()2828 -> 0.0000s2829-- index_exists?(:namespaces, :id, {:where=>"parent_id IS NULL AND traversal_ids = '{}'", :name=>"tmp_index_namespaces_empty_traversal_ids_with_root_namespaces", :algorithm=>:concurrently})2830 -> 0.0119s2831-- add_index(:namespaces, :id, {:where=>"parent_id IS NULL AND traversal_ids = '{}'", :name=>"tmp_index_namespaces_empty_traversal_ids_with_root_namespaces", :algorithm=>:concurrently})2832 -> 0.0023s2833-- transaction_open?()2834 -> 0.0000s2835-- index_exists?(:namespaces, :id, {:where=>"parent_id IS NOT NULL AND traversal_ids = '{}'", :name=>"tmp_index_namespaces_empty_traversal_ids_with_child_namespaces", :algorithm=>:concurrently})2836 -> 0.0120s2837-- add_index(:namespaces, :id, {:where=>"parent_id IS NOT NULL AND traversal_ids = '{}'", :name=>"tmp_index_namespaces_empty_traversal_ids_with_child_namespaces", :algorithm=>:concurrently})2838 -> 0.0023s2839-- Scheduled 1 BackfillNamespaceTraversalIdsRoots jobs with a maximum of 1000 records per batch and an interval of 120 seconds.2840The migration is expected to take at least 120 seconds. Expect all jobs to have completed after 2021-10-13 18:29:13 UTC."2841-- Scheduled 0 BackfillNamespaceTraversalIdsChildren jobs with a maximum of 1000 records per batch and an interval of 120 seconds.2842The migration is expected to take at least 240 seconds. Expect all jobs to have completed after 2021-10-13 18:31:13 UTC."2843== 20210611080951 FixMissingTraversalIds: migrated (0.0462s) ==================2844== 20210611082822 AddPagesFileEntriesToPlanLimits: migrating ==================2845-- add_column(:plan_limits, :pages_file_entries, :integer, {:default=>200000, :null=>false})2846 -> 0.0026s2847== 20210611082822 AddPagesFileEntriesToPlanLimits: migrated (0.0027s) =========2848== 20210611100359 RebuildIndexForCadenceIterationsAutomation: migrating =======2849-- execute(" SELECT identifier\n FROM postgres_indexes\n WHERE identifier LIKE '%cadence_create_iterations_automation' AND valid_index=TRUE\n")2850 -> 0.0048s2851-- transaction_open?()2852 -> 0.0001s2853-- indexes(:iterations_cadences)2854 -> 0.0026s2855-- current_schema()2856 -> 0.0005s2857-- execute(" CREATE INDEX CONCURRENTLY cadence_create_iterations_automation ON iterations_cadences\n USING BTREE(automatic, duration_in_weeks, (DATE ((COALESCE(\"iterations_cadences\".\"last_run_date\", DATE('01-01-1970')) + \"iterations_cadences\".\"duration_in_weeks\" * INTERVAL '1 week')))) \n WHERE duration_in_weeks IS NOT NULL\n")2858 -> 0.0021s2859== 20210611100359 RebuildIndexForCadenceIterationsAutomation: migrated (0.0136s) 2860== 20210611101034 AddDevopsAdoptionSastDast: migrating ========================2861-- add_column(:analytics_devops_adoption_snapshots, :sast_enabled_count, :integer)2862 -> 0.0015s2863-- add_column(:analytics_devops_adoption_snapshots, :dast_enabled_count, :integer)2864 -> 0.0008s2865== 20210611101034 AddDevopsAdoptionSastDast: migrated (0.0027s) ===============2866== 20210614124111 AddDevopsAdoptionSastDastIndexes: migrating =================2867-- transaction_open?()2868 -> 0.0000s2869-- index_exists?(:ci_job_artifacts, [:project_id, :created_at], {:where=>"file_type = 5", :name=>"index_ci_job_artifacts_sast_for_devops_adoption", :algorithm=>:concurrently})2870 -> 0.0050s2871-- add_index(:ci_job_artifacts, [:project_id, :created_at], {:where=>"file_type = 5", :name=>"index_ci_job_artifacts_sast_for_devops_adoption", :algorithm=>:concurrently})2872 -> 0.0017s2873-- transaction_open?()2874 -> 0.0000s2875-- index_exists?(:ci_job_artifacts, [:project_id, :created_at], {:where=>"file_type = 8", :name=>"index_ci_job_artifacts_dast_for_devops_adoption", :algorithm=>:concurrently})2876 -> 0.0053s2877-- add_index(:ci_job_artifacts, [:project_id, :created_at], {:where=>"file_type = 8", :name=>"index_ci_job_artifacts_dast_for_devops_adoption", :algorithm=>:concurrently})2878 -> 0.0017s2879== 20210614124111 AddDevopsAdoptionSastDastIndexes: migrated (0.0179s) ========2880== 20210614131002 AddDetectionMethodToVulnerabilitiesFinding: migrating =======2881-- add_column(:vulnerability_occurrences, :detection_method, :smallint, {:null=>false, :default=>0})2882 -> 0.0016s2883== 20210614131002 AddDetectionMethodToVulnerabilitiesFinding: migrated (0.0052s) 2884== 20210614142311 AddRunningContainerScanningMaxSizeToPlanLimits: migrating ===2885-- add_column(:plan_limits, :ci_max_artifact_size_running_container_scanning, :integer, {:null=>false, :default=>0})2886 -> 0.0022s2887== 20210614142311 AddRunningContainerScanningMaxSizeToPlanLimits: migrated (0.0024s) 2888== 20210614143954 AddUniqueIndexForHelmPackages: migrating ====================2889-- transaction_open?()2890 -> 0.0000s2891-- index_exists?(:packages_packages, [:project_id, :name, :version], {:unique=>true, :where=>"package_type = 11", :name=>"index_packages_on_project_id_name_version_unique_when_helm", :algorithm=>:concurrently})2892 -> 0.0078s2893-- add_index(:packages_packages, [:project_id, :name, :version], {:unique=>true, :where=>"package_type = 11", :name=>"index_packages_on_project_id_name_version_unique_when_helm", :algorithm=>:concurrently})2894 -> 0.0019s2895== 20210614143954 AddUniqueIndexForHelmPackages: migrated (0.0118s) ===========2896== 20210615064342 AddIssueIdToRequirement: migrating ==========================2897-- add_column(:requirements, :issue_id, :bigint, {:null=>true})2898 -> 0.0012s2899== 20210615064342 AddIssueIdToRequirement: migrated (0.0049s) =================2900== 20210615234935 FixBatchedMigrationsOldFormatJobArguments: migrating ========2901== 20210615234935 FixBatchedMigrationsOldFormatJobArguments: migrated (0.0075s) 2902== 20210616110748 AddIssueIndexToRequirement: migrating =======================2903-- transaction_open?()2904 -> 0.0000s2905-- index_exists?(:requirements, :issue_id, {:name=>"index_requirements_on_issue_id", :unique=>true, :algorithm=>:concurrently})2906 -> 0.0052s2907-- add_index(:requirements, :issue_id, {:name=>"index_requirements_on_issue_id", :unique=>true, :algorithm=>:concurrently})2908 -> 0.0017s2909== 20210616110748 AddIssueIndexToRequirement: migrated (0.0090s) ==============2910== 20210616111311 AddIssueRequirementForeignKey: migrating ====================2911-- transaction_open?()2912 -> 0.0001s2913-- foreign_keys(:requirements)2914 -> 0.0031s2915-- execute("ALTER TABLE requirements\nADD CONSTRAINT fk_85044baef0\nFOREIGN KEY (issue_id)\nREFERENCES issues (id)\nON DELETE CASCADE\nNOT VALID;\n")2916 -> 0.0014s2917-- execute("ALTER TABLE requirements VALIDATE CONSTRAINT fk_85044baef0;")2918 -> 0.0017s2919== 20210616111311 AddIssueRequirementForeignKey: migrated (0.0108s) ===========2920== 20210616134905 AddTimestampToSchemaMigration: migrating ====================2921-- add_column(:schema_migrations, :finished_at, :timestamptz)2922 -> 0.0014s2923-- change_column_default(:schema_migrations, :finished_at, #<Proc:0x00007f8173011e08 /builds/gitlab-org/gitlab/db/migrate/20210616134905_add_timestamp_to_schema_migration.rb:9 (lambda)>)2924 -> 0.0024s2925== 20210616134905 AddTimestampToSchemaMigration: migrated (0.0041s) ===========2926== 20210616145254 AddPartialIndexForCiBuildsToken: migrating ==================2927-- transaction_open?()2928 -> 0.0001s2929-- index_exists?(:ci_builds, :token, {:unique=>true, :where=>"token IS NOT NULL", :name=>"index_ci_builds_on_token_partial", :algorithm=>:concurrently})2930 -> 0.0169s2931-- add_index(:ci_builds, :token, {:unique=>true, :where=>"token IS NOT NULL", :name=>"index_ci_builds_on_token_partial", :algorithm=>:concurrently})2932 -> 0.0021s2933== 20210616145254 AddPartialIndexForCiBuildsToken: migrated (0.0213s) =========2934== 20210616154808 RemoveCiBuildProtectedIndex: migrating ======================2935-- transaction_open?()2936 -> 0.0001s2937-- index_exists?(:ci_builds, :protected, {:name=>"index_ci_builds_on_protected", :algorithm=>:concurrently})2938 -> 0.0180s2939-- remove_index(:ci_builds, {:name=>"index_ci_builds_on_protected", :algorithm=>:concurrently, :column=>:protected})2940 -> 0.0192s2941== 20210616154808 RemoveCiBuildProtectedIndex: migrated (0.0396s) =============2942== 20210616185947 AddMailgunSettingsToApplicationSetting: migrating ===========2943-- add_column(:application_settings, :encrypted_mailgun_signing_key, :binary)2944 -> 0.0020s2945-- add_column(:application_settings, :encrypted_mailgun_signing_key_iv, :binary)2946 -> 0.0014s2947-- add_column(:application_settings, :mailgun_events_enabled, :boolean, {:default=>false, :null=>false})2948 -> 0.0022s2949== 20210616185947 AddMailgunSettingsToApplicationSetting: migrated (0.0060s) ==2950== 20210617022324 CreateIncidentManagementPendingAlertEscalations: migrating ==2951-- execute("\nCREATE TABLE incident_management_pending_alert_escalations (\n id bigserial NOT NULL,\n rule_id bigint,\n alert_id bigint NOT NULL,\n schedule_id bigint NOT NULL,\n process_at timestamp with time zone NOT NULL,\n created_at timestamp with time zone NOT NULL,\n updated_at timestamp with time zone NOT NULL,\n status smallint NOT NULL,\n PRIMARY KEY (id, process_at)\n) PARTITION BY RANGE (process_at);\n\nCREATE INDEX index_incident_management_pending_alert_escalations_on_alert_id\n ON incident_management_pending_alert_escalations USING btree (alert_id);\n\nCREATE INDEX index_incident_management_pending_alert_escalations_on_rule_id\n ON incident_management_pending_alert_escalations USING btree (rule_id);\n\nCREATE INDEX index_incident_management_pending_alert_escalations_on_schedule_id\n ON incident_management_pending_alert_escalations USING btree (schedule_id);\n\nALTER TABLE incident_management_pending_alert_escalations ADD CONSTRAINT fk_rails_fcbfd9338b\n FOREIGN KEY (schedule_id) REFERENCES incident_management_oncall_schedules(id) ON DELETE CASCADE;\n\nALTER TABLE incident_management_pending_alert_escalations ADD CONSTRAINT fk_rails_057c1e3d87\n FOREIGN KEY (rule_id) REFERENCES incident_management_escalation_rules(id) ON DELETE SET NULL;\n\nALTER TABLE incident_management_pending_alert_escalations ADD CONSTRAINT fk_rails_8d8de95da9\n FOREIGN KEY (alert_id) REFERENCES alert_management_alerts(id) ON DELETE CASCADE;\n")2952 -> 0.0032s2953== 20210617022324 CreateIncidentManagementPendingAlertEscalations: migrated (0.0074s) 2954== 20210617161348 CascadeDeleteFreezePeriods: migrating =======================2955-- transaction_open?()2956 -> 0.0000s2957-- foreign_keys(:ci_freeze_periods)2958 -> 0.0031s2959-- execute("ALTER TABLE ci_freeze_periods\nADD CONSTRAINT fk_2e02bbd1a6\nFOREIGN KEY (project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n")2960 -> 0.0020s2961-- execute("ALTER TABLE ci_freeze_periods VALIDATE CONSTRAINT fk_2e02bbd1a6;")2962 -> 0.0017s2963-- foreign_keys(:ci_freeze_periods)2964 -> 0.0028s2965-- remove_foreign_key(:ci_freeze_periods, :projects, {:column=>:project_id, :name=>"fk_rails_2e02bbd1a6"})2966 -> 0.0044s2967== 20210617161348 CascadeDeleteFreezePeriods: migrated (0.0189s) ==============2968== 20210617180131 MigrateUsagePingSidekiqQueue: migrating =====================2969== 20210617180131 MigrateUsagePingSidekiqQueue: migrated (0.0005s) ============2970== 20210621043337 RenameServicesToIntegrations: migrating =====================2971-- execute("LOCK services IN ACCESS EXCLUSIVE MODE")2972 -> 0.0007s2973-- execute("DROP TRIGGER IF EXISTS trigger_has_external_wiki_on_insert ON services")2974 -> 0.0007s2975-- execute("DROP TRIGGER IF EXISTS trigger_has_external_wiki_on_update ON services")2976 -> 0.0007s2977-- execute("DROP TRIGGER IF EXISTS trigger_has_external_wiki_on_delete ON services")2978 -> 0.0007s2979-- execute("DROP TRIGGER IF EXISTS trigger_has_external_issue_tracker_on_insert ON services")2980 -> 0.0006s2981-- execute("DROP TRIGGER IF EXISTS trigger_has_external_issue_tracker_on_update ON services")2982 -> 0.0006s2983-- execute("DROP TRIGGER IF EXISTS trigger_has_external_issue_tracker_on_delete ON services")2984 -> 0.0006s2985-- transaction()2986-- rename_table(:services, :integrations)2987 -> 0.0109s2988-- execute("CREATE VIEW services AS SELECT * FROM integrations")2989 -> 0.0019s2990 -> 0.0130s2991-- execute("CREATE TRIGGER trigger_has_external_wiki_on_insert\nAFTER INSERT ON integrations\nFOR EACH ROW\nWHEN (NEW.active = TRUE AND NEW.type = 'ExternalWikiService' AND NEW.project_id IS NOT NULL)\nEXECUTE FUNCTION set_has_external_wiki();\n")2992 -> 0.0009s2993-- execute("CREATE TRIGGER trigger_has_external_wiki_on_update\nAFTER UPDATE ON integrations\nFOR EACH ROW\nWHEN (NEW.type = 'ExternalWikiService' AND OLD.active != NEW.active AND NEW.project_id IS NOT NULL)\nEXECUTE FUNCTION set_has_external_wiki();\n")2994 -> 0.0008s2995-- execute("CREATE TRIGGER trigger_has_external_wiki_on_delete\nAFTER DELETE ON integrations\nFOR EACH ROW\nWHEN (OLD.type = 'ExternalWikiService' AND OLD.project_id IS NOT NULL)\nEXECUTE FUNCTION set_has_external_wiki();\n")2996 -> 0.0007s2997-- execute("CREATE OR REPLACE FUNCTION set_has_external_issue_tracker()\nRETURNS TRIGGER AS\n$$\nBEGIN\nUPDATE projects SET has_external_issue_tracker = (\n EXISTS\n (\n SELECT 1\n FROM integrations\n WHERE project_id = COALESCE(NEW.project_id, OLD.project_id)\n AND active = TRUE\n AND category = 'issue_tracker'\n )\n)\nWHERE projects.id = COALESCE(NEW.project_id, OLD.project_id);\nRETURN NULL;\n\nEND\n$$ LANGUAGE PLPGSQL\n")2998 -> 0.0007s2999-- execute("CREATE TRIGGER trigger_has_external_issue_tracker_on_insert\nAFTER INSERT ON integrations\nFOR EACH ROW\nWHEN (NEW.category = 'issue_tracker' AND NEW.active = TRUE AND NEW.project_id IS NOT NULL)\nEXECUTE FUNCTION set_has_external_issue_tracker();\n")3000 -> 0.0007s3001-- execute("CREATE TRIGGER trigger_has_external_issue_tracker_on_update\nAFTER UPDATE ON integrations\nFOR EACH ROW\nWHEN (NEW.category = 'issue_tracker' AND OLD.active != NEW.active AND NEW.project_id IS NOT NULL)\nEXECUTE FUNCTION set_has_external_issue_tracker();\n")3002 -> 0.0007s3003-- execute("CREATE TRIGGER trigger_has_external_issue_tracker_on_delete\nAFTER DELETE ON integrations\nFOR EACH ROW\nWHEN (OLD.category = 'issue_tracker' AND OLD.active = TRUE AND OLD.project_id IS NOT NULL)\nEXECUTE FUNCTION set_has_external_issue_tracker();\n")3004 -> 0.0008s3005== 20210621043337 RenameServicesToIntegrations: migrated (0.0247s) ============3006== 20210621044000 RenameServicesIndexesToIntegrations: migrating ==============3007-- execute("ALTER INDEX IF EXISTS \"index_services_on_project_and_type_where_inherit_null\" RENAME TO \"index_integrations_on_project_and_type_where_inherit_null\"\n")3008 -> 0.0012s3009-- execute("ALTER INDEX IF EXISTS \"index_services_on_project_id_and_type_unique\" RENAME TO \"index_integrations_on_project_id_and_type_unique\"\n")3010 -> 0.0006s3011-- execute("ALTER INDEX IF EXISTS \"index_services_on_template\" RENAME TO \"index_integrations_on_template\"\n")3012 -> 0.0006s3013-- execute("ALTER INDEX IF EXISTS \"index_services_on_type\" RENAME TO \"index_integrations_on_type\"\n")3014 -> 0.0006s3015-- execute("ALTER INDEX IF EXISTS \"index_services_on_type_and_instance_partial\" RENAME TO \"index_integrations_on_type_and_instance_partial\"\n")3016 -> 0.0006s3017-- execute("ALTER INDEX IF EXISTS \"index_services_on_type_and_template_partial\" RENAME TO \"index_integrations_on_type_and_template_partial\"\n")3018 -> 0.0006s3019-- execute("ALTER INDEX IF EXISTS \"index_services_on_type_id_when_active_and_project_id_not_null\" RENAME TO \"index_integrations_on_type_id_when_active_and_project_id_not_null\"\n")3020 -> 0.0006s3021-- execute("ALTER INDEX IF EXISTS \"index_services_on_unique_group_id_and_type\" RENAME TO \"index_integrations_on_unique_group_id_and_type\"\n")3022 -> 0.0006s3023== 20210621044000 RenameServicesIndexesToIntegrations: migrated (0.0063s) =====3024== 20210621084632 AddSummaryToTimelogs: migrating =============================3025-- add_column(:timelogs, :summary, :text)3026 -> 0.0019s3027== 20210621084632 AddSummaryToTimelogs: migrated (0.0020s) ====================3028== 20210621090030 AddTextLimitToTimelogsSummary: migrating ====================3029-- transaction_open?()3030 -> 0.0000s3031-- current_schema()3032 -> 0.0005s3033-- execute("ALTER TABLE timelogs\nADD CONSTRAINT check_271d321699\nCHECK ( char_length(summary) <= 255 )\nNOT VALID;\n")3034 -> 0.0009s3035-- current_schema()3036 -> 0.0005s3037-- execute("ALTER TABLE timelogs VALIDATE CONSTRAINT check_271d321699;")3038 -> 0.0007s3039== 20210621090030 AddTextLimitToTimelogsSummary: migrated (0.0091s) ===========3040== 20210621091830 AddDevopsAdoptionSnapshotDependencyScanning: migrating ======3041-- add_column(:analytics_devops_adoption_snapshots, :dependency_scanning_enabled_count, :integer)3042 -> 0.0013s3043== 20210621091830 AddDevopsAdoptionSnapshotDependencyScanning: migrated (0.0014s) 3044== 20210621111747 AddCiArtifactsDevopsAdoptionIndex: migrating ================3045-- transaction_open?()3046 -> 0.0000s3047-- index_exists?(:ci_job_artifacts, [:file_type, :project_id, :created_at], {:name=>"index_ci_job_artifacts_on_file_type_for_devops_adoption", :where=>"file_type IN (5,6,8,23)", :algorithm=>:concurrently})3048 -> 0.0058s3049-- add_index(:ci_job_artifacts, [:file_type, :project_id, :created_at], {:name=>"index_ci_job_artifacts_on_file_type_for_devops_adoption", :where=>"file_type IN (5,6,8,23)", :algorithm=>:concurrently})3050 -> 0.0016s3051== 20210621111747 AddCiArtifactsDevopsAdoptionIndex: migrated (0.0092s) =======3052== 20210621155328 ReplaceProjectAuthorizationsProjectIdIndex: migrating =======3053-- transaction_open?()3054 -> 0.0000s3055-- index_exists?(:project_authorizations, [:project_id, :user_id], {:name=>"index_project_authorizations_on_project_id_user_id", :algorithm=>:concurrently})3056 -> 0.0018s3057-- add_index(:project_authorizations, [:project_id, :user_id], {:name=>"index_project_authorizations_on_project_id_user_id", :algorithm=>:concurrently})3058 -> 0.0015s3059-- transaction_open?()3060 -> 0.0000s3061-- indexes(:project_authorizations)3062 -> 0.0022s3063-- remove_index(:project_authorizations, {:algorithm=>:concurrently, :name=>"index_project_authorizations_on_project_id"})3064 -> 0.0012s3065== 20210621155328 ReplaceProjectAuthorizationsProjectIdIndex: migrated (0.0099s) 3066== 20210621164210 DropRemoveOnCloseFromLabels: migrating ======================3067-- column_exists?(:labels, :remove_on_close)3068 -> 0.0026s3069== 20210621164210 DropRemoveOnCloseFromLabels: migrated (0.0027s) =============3070== 20210621223000 StealBackgroundJobsThatReferenceServices: migrating =========3071== 20210621223000 StealBackgroundJobsThatReferenceServices: migrated (0.0047s) 3072== 20210621223242 FinalizeRenameServicesToIntegrations: migrating =============3073-- transaction()3074-- execute("DROP VIEW IF EXISTS services")3075 -> 0.0014s3076 -> 0.0015s3077== 20210621223242 FinalizeRenameServicesToIntegrations: migrated (0.0016s) ====3078== 20210622041846 FinalizePushEventPayloadsBigintConversion: migrating ========3079-- transaction_open?()3080 -> 0.0000s3081-- index_exists?("push_event_payloads", :event_id_convert_to_bigint, {:unique=>true, :name=>"index_push_event_payloads_on_event_id_convert_to_bigint", :algorithm=>:concurrently})3082 -> 0.0013s3083-- add_index("push_event_payloads", :event_id_convert_to_bigint, {:unique=>true, :name=>"index_push_event_payloads_on_event_id_convert_to_bigint", :algorithm=>:concurrently})3084 -> 0.0014s3085-- transaction_open?()3086 -> 0.0000s3087-- foreign_keys("push_event_payloads")3088 -> 0.0026s3089-- execute("ALTER TABLE push_event_payloads\nADD CONSTRAINT fk_a5e47ac4c5\nFOREIGN KEY (event_id_convert_to_bigint)\nREFERENCES events (id)\nON DELETE CASCADE\nNOT VALID;\n")3090 -> 0.0011s3091-- execute("ALTER TABLE push_event_payloads VALIDATE CONSTRAINT fk_a5e47ac4c5;")3092 -> 0.0011s3093-- quote_table_name("push_event_payloads")3094 -> 0.0000s3095-- quote_column_name(:event_id)3096 -> 0.0000s3097-- quote_column_name("event_id_tmp")3098 -> 0.0000s3099-- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id\" TO \"event_id_tmp\"")3100 -> 0.0006s3101-- quote_table_name("push_event_payloads")3102 -> 0.0000s3103-- quote_column_name(:event_id_convert_to_bigint)3104 -> 0.0000s3105-- quote_column_name(:event_id)3106 -> 0.0000s3107-- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id_convert_to_bigint\" TO \"event_id\"")3108 -> 0.0006s3109-- quote_table_name("push_event_payloads")3110 -> 0.0000s3111-- quote_column_name("event_id_tmp")3112 -> 0.0000s3113-- quote_column_name(:event_id_convert_to_bigint)3114 -> 0.0000s3115-- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id_tmp\" TO \"event_id_convert_to_bigint\"")3116 -> 0.0008s3117-- quote_table_name("trigger_07c94931164e")3118 -> 0.0002s3119-- execute("ALTER FUNCTION \"trigger_07c94931164e\" RESET ALL")3120 -> 0.0007s3121-- change_column_default("push_event_payloads", :event_id, nil)3122 -> 0.0026s3123-- change_column_default("push_event_payloads", :event_id_convert_to_bigint, 0)3124 -> 0.0024s3125-- execute("ALTER TABLE push_event_payloads DROP CONSTRAINT push_event_payloads_pkey")3126 -> 0.0008s3127-- rename_index("push_event_payloads", "index_push_event_payloads_on_event_id_convert_to_bigint", "push_event_payloads_pkey")3128 -> 0.0006s3129-- execute("ALTER TABLE push_event_payloads ADD CONSTRAINT push_event_payloads_pkey PRIMARY KEY USING INDEX push_event_payloads_pkey")3130 -> 0.0007s3131-- remove_foreign_key("push_event_payloads", {:name=>"fk_36c74129da"})3132 -> 0.0038s3133-- quote_table_name("push_event_payloads")3134 -> 0.0000s3135-- quote_column_name("fk_a5e47ac4c5")3136 -> 0.0000s3137-- quote_column_name("fk_36c74129da")3138 -> 0.0000s3139-- execute("ALTER TABLE \"push_event_payloads\"\nRENAME CONSTRAINT \"fk_a5e47ac4c5\" TO \"fk_36c74129da\"\n")3140 -> 0.0006s3141== 20210622041846 FinalizePushEventPayloadsBigintConversion: migrated (0.0358s) 3142== 20210622045705 FinalizeEventsBigintConversion: migrating ===================3143-- transaction_open?()3144 -> 0.0000s3145-- index_exists?("events", :id_convert_to_bigint, {:unique=>true, :name=>"index_events_on_id_convert_to_bigint", :algorithm=>:concurrently})3146 -> 0.0070s3147-- add_index("events", :id_convert_to_bigint, {:unique=>true, :name=>"index_events_on_id_convert_to_bigint", :algorithm=>:concurrently})3148 -> 0.0015s3149-- transaction_open?()3150 -> 0.0000s3151-- index_exists?("events", [:project_id, :id_convert_to_bigint], {:name=>"index_events_on_project_id_and_id_convert_to_bigint", :algorithm=>:concurrently})3152 -> 0.0071s3153-- add_index("events", [:project_id, :id_convert_to_bigint], {:name=>"index_events_on_project_id_and_id_convert_to_bigint", :algorithm=>:concurrently})3154 -> 0.0015s3155-- transaction_open?()3156 -> 0.0000s3157-- index_exists?("events", [:project_id, :id_convert_to_bigint], {:order=>{:id_convert_to_bigint=>:desc}, :where=>"action = 7", :name=>"index_events_on_project_id_and_id_bigint_desc_on_merged_action", :algorithm=>:concurrently})3158 -> 0.0076s3159-- add_index("events", [:project_id, :id_convert_to_bigint], {:order=>{:id_convert_to_bigint=>:desc}, :where=>"action = 7", :name=>"index_events_on_project_id_and_id_bigint_desc_on_merged_action", :algorithm=>:concurrently})3160 -> 0.0016s3161-- transaction_open?()3162 -> 0.0000s3163-- foreign_keys(:push_event_payloads)3164 -> 0.0026s3165-- execute("LOCK TABLE events, push_event_payloads IN SHARE ROW EXCLUSIVE MODE")3166 -> 0.0006s3167-- execute("ALTER TABLE push_event_payloads\nADD CONSTRAINT fk_36c74129da_tmp\nFOREIGN KEY (event_id)\nREFERENCES events (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")3168 -> 0.0012s3169-- execute("ALTER TABLE push_event_payloads VALIDATE CONSTRAINT fk_36c74129da_tmp;")3170 -> 0.0012s3171-- execute("LOCK TABLE events, push_event_payloads IN ACCESS EXCLUSIVE MODE")3172 -> 0.0006s3173-- quote_table_name("events")3174 -> 0.0000s3175-- quote_column_name(:id)3176 -> 0.0001s3177-- quote_column_name("id_tmp")3178 -> 0.0000s3179-- execute("ALTER TABLE \"events\" RENAME COLUMN \"id\" TO \"id_tmp\"")3180 -> 0.0007s3181-- quote_table_name("events")3182 -> 0.0000s3183-- quote_column_name(:id_convert_to_bigint)3184 -> 0.0000s3185-- quote_column_name(:id)3186 -> 0.0000s3187-- execute("ALTER TABLE \"events\" RENAME COLUMN \"id_convert_to_bigint\" TO \"id\"")3188 -> 0.0007s3189-- quote_table_name("events")3190 -> 0.0000s3191-- quote_column_name("id_tmp")3192 -> 0.0000s3193-- quote_column_name(:id_convert_to_bigint)3194 -> 0.0000s3195-- execute("ALTER TABLE \"events\" RENAME COLUMN \"id_tmp\" TO \"id_convert_to_bigint\"")3196 -> 0.0007s3197-- quote_table_name("trigger_69523443cc10")3198 -> 0.0000s3199-- execute("ALTER FUNCTION \"trigger_69523443cc10\" RESET ALL")3200 -> 0.0006s3201-- execute("ALTER SEQUENCE events_id_seq OWNED BY events.id")3202 -> 0.0007s3203-- change_column_default("events", :id, #<Proc:0x00007f8171ad9ae0 /builds/gitlab-org/gitlab/db/post_migrate/20210622045705_finalize_events_bigint_conversion.rb:68 (lambda)>)3204 -> 0.0038s3205-- change_column_default("events", :id_convert_to_bigint, 0)3206 -> 0.0033s3207-- execute("ALTER TABLE events DROP CONSTRAINT events_pkey CASCADE")3208 -> 0.0013s3209-- rename_index("events", "index_events_on_id_convert_to_bigint", "events_pkey")3210 -> 0.0007s3211-- execute("ALTER TABLE events ADD CONSTRAINT events_pkey PRIMARY KEY USING INDEX events_pkey")3212 -> 0.0008s3213-- execute("DROP INDEX index_events_on_project_id_and_id")3214 -> 0.0007s3215-- rename_index("events", "index_events_on_project_id_and_id_convert_to_bigint", "index_events_on_project_id_and_id")3216 -> 0.0007s3217-- execute("DROP INDEX index_events_on_project_id_and_id_desc_on_merged_action")3218 -> 0.0007s3219-- rename_index("events", "index_events_on_project_id_and_id_bigint_desc_on_merged_action", "index_events_on_project_id_and_id_desc_on_merged_action")3220 -> 0.0007s3221-- quote_table_name(:push_event_payloads)3222 -> 0.0000s3223-- quote_column_name("fk_36c74129da_tmp")3224 -> 0.0000s3225-- quote_column_name("fk_36c74129da")3226 -> 0.0000s3227-- execute("ALTER TABLE \"push_event_payloads\"\nRENAME CONSTRAINT \"fk_36c74129da_tmp\" TO \"fk_36c74129da\"\n")3228 -> 0.0007s3229== 20210622045705 FinalizeEventsBigintConversion: migrated (0.0673s) ==========3230== 20210622135221 AddForeignKeyForEnvironmentIdToEnvironments: migrating ======3231-- transaction_open?()3232 -> 0.0000s3233-- foreign_keys(:deployments)3234 -> 0.0032s3235-- execute("ALTER TABLE deployments\nADD CONSTRAINT fk_009fd21147\nFOREIGN KEY (environment_id)\nREFERENCES environments (id)\nON DELETE CASCADE\nNOT VALID;\n")3236 -> 0.0013s3237== 20210622135221 AddForeignKeyForEnvironmentIdToEnvironments: migrated (0.0083s) 3238== 20210622141148 ScheduleDeleteOrphanedDeployments: migrating ================3239== 20210622141148 ScheduleDeleteOrphanedDeployments: migrated (0.0000s) =======3240== 20210623074226 AddUsagePingFeaturesEnabledToApplicationSettings: migrating =3241-- add_column(:application_settings, :usage_ping_features_enabled, :boolean, {:default=>false, :null=>false})3242 -> 0.0029s3243== 20210623074226 AddUsagePingFeaturesEnabledToApplicationSettings: migrated (0.0031s) 3244== 20210623123722 AddPresentOnDefaultBranchToVulnerabilities: migrating =======3245-- add_column(:vulnerabilities, :present_on_default_branch, :boolean, {:default=>true, :null=>false})3246 -> 0.0016s3247== 20210623123722 AddPresentOnDefaultBranchToVulnerabilities: migrated (0.0053s) 3248== 20210623133635 CreateErrorTrackingErrors: migrating ========================3249-- create_table(:error_tracking_errors, {})3250-- quote_column_name(:name)3251 -> 0.0000s3252-- quote_column_name(:description)3253 -> 0.0000s3254-- quote_column_name(:actor)3255 -> 0.0000s3256-- quote_column_name(:platform)3257 -> 0.0000s3258 -> 0.0061s3259-- quote_table_name("check_18a758e537")3260 -> 0.0000s3261-- quote_table_name("check_c739788b12")3262 -> 0.0000s3263-- quote_table_name("check_b5cb4d3888")3264 -> 0.0000s3265-- quote_table_name("check_fe99886883")3266 -> 0.0000s3267-- quote_table_name(:error_tracking_errors)3268 -> 0.0000s3269-- execute("ALTER TABLE \"error_tracking_errors\"\nADD CONSTRAINT \"check_18a758e537\" CHECK (char_length(\"name\") <= 255),\nADD CONSTRAINT \"check_c739788b12\" CHECK (char_length(\"description\") <= 1024),\nADD CONSTRAINT \"check_b5cb4d3888\" CHECK (char_length(\"actor\") <= 255),\nADD CONSTRAINT \"check_fe99886883\" CHECK (char_length(\"platform\") <= 255)\n")3270 -> 0.0013s3271== 20210623133635 CreateErrorTrackingErrors: migrated (0.0115s) ===============3272== 20210623163342 AddIndexToComplianceManagementFrameworksPipelineConfiguration: migrating 3273-- transaction_open?()3274 -> 0.0001s3275-- index_exists?(:compliance_management_frameworks, :id, {:name=>"index_compliance_frameworks_id_where_frameworks_not_null", :where=>"pipeline_configuration_full_path IS NOT NULL", :algorithm=>:concurrently})3276 -> 0.0024s3277-- add_index(:compliance_management_frameworks, :id, {:name=>"index_compliance_frameworks_id_where_frameworks_not_null", :where=>"pipeline_configuration_full_path IS NOT NULL", :algorithm=>:concurrently})3278 -> 0.0016s3279== 20210623163342 AddIndexToComplianceManagementFrameworksPipelineConfiguration: migrated (0.0060s) 3280== 20210624112821 AddDevopsAdoptionCoverageFuzzing: migrating =================3281-- add_column(:analytics_devops_adoption_snapshots, :coverage_fuzzing_enabled_count, :integer)3282 -> 0.0014s3283== 20210624112821 AddDevopsAdoptionCoverageFuzzing: migrated (0.0015s) ========3284== 20210624180613 AddLastSyncedAtToLicenses: migrating ========================3285-- add_column(:licenses, :last_synced_at, :datetime_with_timezone)3286 -> 0.0014s3287== 20210624180613 AddLastSyncedAtToLicenses: migrated (0.0015s) ===============3288== 20210625094554 CreateErrorTrackingErrorEvents: migrating ===================3289-- create_table(:error_tracking_error_events, {})3290-- quote_column_name(:description)3291 -> 0.0000s3292-- quote_column_name(:environment)3293 -> 0.0000s3294-- quote_column_name(:level)3295 -> 0.0000s3296 -> 0.0057s3297-- quote_table_name("check_92ecc3077b")3298 -> 0.0000s3299-- quote_table_name("check_f4b52474ad")3300 -> 0.0000s3301-- quote_table_name("check_c67d5b8007")3302 -> 0.0000s3303-- quote_table_name(:error_tracking_error_events)3304 -> 0.0000s3305-- execute("ALTER TABLE \"error_tracking_error_events\"\nADD CONSTRAINT \"check_92ecc3077b\" CHECK (char_length(\"description\") <= 255),\nADD CONSTRAINT \"check_f4b52474ad\" CHECK (char_length(\"environment\") <= 255),\nADD CONSTRAINT \"check_c67d5b8007\" CHECK (char_length(\"level\") <= 255)\n")3306 -> 0.0012s3307== 20210625094554 CreateErrorTrackingErrorEvents: migrated (0.0108s) ==========3308== 20210627204936 AddPlanLimitsMaxSizeClusterImageScanningColumn: migrating ===3309-- add_column(:plan_limits, :ci_max_artifact_size_cluster_image_scanning, :integer, {:null=>false, :default=>0})3310 -> 0.0022s3311== 20210627204936 AddPlanLimitsMaxSizeClusterImageScanningColumn: migrated (0.0024s) 3312== 20210628124505 ResetJobTokenScopeEnabled: migrating ========================3313-- remove_column(:project_ci_cd_settings, :job_token_scope_enabled)3314 -> 0.0010s3315-- add_column(:project_ci_cd_settings, :job_token_scope_enabled, :boolean, {:default=>false, :null=>false})3316 -> 0.0016s3317== 20210628124505 ResetJobTokenScopeEnabled: migrated (0.0062s) ===============3318== 20210628154900 CreateDetachedPartitionsTable: migrating ====================3319-- create_table(:detached_partitions, {})3320-- quote_column_name(:table_name)3321 -> 0.0000s3322 -> 0.0030s3323-- quote_table_name("check_aecee24ba3")3324 -> 0.0000s3325-- quote_table_name(:detached_partitions)3326 -> 0.0000s3327-- execute("ALTER TABLE \"detached_partitions\"\nADD CONSTRAINT \"check_aecee24ba3\" CHECK (char_length(\"table_name\") <= 63)\n")3328 -> 0.0009s3329== 20210628154900 CreateDetachedPartitionsTable: migrated (0.0076s) ===========3330== 20210629031900 AssociateExistingDastBuildsWithVariables: migrating =========3331== 20210629031900 AssociateExistingDastBuildsWithVariables: migrated (0.0036s) 3332== 20210629101712 RemoveDeprecatedModsecurityColumns: migrating ===============3333-- column_exists?(:clusters_applications_ingress, :modsecurity_enabled)3334 -> 0.0023s3335-- remove_column(:clusters_applications_ingress, :modsecurity_enabled)3336 -> 0.0013s3337-- column_exists?(:clusters_applications_ingress, :modsecurity_mode)3338 -> 0.0021s3339-- remove_column(:clusters_applications_ingress, :modsecurity_mode)3340 -> 0.0010s3341== 20210629101712 RemoveDeprecatedModsecurityColumns: migrated (0.0071s) ======3342== 20210629104933 DropIndexOnCiBuildsForToken: migrating ======================3343-- transaction_open?()3344 -> 0.0000s3345-- indexes(:ci_builds)3346 -> 0.0167s3347-- remove_index(:ci_builds, {:algorithm=>:concurrently, :name=>:index_ci_builds_on_token})3348 -> 0.0014s3349== 20210629104933 DropIndexOnCiBuildsForToken: migrated (0.0201s) =============3350== 20210629153519 AddIndexToBulkImportEntitiesOnBulkImportIdAndStatus: migrating 3351-- transaction_open?()3352 -> 0.0001s3353-- index_exists?(:bulk_import_entities, [:bulk_import_id, :status], {:name=>"index_bulk_import_entities_on_bulk_import_id_and_status", :algorithm=>:concurrently})3354 -> 0.0034s3355-- add_index(:bulk_import_entities, [:bulk_import_id, :status], {:name=>"index_bulk_import_entities_on_bulk_import_id_and_status", :algorithm=>:concurrently})3356 -> 0.0015s3357-- transaction_open?()3358 -> 0.0000s3359-- indexes(:bulk_import_entities)3360 -> 0.0037s3361-- remove_index(:bulk_import_entities, {:algorithm=>:concurrently, :name=>"index_bulk_import_entities_on_bulk_import_id"})3362 -> 0.0011s3363== 20210629153519 AddIndexToBulkImportEntitiesOnBulkImportIdAndStatus: migrated (0.0136s) 3364== 20210630025020 MigratePushEventPayloadsEventIdBackToIntegerForGitlabCom: migrating 3365-- transaction_open?()3366 -> 0.0001s3367-- index_exists?("push_event_payloads", :event_id_convert_to_bigint, {:unique=>true, :name=>"index_push_event_payloads_on_event_id_convert_to_bigint", :algorithm=>:concurrently})3368 -> 0.0012s3369-- add_index("push_event_payloads", :event_id_convert_to_bigint, {:unique=>true, :name=>"index_push_event_payloads_on_event_id_convert_to_bigint", :algorithm=>:concurrently})3370 -> 0.0015s3371-- transaction_open?()3372 -> 0.0001s3373-- foreign_keys("push_event_payloads")3374 -> 0.0029s3375-- execute("ALTER TABLE push_event_payloads\nADD CONSTRAINT fk_a5e47ac4c5\nFOREIGN KEY (event_id_convert_to_bigint)\nREFERENCES events (id)\nON DELETE CASCADE\nNOT VALID;\n")3376 -> 0.0012s3377-- execute("ALTER TABLE push_event_payloads VALIDATE CONSTRAINT fk_a5e47ac4c5;")3378 -> 0.0013s3379-- quote_table_name("push_event_payloads")3380 -> 0.0001s3381-- quote_column_name(:event_id)3382 -> 0.0001s3383-- quote_column_name("event_id_tmp")3384 -> 0.0001s3385-- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id\" TO \"event_id_tmp\"")3386 -> 0.0007s3387-- quote_table_name("push_event_payloads")3388 -> 0.0001s3389-- quote_column_name(:event_id_convert_to_bigint)3390 -> 0.0001s3391-- quote_column_name(:event_id)3392 -> 0.0001s3393-- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id_convert_to_bigint\" TO \"event_id\"")3394 -> 0.0006s3395-- quote_table_name("push_event_payloads")3396 -> 0.0001s3397-- quote_column_name("event_id_tmp")3398 -> 0.0001s3399-- quote_column_name(:event_id_convert_to_bigint)3400 -> 0.0001s3401-- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id_tmp\" TO \"event_id_convert_to_bigint\"")3402 -> 0.0007s3403-- quote_table_name("trigger_07c94931164e")3404 -> 0.0001s3405-- execute("ALTER FUNCTION \"trigger_07c94931164e\" RESET ALL")3406 -> 0.0006s3407-- change_column_default("push_event_payloads", :event_id, nil)3408 -> 0.0026s3409-- change_column_default("push_event_payloads", :event_id_convert_to_bigint, 0)3410 -> 0.0026s3411-- execute("ALTER TABLE push_event_payloads DROP CONSTRAINT push_event_payloads_pkey")3412 -> 0.0008s3413-- rename_index("push_event_payloads", "index_push_event_payloads_on_event_id_convert_to_bigint", "push_event_payloads_pkey")3414 -> 0.0008s3415-- execute("ALTER TABLE push_event_payloads ADD CONSTRAINT push_event_payloads_pkey PRIMARY KEY USING INDEX push_event_payloads_pkey")3416 -> 0.0008s3417-- remove_foreign_key("push_event_payloads", {:name=>"fk_36c74129da"})3418 -> 0.0038s3419-- quote_table_name("push_event_payloads")3420 -> 0.0001s3421-- quote_column_name("fk_a5e47ac4c5")3422 -> 0.0001s3423-- quote_column_name("fk_36c74129da")3424 -> 0.0001s3425-- execute("ALTER TABLE \"push_event_payloads\"\nRENAME CONSTRAINT \"fk_a5e47ac4c5\" TO \"fk_36c74129da\"\n")3426 -> 0.0008s3427== 20210630025020 MigratePushEventPayloadsEventIdBackToIntegerForGitlabCom: migrated (0.0349s) 3428== 20210630144339 AddInviteEmailSuccessToMembers: migrating ===================3429== 20210630144339 AddInviteEmailSuccessToMembers: migrated (0.0000s) ==========3430== 20210630222522 AddCustomersDotJwtSigningKeyToApplicationSettings: migrating 3431-- add_column(:application_settings, :encrypted_customers_dot_jwt_signing_key, :binary)3432 -> 0.0021s3433-- add_column(:application_settings, :encrypted_customers_dot_jwt_signing_key_iv, :binary)3434 -> 0.0010s3435== 20210630222522 AddCustomersDotJwtSigningKeyToApplicationSettings: migrated (0.0033s) 3436== 20210630224625 GenerateCustomersDotJwtSigningKey: migrating ================3437== 20210630224625 GenerateCustomersDotJwtSigningKey: migrated (0.1106s) =======3438== 20210701033622 FinalizeCiBuildsNeedsBigintConversion: migrating ============3439-- transaction_open?()3440 -> 0.0000s3441-- index_exists?("ci_build_needs", [:build_id_convert_to_bigint, :name], {:unique=>true, :name=>"index_ci_build_needs_on_build_id_convert_to_bigint_and_name", :algorithm=>:concurrently})3442 -> 0.0023s3443-- add_index("ci_build_needs", [:build_id_convert_to_bigint, :name], {:unique=>true, :name=>"index_ci_build_needs_on_build_id_convert_to_bigint_and_name", :algorithm=>:concurrently})3444 -> 0.0015s3445-- transaction_open?()3446 -> 0.0001s3447-- foreign_keys("ci_build_needs")3448 -> 0.0035s3449-- execute("LOCK TABLE ci_builds, ci_build_needs IN SHARE ROW EXCLUSIVE MODE")3450 -> 0.0006s3451-- execute("ALTER TABLE ci_build_needs\nADD CONSTRAINT fk_rails_3cf221d4ed_tmp\nFOREIGN KEY (build_id_convert_to_bigint)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n")3452 -> 0.0013s3453-- execute("ALTER TABLE ci_build_needs VALIDATE CONSTRAINT fk_rails_3cf221d4ed_tmp;")3454 -> 0.0018s3455-- execute("LOCK TABLE ci_builds, ci_build_needs IN ACCESS EXCLUSIVE MODE")3456 -> 0.0006s3457-- quote_table_name("ci_build_needs")3458 -> 0.0001s3459-- quote_column_name(:build_id)3460 -> 0.0001s3461-- quote_column_name("build_id_tmp")3462 -> 0.0001s3463-- execute("ALTER TABLE \"ci_build_needs\" RENAME COLUMN \"build_id\" TO \"build_id_tmp\"")3464 -> 0.0007s3465-- quote_table_name("ci_build_needs")3466 -> 0.0000s3467-- quote_column_name(:build_id_convert_to_bigint)3468 -> 0.0000s3469-- quote_column_name(:build_id)3470 -> 0.0000s3471-- execute("ALTER TABLE \"ci_build_needs\" RENAME COLUMN \"build_id_convert_to_bigint\" TO \"build_id\"")3472 -> 0.0006s3473-- quote_table_name("ci_build_needs")3474 -> 0.0000s3475-- quote_column_name("build_id_tmp")3476 -> 0.0000s3477-- quote_column_name(:build_id_convert_to_bigint)3478 -> 0.0000s3479-- execute("ALTER TABLE \"ci_build_needs\" RENAME COLUMN \"build_id_tmp\" TO \"build_id_convert_to_bigint\"")3480 -> 0.0006s3481-- quote_table_name("trigger_21e7a2602957")3482 -> 0.0000s3483-- execute("ALTER FUNCTION \"trigger_21e7a2602957\" RESET ALL")3484 -> 0.0006s3485-- change_column_default("ci_build_needs", :build_id, nil)3486 -> 0.0025s3487-- change_column_default("ci_build_needs", :build_id_convert_to_bigint, 0)3488 -> 0.0023s3489-- execute("DROP INDEX index_ci_build_needs_on_build_id_and_name")3490 -> 0.0007s3491-- rename_index("ci_build_needs", "index_ci_build_needs_on_build_id_convert_to_bigint_and_name", "index_ci_build_needs_on_build_id_and_name")3492 -> 0.0006s3493-- remove_foreign_key("ci_build_needs", {:name=>"fk_rails_3cf221d4ed"})3494 -> 0.0049s3495-- quote_table_name("ci_build_needs")3496 -> 0.0000s3497-- quote_column_name("fk_rails_3cf221d4ed_tmp")3498 -> 0.0001s3499-- quote_column_name("fk_rails_3cf221d4ed")3500 -> 0.0000s3501-- execute("ALTER TABLE \"ci_build_needs\"\nRENAME CONSTRAINT \"fk_rails_3cf221d4ed_tmp\" TO \"fk_rails_3cf221d4ed\"\n")3502 -> 0.0007s3503== 20210701033622 FinalizeCiBuildsNeedsBigintConversion: migrated (0.0401s) ===3504== 20210701111627 AddUpvotesCountToIssues: migrating ==========================3505-- add_column(:issues, :upvotes_count, :integer, {:default=>0, :null=>false})3506 -> 0.0019s3507== 20210701111627 AddUpvotesCountToIssues: migrated (0.0050s) =================3508== 20210701111909 BackfillIssuesUpvotesCount: migrating =======================3509-- Scheduled 0 BackfillUpvotesCountOnIssues jobs with a maximum of 5000 records per batch and an interval of 120 seconds.3510The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:14 UTC."3511== 20210701111909 BackfillIssuesUpvotesCount: migrated (0.0041s) ==============3512== 20210701141346 FinalizeCiBuildsStageIdBigintConversion: migrating ==========3513-- transaction_open?()3514 -> 0.0000s3515-- index_exists?("ci_builds", :stage_id_convert_to_bigint, {:name=>:index_ci_builds_on_converted_stage_id, :algorithm=>:concurrently})3516 -> 0.0154s3517-- add_index("ci_builds", :stage_id_convert_to_bigint, {:name=>:index_ci_builds_on_converted_stage_id, :algorithm=>:concurrently})3518 -> 0.0016s3519-- transaction_open?()3520 -> 0.0000s3521-- foreign_keys("ci_builds")3522 -> 0.0036s3523-- execute("LOCK TABLE ci_stages, ci_builds IN SHARE ROW EXCLUSIVE MODE")3524 -> 0.0006s3525-- execute("ALTER TABLE ci_builds\nADD CONSTRAINT fk_c050b39299\nFOREIGN KEY (stage_id_convert_to_bigint)\nREFERENCES ci_stages (id)\nON DELETE CASCADE\nNOT VALID;\n")3526 -> 0.0015s3527-- execute("ALTER TABLE ci_builds VALIDATE CONSTRAINT fk_c050b39299;")3528 -> 0.0017s3529-- quote_table_name("ci_builds")3530 -> 0.0000s3531-- quote_table_name(:ci_stages)3532 -> 0.0000s3533-- execute("LOCK TABLE \"ci_stages\", \"ci_builds\" IN ACCESS EXCLUSIVE MODE")3534 -> 0.0005s3535-- quote_column_name(:stage_id)3536 -> 0.0000s3537-- quote_column_name("stage_id_tmp")3538 -> 0.0000s3539-- execute("ALTER TABLE \"ci_builds\" RENAME COLUMN \"stage_id\" TO \"stage_id_tmp\"")3540 -> 0.0009s3541-- quote_column_name(:stage_id_convert_to_bigint)3542 -> 0.0000s3543-- quote_column_name(:stage_id)3544 -> 0.0000s3545-- execute("ALTER TABLE \"ci_builds\" RENAME COLUMN \"stage_id_convert_to_bigint\" TO \"stage_id\"")3546 -> 0.0007s3547-- quote_column_name("stage_id_tmp")3548 -> 0.0000s3549-- quote_column_name(:stage_id_convert_to_bigint)3550 -> 0.0000s3551-- execute("ALTER TABLE \"ci_builds\" RENAME COLUMN \"stage_id_tmp\" TO \"stage_id_convert_to_bigint\"")3552 -> 0.0007s3553-- quote_table_name("trigger_3f6129be01d2")3554 -> 0.0000s3555-- execute("ALTER FUNCTION \"trigger_3f6129be01d2\" RESET ALL")3556 -> 0.0006s3557-- execute("DROP INDEX index_ci_builds_on_stage_id")3558 -> 0.0008s3559-- rename_index("ci_builds", :index_ci_builds_on_converted_stage_id, :index_ci_builds_on_stage_id)3560 -> 0.0006s3561-- remove_foreign_key("ci_builds", {:name=>"fk_3a9eaa254d"})3562 -> 0.0051s3563-- quote_table_name("ci_builds")3564 -> 0.0000s3565-- quote_column_name("fk_c050b39299")3566 -> 0.0000s3567-- quote_column_name("fk_3a9eaa254d")3568 -> 0.0000s3569-- execute("ALTER TABLE \"ci_builds\"\nRENAME CONSTRAINT \"fk_c050b39299\" TO \"fk_3a9eaa254d\"\n")3570 -> 0.0007s3571== 20210701141346 FinalizeCiBuildsStageIdBigintConversion: migrated (0.0474s) =3572== 20210702124842 AddCiJobTraceSizeToPlanLimits: migrating ====================3573-- add_column(:plan_limits, :ci_jobs_trace_size_limit, :integer, {:default=>100, :null=>false})3574 -> 0.0023s3575== 20210702124842 AddCiJobTraceSizeToPlanLimits: migrated (0.0024s) ===========3576== 20210705124128 AddProjectSettingsPreviousDefaultBranch: migrating ==========3577-- add_column(:project_settings, :previous_default_branch, :text)3578 -> 0.0017s3579== 20210705124128 AddProjectSettingsPreviousDefaultBranch: migrated (0.0046s) =3580== 20210705130919 CreateContainerReposOnExpCleanupStatusProjectIdStartDateIndex: migrating 3581-- transaction_open?()3582 -> 0.0000s3583-- index_exists?(:container_repositories, [:expiration_policy_cleanup_status, :project_id, :expiration_policy_started_at], {:name=>"idx_container_repos_on_exp_cleanup_status_project_id_start_date", :algorithm=>:concurrently})3584 -> 0.0042s3585-- add_index(:container_repositories, [:expiration_policy_cleanup_status, :project_id, :expiration_policy_started_at], {:name=>"idx_container_repos_on_exp_cleanup_status_project_id_start_date", :algorithm=>:concurrently})3586 -> 0.0018s3587-- transaction_open?()3588 -> 0.0000s3589-- index_exists?(:container_repositories, [:expiration_policy_cleanup_status, :expiration_policy_started_at], {:name=>"idx_container_repositories_on_exp_cleanup_status_and_start_date", :algorithm=>:concurrently})3590 -> 0.0044s3591-- remove_index(:container_repositories, {:name=>"idx_container_repositories_on_exp_cleanup_status_and_start_date", :algorithm=>:concurrently, :column=>[:expiration_policy_cleanup_status, :expiration_policy_started_at]})3592 -> 0.0055s3593== 20210705130919 CreateContainerReposOnExpCleanupStatusProjectIdStartDateIndex: migrated (0.0197s) 3594== 20210705132928 AddNewUserSignupsCapToNamespaceSettings: migrating ==========3595-- add_column(:namespace_settings, :new_user_signups_cap, :integer, {:null=>true})3596 -> 0.0009s3597== 20210705132928 AddNewUserSignupsCapToNamespaceSettings: migrated (0.0037s) =3598== 20210705142714 InitializeConversionOfCiBuildsMetadataIdToBigint: migrating =3599-- table_exists?(:ci_builds_metadata)3600 -> 0.0012s3601-- column_exists?(:ci_builds_metadata, :id)3602 -> 0.0023s3603-- column_exists?(:ci_builds_metadata, :id)3604 -> 0.0023s3605-- columns(:ci_builds_metadata)3606 -> 0.0021s3607-- add_column(:ci_builds_metadata, "id_convert_to_bigint", :bigint, {:default=>0, :null=>false})3608 -> 0.0015s3609== 20210705142714 InitializeConversionOfCiBuildsMetadataIdToBigint: migrated (0.0145s) 3610== 20210705143150 BackfillCiBuildsMetadataIdForBigintConversion: migrating ====3611-- table_exists?(:ci_builds_metadata)3612 -> 0.0011s3613-- column_exists?(:ci_builds_metadata, :id)3614 -> 0.0022s3615-- column_exists?(:ci_builds_metadata, :id)3616 -> 0.0020s3617-- column_exists?(:ci_builds_metadata, "id_convert_to_bigint")3618 -> 0.0020s3619== 20210705143150 BackfillCiBuildsMetadataIdForBigintConversion: migrated (0.0135s) 3620== 20210705144657 AddInstanceRunnersEnabledToCiPendingBuild: migrating ========3621-- add_column(:ci_pending_builds, :instance_runners_enabled, :boolean, {:null=>false, :default=>false})3622 -> 0.0014s3623== 20210705144657 AddInstanceRunnersEnabledToCiPendingBuild: migrated (0.0038s) 3624== 20210706084713 AddDevopsAdoptionSnapshotsIndex: migrating ==================3625-- transaction_open?()3626 -> 0.0000s3627-- index_exists?(:analytics_devops_adoption_snapshots, [:namespace_id, :end_time], {:where=>"recorded_at >= end_time", :name=>"idx_analytics_devops_adoption_snapshots_finalized", :algorithm=>:concurrently})3628 -> 0.0036s3629-- add_index(:analytics_devops_adoption_snapshots, [:namespace_id, :end_time], {:where=>"recorded_at >= end_time", :name=>"idx_analytics_devops_adoption_snapshots_finalized", :algorithm=>:concurrently})3630 -> 0.0018s3631== 20210706084713 AddDevopsAdoptionSnapshotsIndex: migrated (0.0072s) =========3632== 20210706112800 RemoveCloudLicenseEnabledFromApplicationSettings: migrating =3633-- remove_column(:application_settings, :cloud_license_enabled)3634 -> 0.0017s3635== 20210706112800 RemoveCloudLicenseEnabledFromApplicationSettings: migrated (0.0044s) 3636== 20210706115312 AddUpvotesCountIndexToIssues: migrating =====================3637-- transaction_open?()3638 -> 0.0000s3639-- index_exists?(:issues, [:project_id, :upvotes_count], {:name=>"index_issues_on_project_id_and_upvotes_count", :algorithm=>:concurrently})3640 -> 0.0146s3641-- add_index(:issues, [:project_id, :upvotes_count], {:name=>"index_issues_on_project_id_and_upvotes_count", :algorithm=>:concurrently})3642 -> 0.0018s3643== 20210706115312 AddUpvotesCountIndexToIssues: migrated (0.0182s) ============3644== 20210706120847 RemoveFrameworkColumnFromComplianceManagementFrameworks: migrating 3645-- remove_column(:project_compliance_framework_settings, :framework, :smallint)3646 -> 0.0010s3647== 20210706120847 RemoveFrameworkColumnFromComplianceManagementFrameworks: migrated (0.0011s) 3648== 20210706142819 ReScheduleLatestPipelineIdPopulation: migrating =============3649== 20210706142819 ReScheduleLatestPipelineIdPopulation: migrated (0.0000s) ====3650== 20210706151154 AddRemainingCiMinutesToCiPendingBuild: migrating ============3651-- add_column(:ci_pending_builds, :namespace_id, :bigint)3652 -> 0.0008s3653-- add_column(:ci_pending_builds, :minutes_exceeded, :boolean, {:null=>false, :default=>false})3654 -> 0.0011s3655== 20210706151154 AddRemainingCiMinutesToCiPendingBuild: migrated (0.0042s) ===3656== 20210706151446 AddNamespaceForeignKeyToCiPendingBuild: migrating ===========3657-- transaction_open?()3658 -> 0.0000s3659-- index_exists?(:ci_pending_builds, :namespace_id, {:name=>"index_ci_pending_builds_on_namespace_id", :algorithm=>:concurrently})3660 -> 0.0028s3661-- add_index(:ci_pending_builds, :namespace_id, {:name=>"index_ci_pending_builds_on_namespace_id", :algorithm=>:concurrently})3662 -> 0.0014s3663-- transaction_open?()3664 -> 0.0000s3665-- foreign_keys(:ci_pending_builds)3666 -> 0.0034s3667-- execute("ALTER TABLE ci_pending_builds\nADD CONSTRAINT fk_fdc0137e4a\nFOREIGN KEY (namespace_id)\nREFERENCES namespaces (id)\nON DELETE CASCADE\nNOT VALID;\n")3668 -> 0.0014s3669-- execute("ALTER TABLE ci_pending_builds VALIDATE CONSTRAINT fk_fdc0137e4a;")3670 -> 0.0014s3671== 20210706151446 AddNamespaceForeignKeyToCiPendingBuild: migrated (0.0152s) ==3672== 20210706152139 AddIndexTypeToPostgresIndexesView: migrating ================3673-- execute("DROP VIEW IF EXISTS postgres_indexes;\n\nCREATE VIEW postgres_indexes AS\nSELECT (pg_namespace.nspname::text || '.'::text) || i.relname::text AS identifier,\n pg_index.indexrelid,\n pg_namespace.nspname AS schema,\n i.relname AS name,\n pg_indexes.tablename,\n a.amname AS type,\n pg_index.indisunique AS \"unique\",\n pg_index.indisvalid AS valid_index,\n i.relispartition AS partitioned,\n pg_index.indisexclusion AS exclusion,\n pg_index.indexprs IS NOT NULL AS expression,\n pg_index.indpred IS NOT NULL AS partial,\n pg_indexes.indexdef AS definition,\n pg_relation_size(i.oid::regclass) AS ondisk_size_bytes\nFROM pg_index\n JOIN pg_class i ON i.oid = pg_index.indexrelid\n JOIN pg_namespace ON i.relnamespace = pg_namespace.oid\n JOIN pg_indexes ON i.relname = pg_indexes.indexname\n JOIN pg_am a ON i.relam = a.oid\nWHERE pg_namespace.nspname <> 'pg_catalog'::name AND (pg_namespace.nspname = ANY (ARRAY[\"current_schema\"(), 'gitlab_partitions_dynamic'::name, 'gitlab_partitions_static'::name]));\n")3674 -> 0.0036s3675== 20210706152139 AddIndexTypeToPostgresIndexesView: migrated (0.0037s) =======3676== 20210706212710 FinalizeCiJobArtifactsBigintConversion: migrating ===========3677-- transaction_open?()3678 -> 0.0000s3679-- index_exists?("ci_job_artifacts", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_job_artifact_on_id_convert_to_bigint", :algorithm=>:concurrently})3680 -> 0.0061s3681-- add_index("ci_job_artifacts", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_job_artifact_on_id_convert_to_bigint", :algorithm=>:concurrently})3682 -> 0.0015s3683-- transaction_open?()3684 -> 0.0000s3685-- index_exists?("ci_job_artifacts", [:project_id, :id_convert_to_bigint], {:name=>"index_ci_job_artifacts_for_terraform_reports_bigint", :where=>"file_type = 18", :algorithm=>:concurrently})3686 -> 0.0064s3687-- add_index("ci_job_artifacts", [:project_id, :id_convert_to_bigint], {:name=>"index_ci_job_artifacts_for_terraform_reports_bigint", :where=>"file_type = 18", :algorithm=>:concurrently})3688 -> 0.0018s3689-- transaction_open?()3690 -> 0.0000s3691-- index_exists?("ci_job_artifacts", [:id_convert_to_bigint], {:name=>"index_ci_job_artifacts_id_for_terraform_reports_bigint", :where=>"file_type = 18", :algorithm=>:concurrently})3692 -> 0.0070s3693-- add_index("ci_job_artifacts", [:id_convert_to_bigint], {:name=>"index_ci_job_artifacts_id_for_terraform_reports_bigint", :where=>"file_type = 18", :algorithm=>:concurrently})3694 -> 0.0016s3695-- transaction_open?()3696 -> 0.0000s3697-- foreign_keys(:project_pages_metadata)3698 -> 0.0034s3699-- execute("LOCK TABLE ci_job_artifacts, project_pages_metadata IN SHARE ROW EXCLUSIVE MODE")3700 -> 0.0006s3701-- execute("ALTER TABLE project_pages_metadata\nADD CONSTRAINT fk_69366a119e_tmp\nFOREIGN KEY (artifacts_archive_id)\nREFERENCES ci_job_artifacts (id_convert_to_bigint)\nON DELETE SET NULL\nNOT VALID;\n")3702 -> 0.0011s3703-- execute("ALTER TABLE project_pages_metadata VALIDATE CONSTRAINT fk_69366a119e_tmp;")3704 -> 0.0013s3705-- execute("LOCK TABLE ci_job_artifacts, project_pages_metadata IN ACCESS EXCLUSIVE MODE")3706 -> 0.0005s3707-- quote_table_name("ci_job_artifacts")3708 -> 0.0000s3709-- quote_column_name(:id)3710 -> 0.0000s3711-- quote_column_name("id_tmp")3712 -> 0.0000s3713-- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"id\" TO \"id_tmp\"")3714 -> 0.0005s3715-- quote_table_name("ci_job_artifacts")3716 -> 0.0000s3717-- quote_column_name(:id_convert_to_bigint)3718 -> 0.0000s3719-- quote_column_name(:id)3720 -> 0.0000s3721-- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"id_convert_to_bigint\" TO \"id\"")3722 -> 0.0007s3723-- quote_table_name("ci_job_artifacts")3724 -> 0.0000s3725-- quote_column_name("id_tmp")3726 -> 0.0000s3727-- quote_column_name(:id_convert_to_bigint)3728 -> 0.0000s3729-- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"id_tmp\" TO \"id_convert_to_bigint\"")3730 -> 0.0006s3731-- quote_table_name("trigger_be1804f21693")3732 -> 0.0000s3733-- execute("ALTER FUNCTION \"trigger_be1804f21693\" RESET ALL")3734 -> 0.0005s3735-- execute("ALTER SEQUENCE ci_job_artifacts_id_seq OWNED BY ci_job_artifacts.id")3736 -> 0.0006s3737-- change_column_default("ci_job_artifacts", :id, #<Proc:0x00007f818d3a4470 /builds/gitlab-org/gitlab/db/post_migrate/20210706212710_finalize_ci_job_artifacts_bigint_conversion.rb:66 (lambda)>)3738 -> 0.0029s3739-- change_column_default("ci_job_artifacts", :id_convert_to_bigint, 0)3740 -> 0.0026s3741-- execute("ALTER TABLE ci_job_artifacts DROP CONSTRAINT ci_job_artifacts_pkey CASCADE")3742 -> 0.0011s3743-- rename_index("ci_job_artifacts", "index_ci_job_artifact_on_id_convert_to_bigint", "ci_job_artifacts_pkey")3744 -> 0.0006s3745-- execute("ALTER TABLE ci_job_artifacts ADD CONSTRAINT ci_job_artifacts_pkey PRIMARY KEY USING INDEX ci_job_artifacts_pkey")3746 -> 0.0007s3747-- execute("DROP INDEX index_ci_job_artifacts_for_terraform_reports")3748 -> 0.0006s3749-- rename_index("ci_job_artifacts", "index_ci_job_artifacts_for_terraform_reports_bigint", "index_ci_job_artifacts_for_terraform_reports")3750 -> 0.0006s3751-- execute("DROP INDEX index_ci_job_artifacts_id_for_terraform_reports")3752 -> 0.0008s3753-- rename_index("ci_job_artifacts", "index_ci_job_artifacts_id_for_terraform_reports_bigint", "index_ci_job_artifacts_id_for_terraform_reports")3754 -> 0.0006s3755-- quote_table_name(:project_pages_metadata)3756 -> 0.0000s3757-- quote_column_name("fk_69366a119e_tmp")3758 -> 0.0000s3759-- quote_column_name("fk_69366a119e")3760 -> 0.0000s3761-- execute("ALTER TABLE \"project_pages_metadata\"\nRENAME CONSTRAINT \"fk_69366a119e_tmp\" TO \"fk_69366a119e\"\n")3762 -> 0.0006s3763== 20210706212710 FinalizeCiJobArtifactsBigintConversion: migrated (0.0614s) ==3764== 20210706213537 AddPremiumAndUltimatePlanLimits: migrating ==================3765== 20210706213537 AddPremiumAndUltimatePlanLimits: migrated (0.0000s) =========3766== 20210707095545 AddStatusToMergeRequestCleanupSchedules: migrating ==========3767-- column_exists?(:merge_request_cleanup_schedules, :status)3768 -> 0.0017s3769-- add_column(:merge_request_cleanup_schedules, :status, :integer, {:limit=>2, :default=>0, :null=>false})3770 -> 0.0013s3771-- transaction_open?()3772 -> 0.0000s3773-- index_exists?(:merge_request_cleanup_schedules, :status, {:name=>"index_merge_request_cleanup_schedules_on_status", :algorithm=>:concurrently})3774 -> 0.0024s3775-- add_index(:merge_request_cleanup_schedules, :status, {:name=>"index_merge_request_cleanup_schedules_on_status", :algorithm=>:concurrently})3776 -> 0.0014s3777== 20210707095545 AddStatusToMergeRequestCleanupSchedules: migrated (0.0085s) =3778== 20210707113056 AddTagsArrayToCiPendingBuilds: migrating ====================3779-- add_column(:ci_pending_builds, :tag_ids, :integer, {:array=>true, :default=>[]})3780 -> 0.0021s3781== 20210707113056 AddTagsArrayToCiPendingBuilds: migrated (0.0048s) ===========3782== 20210707151536 CreateVulnerabilityFindingEvidenceSources: migrating ========3783-- create_table(:vulnerability_finding_evidence_sources, {})3784-- quote_column_name(:name)3785 -> 0.0000s3786-- quote_column_name(:url)3787 -> 0.0000s3788 -> 0.0047s3789-- quote_table_name("check_86b537ba1a")3790 -> 0.0000s3791-- quote_table_name("check_0fe01298d6")3792 -> 0.0000s3793-- quote_table_name(:vulnerability_finding_evidence_sources)3794 -> 0.0000s3795-- execute("ALTER TABLE \"vulnerability_finding_evidence_sources\"\nADD CONSTRAINT \"check_86b537ba1a\" CHECK (char_length(\"name\") <= 2048),\nADD CONSTRAINT \"check_0fe01298d6\" CHECK (char_length(\"url\") <= 2048)\n")3796 -> 0.0009s3797== 20210707151536 CreateVulnerabilityFindingEvidenceSources: migrated (0.0085s) 3798== 20210707163659 AddVulnerabilityEventsToIntegrations: migrating =============3799-- add_column(:integrations, :vulnerability_events, :boolean, {:default=>false, :null=>false})3800 -> 0.0019s3801== 20210707163659 AddVulnerabilityEventsToIntegrations: migrated (0.0020s) ====3802== 20210707171536 CreateVulnerabilityFindingEvidenceAssets: migrating =========3803-- create_table(:vulnerability_finding_evidence_assets, {})3804-- quote_column_name(:type)3805 -> 0.0000s3806-- quote_column_name(:name)3807 -> 0.0000s3808-- quote_column_name(:url)3809 -> 0.0000s3810 -> 0.0048s3811-- quote_table_name("check_5adf5d69de")3812 -> 0.0000s3813-- quote_table_name("check_839f29d7ca")3814 -> 0.0000s3815-- quote_table_name("check_9272d912c0")3816 -> 0.0000s3817-- quote_table_name(:vulnerability_finding_evidence_assets)3818 -> 0.0000s3819-- execute("ALTER TABLE \"vulnerability_finding_evidence_assets\"\nADD CONSTRAINT \"check_5adf5d69de\" CHECK (char_length(\"type\") <= 2048),\nADD CONSTRAINT \"check_839f29d7ca\" CHECK (char_length(\"name\") <= 2048),\nADD CONSTRAINT \"check_9272d912c0\" CHECK (char_length(\"url\") <= 2048)\n")3820 -> 0.0011s3821== 20210707171536 CreateVulnerabilityFindingEvidenceAssets: migrated (0.0092s) 3822== 20210707171554 CreateVulnerabilityFlags: migrating =========================3823-- create_table(:vulnerability_flags, {})3824-- quote_column_name(:origin)3825 -> 0.0000s3826-- quote_column_name(:description)3827 -> 0.0000s3828 -> 0.0051s3829-- quote_table_name("check_49c1d00032")3830 -> 0.0000s3831-- quote_table_name("check_45e743349f")3832 -> 0.0000s3833-- quote_table_name(:vulnerability_flags)3834 -> 0.0000s3835-- execute("ALTER TABLE \"vulnerability_flags\"\nADD CONSTRAINT \"check_49c1d00032\" CHECK (char_length(\"origin\") <= 255),\nADD CONSTRAINT \"check_45e743349f\" CHECK (char_length(\"description\") <= 1024)\n")3836 -> 0.0010s3837== 20210707171554 CreateVulnerabilityFlags: migrated (0.0091s) ================3838== 20210707173645 AddProjectSettingsPreviousDefaultBranchTextLimit: migrating =3839-- transaction_open?()3840 -> 0.0000s3841-- current_schema()3842 -> 0.0006s3843-- execute("ALTER TABLE project_settings\nADD CONSTRAINT check_3a03e7557a\nCHECK ( char_length(previous_default_branch) <= 4096 )\nNOT VALID;\n")3844 -> 0.0009s3845-- current_schema()3846 -> 0.0004s3847-- execute("ALTER TABLE project_settings VALIDATE CONSTRAINT check_3a03e7557a;")3848 -> 0.0008s3849== 20210707173645 AddProjectSettingsPreviousDefaultBranchTextLimit: migrated (0.0087s) 3850== 20210707181536 CreateVulnerabilityFindingEvidenceSupportingMessages: migrating 3851-- create_table(:vulnerability_finding_evidence_supporting_messages, {})3852-- quote_column_name(:name)3853 -> 0.0000s3854 -> 0.0047s3855-- quote_table_name("check_fa33b9ae85")3856 -> 0.0000s3857-- quote_table_name(:vulnerability_finding_evidence_supporting_messages)3858 -> 0.0000s3859-- execute("ALTER TABLE \"vulnerability_finding_evidence_supporting_messages\"\nADD CONSTRAINT \"check_fa33b9ae85\" CHECK (char_length(\"name\") <= 2048)\n")3860 -> 0.0009s3861== 20210707181536 CreateVulnerabilityFindingEvidenceSupportingMessages: migrated (0.0086s) 3862== 20210707210916 FinalizeCiStagesBigintConversion: migrating =================3863-- transaction_open?()3864 -> 0.0000s3865-- index_exists?("ci_stages", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_stages_on_id_convert_to_bigint", :algorithm=>:concurrently})3866 -> 0.0045s3867-- add_index("ci_stages", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_stages_on_id_convert_to_bigint", :algorithm=>:concurrently})3868 -> 0.0015s3869-- transaction_open?()3870 -> 0.0000s3871-- index_exists?("ci_stages", [:pipeline_id, :id_convert_to_bigint], {:name=>"index_ci_stages_on_pipeline_id_and_id_convert_to_bigint", :where=>"status in (0, 1, 2, 8, 9, 10)", :algorithm=>:concurrently})3872 -> 0.0049s3873-- add_index("ci_stages", [:pipeline_id, :id_convert_to_bigint], {:name=>"index_ci_stages_on_pipeline_id_and_id_convert_to_bigint", :where=>"status in (0, 1, 2, 8, 9, 10)", :algorithm=>:concurrently})3874 -> 0.0019s3875-- transaction_open?()3876 -> 0.0000s3877-- foreign_keys(:ci_builds)3878 -> 0.0039s3879-- execute("LOCK TABLE ci_stages, ci_builds IN SHARE ROW EXCLUSIVE MODE")3880 -> 0.0005s3881-- execute("ALTER TABLE ci_builds\nADD CONSTRAINT fk_3a9eaa254d_tmp\nFOREIGN KEY (stage_id)\nREFERENCES ci_stages (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")3882 -> 0.0015s3883-- execute("ALTER TABLE ci_builds VALIDATE CONSTRAINT fk_3a9eaa254d_tmp;")3884 -> 0.0019s3885-- execute("LOCK TABLE ci_stages, ci_builds IN ACCESS EXCLUSIVE MODE")3886 -> 0.0006s3887-- quote_column_name("id_tmp")3888 -> 0.0000s3889-- quote_column_name(:id)3890 -> 0.0000s3891-- quote_column_name(:id_convert_to_bigint)3892 -> 0.0001s3893-- execute("ALTER TABLE ci_stages RENAME COLUMN \"id\" TO \"id_tmp\"")3894 -> 0.0009s3895-- execute("ALTER TABLE ci_stages RENAME COLUMN \"id_convert_to_bigint\" TO \"id\"")3896 -> 0.0009s3897-- execute("ALTER TABLE ci_stages RENAME COLUMN \"id_tmp\" TO \"id_convert_to_bigint\"")3898 -> 0.0007s3899-- quote_table_name("trigger_490d204c00b3")3900 -> 0.0001s3901-- execute("ALTER FUNCTION \"trigger_490d204c00b3\" RESET ALL")3902 -> 0.0007s3903-- execute("ALTER SEQUENCE ci_stages_id_seq OWNED BY ci_stages.id")3904 -> 0.0007s3905-- change_column_default("ci_stages", :id, #<Proc:0x00007f8196882920 /builds/gitlab-org/gitlab/db/post_migrate/20210707210916_finalize_ci_stages_bigint_conversion.rb:61 (lambda)>)3906 -> 0.0519s3907-- change_column_default("ci_stages", :id_convert_to_bigint, 0)3908 -> 0.0029s3909-- execute("ALTER TABLE ci_stages DROP CONSTRAINT ci_stages_pkey CASCADE")3910 -> 0.0014s3911-- rename_index("ci_stages", "index_ci_stages_on_id_convert_to_bigint", "ci_stages_pkey")3912 -> 0.0009s3913-- execute("ALTER TABLE ci_stages ADD CONSTRAINT ci_stages_pkey PRIMARY KEY USING INDEX ci_stages_pkey")3914 -> 0.0008s3915-- execute("DROP INDEX index_ci_stages_on_pipeline_id_and_id")3916 -> 0.0006s3917-- rename_index("ci_stages", "index_ci_stages_on_pipeline_id_and_id_convert_to_bigint", "index_ci_stages_on_pipeline_id_and_id")3918 -> 0.0008s3919-- quote_table_name(:ci_builds)3920 -> 0.0000s3921-- quote_column_name("fk_3a9eaa254d_tmp")3922 -> 0.0000s3923-- quote_column_name("fk_3a9eaa254d")3924 -> 0.0000s3925-- execute("ALTER TABLE \"ci_builds\"\nRENAME CONSTRAINT \"fk_3a9eaa254d_tmp\" TO \"fk_3a9eaa254d\"\n")3926 -> 0.0007s3927== 20210707210916 FinalizeCiStagesBigintConversion: migrated (0.1005s) ========3928== 20210708011425 RenameCiBuildsMetadataForeignKey: migrating =================3929-- transaction_open?()3930 -> 0.0000s3931-- quote_table_name("ci_builds_metadata")3932 -> 0.0000s3933-- quote_column_name("fk_rails_e20479742e")3934 -> 0.0000s3935-- quote_column_name("fk_e20479742e")3936 -> 0.0000s3937-- execute("ALTER TABLE \"ci_builds_metadata\"\nRENAME CONSTRAINT \"fk_rails_e20479742e\" TO \"fk_e20479742e\"\n")3938 -> 0.0006s3939== 20210708011425 RenameCiBuildsMetadataForeignKey: migrated (0.0032s) ========3940== 20210708011426 FinalizeCiBuildsMetadataBigintConversion: migrating =========3941-- transaction_open?()3942 -> 0.0000s3943-- index_exists?("ci_builds_metadata", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_builds_metadata_on_id_convert_to_bigint", :algorithm=>:concurrently})3944 -> 0.0034s3945-- add_index("ci_builds_metadata", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_builds_metadata_on_id_convert_to_bigint", :algorithm=>:concurrently})3946 -> 0.0014s3947-- transaction_open?()3948 -> 0.0000s3949-- index_exists?("ci_builds_metadata", :build_id_convert_to_bigint, {:where=>"has_exposed_artifacts IS TRUE", :name=>"index_ci_builds_metadata_on_build_id_int8_and_exposed_artifacts", :algorithm=>:concurrently})3950 -> 0.0034s3951-- add_index("ci_builds_metadata", :build_id_convert_to_bigint, {:where=>"has_exposed_artifacts IS TRUE", :name=>"index_ci_builds_metadata_on_build_id_int8_and_exposed_artifacts", :algorithm=>:concurrently})3952 -> 0.0013s3953-- indexes("ci_builds_metadata")3954 -> 0.0040s3955-- current_schema()3956 -> 0.0004s3957-- execute("CREATE INDEX CONCURRENTLY index_ci_builds_metadata_on_build_id_int8_where_interruptible\nON ci_builds_metadata (build_id_convert_to_bigint) INCLUDE (id_convert_to_bigint)\nWHERE interruptible = true\n")3958 -> 0.0014s3959-- transaction_open?()3960 -> 0.0000s3961-- index_exists?("ci_builds_metadata", :build_id_convert_to_bigint, {:unique=>true, :name=>"index_ci_builds_metadata_on_build_id_convert_to_bigint", :algorithm=>:concurrently})3962 -> 0.0046s3963-- add_index("ci_builds_metadata", :build_id_convert_to_bigint, {:unique=>true, :name=>"index_ci_builds_metadata_on_build_id_convert_to_bigint", :algorithm=>:concurrently})3964 -> 0.0014s3965-- transaction_open?()3966 -> 0.0000s3967-- foreign_keys("ci_builds_metadata")3968 -> 0.0035s3969-- transaction_open?()3970 -> 0.0000s3971-- execute("LOCK TABLE ci_builds, ci_builds_metadata IN SHARE ROW EXCLUSIVE MODE")3972 -> 0.0005s3973-- execute("ALTER TABLE ci_builds_metadata\nADD CONSTRAINT fk_200e893612\nFOREIGN KEY (build_id_convert_to_bigint)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n")3974 -> 0.0014s3975-- execute("ALTER TABLE ci_builds_metadata VALIDATE CONSTRAINT fk_200e893612;")3976 -> 0.0014s3977-- transaction_open?()3978 -> 0.0000s3979-- execute("LOCK TABLE ci_builds, ci_builds_metadata IN ACCESS EXCLUSIVE MODE")3980 -> 0.0005s3981-- quote_table_name("ci_builds_metadata")3982 -> 0.0000s3983-- quote_column_name(:id)3984 -> 0.0001s3985-- quote_column_name("id_tmp")3986 -> 0.0000s3987-- execute("ALTER TABLE \"ci_builds_metadata\" RENAME COLUMN \"id\" TO \"id_tmp\"")3988 -> 0.0007s3989-- quote_table_name("ci_builds_metadata")3990 -> 0.0000s3991-- quote_column_name(:id_convert_to_bigint)3992 -> 0.0000s3993-- quote_column_name(:id)3994 -> 0.0000s3995-- execute("ALTER TABLE \"ci_builds_metadata\" RENAME COLUMN \"id_convert_to_bigint\" TO \"id\"")3996 -> 0.0006s3997-- quote_table_name("ci_builds_metadata")3998 -> 0.0000s3999-- quote_column_name("id_tmp")4000 -> 0.0000s4001-- quote_column_name(:id_convert_to_bigint)4002 -> 0.0000s4003-- execute("ALTER TABLE \"ci_builds_metadata\" RENAME COLUMN \"id_tmp\" TO \"id_convert_to_bigint\"")4004 -> 0.0006s4005-- quote_table_name("ci_builds_metadata")4006 -> 0.0000s4007-- quote_column_name(:build_id)4008 -> 0.0000s4009-- quote_column_name("build_id_tmp")4010 -> 0.0000s4011-- execute("ALTER TABLE \"ci_builds_metadata\" RENAME COLUMN \"build_id\" TO \"build_id_tmp\"")4012 -> 0.0006s4013-- quote_table_name("ci_builds_metadata")4014 -> 0.0000s4015-- quote_column_name(:build_id_convert_to_bigint)4016 -> 0.0000s4017-- quote_column_name(:build_id)4018 -> 0.0001s4019-- execute("ALTER TABLE \"ci_builds_metadata\" RENAME COLUMN \"build_id_convert_to_bigint\" TO \"build_id\"")4020 -> 0.0006s4021-- quote_table_name("ci_builds_metadata")4022 -> 0.0000s4023-- quote_column_name("build_id_tmp")4024 -> 0.0000s4025-- quote_column_name(:build_id_convert_to_bigint)4026 -> 0.0000s4027-- execute("ALTER TABLE \"ci_builds_metadata\" RENAME COLUMN \"build_id_tmp\" TO \"build_id_convert_to_bigint\"")4028 -> 0.0006s4029-- quote_table_name("trigger_542d6c2ad72e")4030 -> 0.0000s4031-- execute("ALTER FUNCTION \"trigger_542d6c2ad72e\" RESET ALL")4032 -> 0.0005s4033-- quote_table_name("trigger_8487d4de3e7b")4034 -> 0.0000s4035-- execute("ALTER FUNCTION \"trigger_8487d4de3e7b\" RESET ALL")4036 -> 0.0004s4037-- execute("ALTER SEQUENCE ci_builds_metadata_id_seq OWNED BY ci_builds_metadata.id")4038 -> 0.0006s4039-- change_column_default("ci_builds_metadata", :id, #<Proc:0x00007f814bdf8580 /builds/gitlab-org/gitlab/db/post_migrate/20210708011426_finalize_ci_builds_metadata_bigint_conversion.rb:61 (lambda)>)4040 -> 0.0029s4041-- change_column_default("ci_builds_metadata", :id_convert_to_bigint, 0)4042 -> 0.0031s4043-- change_column_default("ci_builds_metadata", :build_id, nil)4044 -> 0.0028s4045-- change_column_default("ci_builds_metadata", :build_id_convert_to_bigint, 0)4046 -> 0.0028s4047-- execute("ALTER TABLE ci_builds_metadata DROP CONSTRAINT ci_builds_metadata_pkey CASCADE")4048 -> 0.0009s4049-- rename_index("ci_builds_metadata", "index_ci_builds_metadata_on_id_convert_to_bigint", "ci_builds_metadata_pkey")4050 -> 0.0006s4051-- execute("ALTER TABLE ci_builds_metadata ADD CONSTRAINT ci_builds_metadata_pkey PRIMARY KEY USING INDEX ci_builds_metadata_pkey")4052 -> 0.0009s4053-- execute("DROP INDEX index_ci_builds_metadata_on_build_id")4054 -> 0.0006s4055-- rename_index("ci_builds_metadata", "index_ci_builds_metadata_on_build_id_convert_to_bigint", "index_ci_builds_metadata_on_build_id")4056 -> 0.0007s4057-- execute("DROP INDEX index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts")4058 -> 0.0007s4059-- rename_index("ci_builds_metadata", "index_ci_builds_metadata_on_build_id_int8_and_exposed_artifacts", "index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts")4060 -> 0.0006s4061-- execute("DROP INDEX index_ci_builds_metadata_on_build_id_and_id_and_interruptible")4062 -> 0.0007s4063-- rename_index("ci_builds_metadata", "index_ci_builds_metadata_on_build_id_int8_where_interruptible", "index_ci_builds_metadata_on_build_id_and_id_and_interruptible")4064 -> 0.0006s4065-- remove_foreign_key("ci_builds_metadata", {:name=>"fk_e20479742e"})4066 -> 0.0048s4067-- quote_table_name("ci_builds_metadata")4068 -> 0.0000s4069-- quote_column_name("fk_200e893612")4070 -> 0.0000s4071-- quote_column_name("fk_e20479742e")4072 -> 0.0000s4073-- execute("ALTER TABLE \"ci_builds_metadata\"\nRENAME CONSTRAINT \"fk_200e893612\" TO \"fk_e20479742e\"\n")4074 -> 0.0007s4075== 20210708011426 FinalizeCiBuildsMetadataBigintConversion: migrated (0.0778s) 4076== 20210708063032 AddFailedCountToMergeRequestCleanupSchedules: migrating =====4077-- add_column(:merge_request_cleanup_schedules, :failed_count, :integer, {:default=>0, :null=>false})4078 -> 0.0016s4079== 20210708063032 AddFailedCountToMergeRequestCleanupSchedules: migrated (0.0017s) 4080== 20210708124229 AddSecurityScansCreatedAtIndex: migrating ===================4081-- transaction_open?()4082 -> 0.0000s4083-- index_exists?(:security_scans, :created_at, {:name=>"index_security_scans_on_created_at", :algorithm=>:concurrently})4084 -> 0.0030s4085-- add_index(:security_scans, :created_at, {:name=>"index_security_scans_on_created_at", :algorithm=>:concurrently})4086 -> 0.0016s4087== 20210708124229 AddSecurityScansCreatedAtIndex: migrated (0.0065s) ==========4088== 20210708130419 RescheduleMergeRequestDiffUsersBackgroundMigration: migrating 4089== 20210708130419 RescheduleMergeRequestDiffUsersBackgroundMigration: migrated (0.0037s) 4090== 20210708131048 AddErrorTrackingCounterCache: migrating =====================4091-- add_column(:error_tracking_errors, :events_count, :bigint, {:null=>false, :default=>0})4092 -> 0.0018s4093== 20210708131048 AddErrorTrackingCounterCache: migrated (0.0020s) ============4094== 20210708134446 RemoveNotNullConstraintFromTerms: migrating =================4095-- change_column_null(:application_setting_terms, :terms, true)4096 -> 0.0012s4097== 20210708134446 RemoveNotNullConstraintFromTerms: migrated (0.0013s) ========4098== 20210708202548 AddScannersColumnToApprovalProjectRules: migrating ==========4099-- add_column(:approval_project_rules, :scanners, :text, {:array=>true})4100 -> 0.0013s4101== 20210708202548 AddScannersColumnToApprovalProjectRules: migrated (0.0014s) =4102== 20210709024048 FinalizePushEventPayloadsBigintConversion2: migrating =======4103== 20210709024048 FinalizePushEventPayloadsBigintConversion2: migrated (0.0000s) 4104== 20210709085759 IndexBatchedMigrationJobsByMaxValue: migrating ==============4105-- transaction_open?()4106 -> 0.0000s4107-- index_exists?(:batched_background_migration_jobs, [:batched_background_migration_id, :max_value], {:name=>"index_migration_jobs_on_migration_id_and_max_value", :algorithm=>:concurrently})4108 -> 0.0031s4109-- add_index(:batched_background_migration_jobs, [:batched_background_migration_id, :max_value], {:name=>"index_migration_jobs_on_migration_id_and_max_value", :algorithm=>:concurrently})4110 -> 0.0015s4111== 20210709085759 IndexBatchedMigrationJobsByMaxValue: migrated (0.0064s) =====4112== 20210709132707 ChangeDefaultJobTokenScopeEnabled: migrating ================4113-- change_column_default(:project_ci_cd_settings, :job_token_scope_enabled, {:from=>false, :to=>true})4114 -> 0.0028s4115== 20210709132707 ChangeDefaultJobTokenScopeEnabled: migrated (0.0058s) =======4116== 20210709221051 CreateWorkItemTypes: migrating ==============================4117-- create_table(:work_item_types, {})4118-- quote_column_name(:name)4119 -> 0.0000s4120-- quote_column_name(:icon_name)4121 -> 0.0000s4122 -> 0.0045s4123-- quote_table_name("check_104d2410f6")4124 -> 0.0000s4125-- quote_table_name("check_fecb3a98d1")4126 -> 0.0000s4127-- quote_table_name(:work_item_types)4128 -> 0.0000s4129-- execute("ALTER TABLE \"work_item_types\"\nADD CONSTRAINT \"check_104d2410f6\" CHECK (char_length(\"name\") <= 255),\nADD CONSTRAINT \"check_fecb3a98d1\" CHECK (char_length(\"icon_name\") <= 255)\n")4130 -> 0.0010s4131-- transaction_open?()4132 -> 0.0000s4133-- index_exists?(:work_item_types, "namespace_id, TRIM(BOTH FROM LOWER(name))", {:unique=>true, :name=>:work_item_types_namespace_id_and_name_unique, :algorithm=>:concurrently})4134 -> 0.0014s4135-- add_index(:work_item_types, "namespace_id, TRIM(BOTH FROM LOWER(name))", {:unique=>true, :name=>:work_item_types_namespace_id_and_name_unique, :algorithm=>:concurrently})4136 -> 0.0015s4137== 20210709221051 CreateWorkItemTypes: migrated (0.0130s) =====================4138== 20210709221659 AddWorkItemTypeIdToIssue: migrating =========================4139-- column_exists?(:issues, :work_item_type_id)4140 -> 0.0037s4141-- add_column(:issues, :work_item_type_id, :bigint)4142 -> 0.0010s4143-- transaction_open?()4144 -> 0.0000s4145-- index_exists?(:issues, :work_item_type_id, {:algorithm=>:concurrently})4146 -> 0.0149s4147-- add_index(:issues, :work_item_type_id, {:algorithm=>:concurrently})4148 -> 0.0020s4149-- transaction_open?()4150 -> 0.0000s4151-- foreign_keys(:issues)4152 -> 0.0037s4153-- execute("ALTER TABLE issues\nADD CONSTRAINT fk_b37be69be6\nFOREIGN KEY (work_item_type_id)\nREFERENCES work_item_types (id)\n\nNOT VALID;\n")4154 -> 0.0016s4155-- execute("ALTER TABLE issues VALIDATE CONSTRAINT fk_b37be69be6;")4156 -> 0.0017s4157== 20210709221659 AddWorkItemTypeIdToIssue: migrated (0.0373s) ================4158== 20210712052519 AddLabelAppliedIssuableClosedToIssuableSla: migrating =======4159-- add_column(:issuable_slas, :label_applied, :boolean, {:default=>false, :null=>false})4160 -> 0.0017s4161-- add_column(:issuable_slas, :issuable_closed, :boolean, {:default=>false, :null=>false})4162 -> 0.0011s4163== 20210712052519 AddLabelAppliedIssuableClosedToIssuableSla: migrated (0.0029s) 4164== 20210713042153 FinalizeCiSourcesPipelinesBigintConversion: migrating =======4165-- transaction_open?()4166 -> 0.0000s4167-- index_exists?("ci_sources_pipelines", :source_job_id_convert_to_bigint, {:name=>"index_ci_sources_pipelines_on_source_job_id_convert_to_bigint", :algorithm=>:concurrently})4168 -> 0.0037s4169-- add_index("ci_sources_pipelines", :source_job_id_convert_to_bigint, {:name=>"index_ci_sources_pipelines_on_source_job_id_convert_to_bigint", :algorithm=>:concurrently})4170 -> 0.0014s4171-- transaction_open?()4172 -> 0.0000s4173-- foreign_keys("ci_sources_pipelines")4174 -> 0.0032s4175-- execute("LOCK TABLE ci_builds, ci_sources_pipelines IN SHARE ROW EXCLUSIVE MODE")4176 -> 0.0004s4177-- execute("ALTER TABLE ci_sources_pipelines\nADD CONSTRAINT fk_be5624bf37_tmp\nFOREIGN KEY (source_job_id_convert_to_bigint)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n")4178 -> 0.0013s4179-- execute("ALTER TABLE ci_sources_pipelines VALIDATE CONSTRAINT fk_be5624bf37_tmp;")4180 -> 0.0014s4181-- execute("LOCK TABLE ci_builds, ci_sources_pipelines IN ACCESS EXCLUSIVE MODE")4182 -> 0.0005s4183-- quote_table_name("ci_sources_pipelines")4184 -> 0.0000s4185-- quote_column_name(:source_job_id)4186 -> 0.0000s4187-- quote_column_name("source_job_id_tmp")4188 -> 0.0000s4189-- execute("ALTER TABLE \"ci_sources_pipelines\" RENAME COLUMN \"source_job_id\" TO \"source_job_id_tmp\"")4190 -> 0.0006s4191-- quote_table_name("ci_sources_pipelines")4192 -> 0.0000s4193-- quote_column_name(:source_job_id_convert_to_bigint)4194 -> 0.0000s4195-- quote_column_name(:source_job_id)4196 -> 0.0000s4197-- execute("ALTER TABLE \"ci_sources_pipelines\" RENAME COLUMN \"source_job_id_convert_to_bigint\" TO \"source_job_id\"")4198 -> 0.0006s4199-- quote_table_name("ci_sources_pipelines")4200 -> 0.0000s4201-- quote_column_name("source_job_id_tmp")4202 -> 0.0000s4203-- quote_column_name(:source_job_id_convert_to_bigint)4204 -> 0.0000s4205-- execute("ALTER TABLE \"ci_sources_pipelines\" RENAME COLUMN \"source_job_id_tmp\" TO \"source_job_id_convert_to_bigint\"")4206 -> 0.0006s4207-- quote_table_name("trigger_8485e97c00e3")4208 -> 0.0000s4209-- execute("ALTER FUNCTION \"trigger_8485e97c00e3\" RESET ALL")4210 -> 0.0006s4211-- execute("DROP INDEX index_ci_sources_pipelines_on_source_job_id")4212 -> 0.0006s4213-- rename_index("ci_sources_pipelines", "index_ci_sources_pipelines_on_source_job_id_convert_to_bigint", "index_ci_sources_pipelines_on_source_job_id")4214 -> 0.0006s4215-- remove_foreign_key("ci_sources_pipelines", {:name=>"fk_be5624bf37"})4216 -> 0.0044s4217-- quote_table_name("ci_sources_pipelines")4218 -> 0.0000s4219-- quote_column_name("fk_be5624bf37_tmp")4220 -> 0.0000s4221-- quote_column_name("fk_be5624bf37")4222 -> 0.0000s4223-- execute("ALTER TABLE \"ci_sources_pipelines\"\nRENAME CONSTRAINT \"fk_be5624bf37_tmp\" TO \"fk_be5624bf37\"\n")4224 -> 0.0006s4225== 20210713042153 FinalizeCiSourcesPipelinesBigintConversion: migrated (0.0327s) 4226== 20210713070842 UpdateMergeRequestCleanupSchedulesScheduledAtIndex: migrating 4227-- transaction_open?()4228 -> 0.0000s4229-- index_exists?(:merge_request_cleanup_schedules, :scheduled_at, {:where=>"completed_at IS NULL AND status = 0", :name=>"index_mr_cleanup_schedules_timestamps_status", :algorithm=>:concurrently})4230 -> 0.0028s4231-- add_index(:merge_request_cleanup_schedules, :scheduled_at, {:where=>"completed_at IS NULL AND status = 0", :name=>"index_mr_cleanup_schedules_timestamps_status", :algorithm=>:concurrently})4232 -> 0.0014s4233-- transaction_open?()4234 -> 0.0000s4235-- indexes(:merge_request_cleanup_schedules)4236 -> 0.0030s4237-- remove_index(:merge_request_cleanup_schedules, {:algorithm=>:concurrently, :name=>"index_mr_cleanup_schedules_timestamps"})4238 -> 0.0011s4239== 20210713070842 UpdateMergeRequestCleanupSchedulesScheduledAtIndex: migrated (0.0113s) 4240== 20210713075117 ReScheduleLatestPipelineIdPopulationWithLogging: migrating ==4241== 20210713075117 ReScheduleLatestPipelineIdPopulationWithLogging: migrated (0.0000s) 4242== 20210713123345 CreateDastProfileSchedule: migrating ========================4243-- create_table(:dast_profile_schedules, {:comment=>"{\"owner\":\"group::dynamic analysis\",\"description\":\"Scheduling for scans using DAST Profiles\"}"})4244-- quote_column_name(:cron)4245 -> 0.0000s4246 -> 0.0064s4247-- quote_table_name("check_86531ea73f")4248 -> 0.0000s4249-- quote_table_name(:dast_profile_schedules)4250 -> 0.0000s4251-- execute("ALTER TABLE \"dast_profile_schedules\"\nADD CONSTRAINT \"check_86531ea73f\" CHECK (char_length(\"cron\") <= 255)\n")4252 -> 0.0007s4253== 20210713123345 CreateDastProfileSchedule: migrated (0.0100s) ===============4254== 20210713135152 AddDevopsAdoptionVulnerabilityManagementUsedCount: migrating 4255-- add_column(:analytics_devops_adoption_snapshots, :vulnerability_management_used_count, :integer)4256 -> 0.0013s4257== 20210713135152 AddDevopsAdoptionVulnerabilityManagementUsedCount: migrated (0.0013s) 4258== 20210713144637 AddVulnerabilitiesCreatedAtIndex: migrating =================4259-- transaction_open?()4260 -> 0.0000s4261-- index_exists?(:vulnerabilities, [:project_id, :created_at], {:where=>"state != 1", :name=>"idx_vulnerabilities_partial_devops_adoption", :algorithm=>:concurrently})4262 -> 0.0070s4263-- add_index(:vulnerabilities, [:project_id, :created_at], {:where=>"state != 1", :name=>"idx_vulnerabilities_partial_devops_adoption", :algorithm=>:concurrently})4264 -> 0.0018s4265== 20210713144637 AddVulnerabilitiesCreatedAtIndex: migrated (0.0105s) ========4266== 20210713211008 CreateBannedUsers: migrating ================================4267-- create_table(:banned_users, {:id=>false})4268 -> 0.0029s4269== 20210713211008 CreateBannedUsers: migrated (0.0057s) =======================4270== 20210713223941 RemoveNullConstraintFromSecurityFindings: migrating =========4271-- change_column_null(:security_findings, :project_fingerprint, true)4272 -> 0.0012s4273== 20210713223941 RemoveNullConstraintFromSecurityFindings: migrated (0.0012s) 4274== 20210714015537 FinalizeCiBuildTraceChunksBigintConversion: migrating =======4275-- transaction_open?()4276 -> 0.0000s4277-- index_exists?("ci_build_trace_chunks", [:build_id_convert_to_bigint, :chunk_index], {:unique=>true, :name=>"i_ci_build_trace_chunks_build_id_convert_to_bigint_chunk_index", :algorithm=>:concurrently})4278 -> 0.0023s4279-- add_index("ci_build_trace_chunks", [:build_id_convert_to_bigint, :chunk_index], {:unique=>true, :name=>"i_ci_build_trace_chunks_build_id_convert_to_bigint_chunk_index", :algorithm=>:concurrently})4280 -> 0.0015s4281-- transaction_open?()4282 -> 0.0000s4283-- foreign_keys("ci_build_trace_chunks")4284 -> 0.0036s4285-- execute("ALTER TABLE ci_build_trace_chunks\nADD CONSTRAINT fk_rails_1013b761f2_tmp\nFOREIGN KEY (build_id_convert_to_bigint)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n")4286 -> 0.0014s4287-- execute("ALTER TABLE ci_build_trace_chunks VALIDATE CONSTRAINT fk_rails_1013b761f2_tmp;")4288 -> 0.0017s4289-- execute("LOCK TABLE ci_build_trace_chunks, ci_builds IN ACCESS EXCLUSIVE MODE")4290 -> 0.0005s4291-- quote_table_name("ci_build_trace_chunks")4292 -> 0.0000s4293-- quote_column_name(:build_id)4294 -> 0.0000s4295-- quote_column_name("build_id_tmp")4296 -> 0.0000s4297-- execute("ALTER TABLE \"ci_build_trace_chunks\" RENAME COLUMN \"build_id\" TO \"build_id_tmp\"")4298 -> 0.0008s4299-- quote_table_name("ci_build_trace_chunks")4300 -> 0.0000s4301-- quote_column_name(:build_id_convert_to_bigint)4302 -> 0.0000s4303-- quote_column_name(:build_id)4304 -> 0.0000s4305-- execute("ALTER TABLE \"ci_build_trace_chunks\" RENAME COLUMN \"build_id_convert_to_bigint\" TO \"build_id\"")4306 -> 0.0006s4307-- quote_table_name("ci_build_trace_chunks")4308 -> 0.0000s4309-- quote_column_name("build_id_tmp")4310 -> 0.0000s4311-- quote_column_name(:build_id_convert_to_bigint)4312 -> 0.0000s4313-- execute("ALTER TABLE \"ci_build_trace_chunks\" RENAME COLUMN \"build_id_tmp\" TO \"build_id_convert_to_bigint\"")4314 -> 0.0005s4315-- quote_table_name("trigger_cf2f9e35f002")4316 -> 0.0000s4317-- execute("ALTER FUNCTION \"trigger_cf2f9e35f002\" RESET ALL")4318 -> 0.0005s4319-- change_column_default("ci_build_trace_chunks", :build_id, nil)4320 -> 0.0026s4321-- change_column_default("ci_build_trace_chunks", :build_id_convert_to_bigint, 0)4322 -> 0.0024s4323-- execute("DROP INDEX index_ci_build_trace_chunks_on_build_id_and_chunk_index")4324 -> 0.0007s4325-- rename_index("ci_build_trace_chunks", "i_ci_build_trace_chunks_build_id_convert_to_bigint_chunk_index", "index_ci_build_trace_chunks_on_build_id_and_chunk_index")4326 -> 0.0006s4327-- remove_foreign_key("ci_build_trace_chunks", {:name=>"fk_rails_1013b761f2"})4328 -> 0.0048s4329-- quote_table_name("ci_build_trace_chunks")4330 -> 0.0000s4331-- quote_column_name("fk_rails_1013b761f2_tmp")4332 -> 0.0000s4333-- quote_column_name("fk_rails_1013b761f2")4334 -> 0.0000s4335-- execute("ALTER TABLE \"ci_build_trace_chunks\"\nRENAME CONSTRAINT \"fk_rails_1013b761f2_tmp\" TO \"fk_rails_1013b761f2\"\n")4336 -> 0.0006s4337== 20210714015537 FinalizeCiBuildTraceChunksBigintConversion: migrated (0.0384s) 4338== 20210714043818 AddIndexForLabelAppliedToIssuableSla: migrating =============4339-- transaction_open?()4340 -> 0.0000s4341-- index_exists?(:issuable_slas, [:due_at, :id], {:name=>"index_issuable_slas_on_due_at_id_label_applied_issuable_closed", :where=>"label_applied = FALSE AND issuable_closed = FALSE", :algorithm=>:concurrently})4342 -> 0.0024s4343-- add_index(:issuable_slas, [:due_at, :id], {:name=>"index_issuable_slas_on_due_at_id_label_applied_issuable_closed", :where=>"label_applied = FALSE AND issuable_closed = FALSE", :algorithm=>:concurrently})4344 -> 0.0017s4345== 20210714043818 AddIndexForLabelAppliedToIssuableSla: migrated (0.0060s) ====4346== 20210714120600 AddDetectedAtToVulnerabilities: migrating ===================4347-- add_column(:vulnerabilities, :detected_at, :datetime_with_timezone)4348 -> 0.0010s4349-- change_column_default(:vulnerabilities, :detected_at, #<Proc:0x00007f814979c7d8 /builds/gitlab-org/gitlab/db/migrate/20210714120600_add_detected_at_to_vulnerabilities.rb:9 (lambda)>)4350 -> 0.0046s4351== 20210714120600 AddDetectedAtToVulnerabilities: migrated (0.0089s) ==========4352== 20210715074359 AddForeignKeyToDastProfileSchedulesOnDastProfile: migrating =4353-- transaction_open?()4354 -> 0.0000s4355-- foreign_keys(:dast_profile_schedules)4356 -> 0.0036s4357-- execute("ALTER TABLE dast_profile_schedules\nADD CONSTRAINT fk_61d52aa0e7\nFOREIGN KEY (dast_profile_id)\nREFERENCES dast_profiles (id)\nON DELETE CASCADE\nNOT VALID;\n")4358 -> 0.0015s4359-- execute("ALTER TABLE dast_profile_schedules VALIDATE CONSTRAINT fk_61d52aa0e7;")4360 -> 0.0014s4361== 20210715074359 AddForeignKeyToDastProfileSchedulesOnDastProfile: migrated (0.0107s) 4362== 20210715074933 AddForeignKeyToDastProfileSchedulesOnUser: migrating ========4363-- transaction_open?()4364 -> 0.0000s4365-- foreign_keys(:dast_profile_schedules)4366 -> 0.0038s4367-- execute("ALTER TABLE dast_profile_schedules\nADD CONSTRAINT fk_aef03d62e5\nFOREIGN KEY (user_id)\nREFERENCES users (id)\nON DELETE SET NULL\nNOT VALID;\n")4368 -> 0.0018s4369-- execute("ALTER TABLE dast_profile_schedules VALIDATE CONSTRAINT fk_aef03d62e5;")4370 -> 0.0017s4371== 20210715074933 AddForeignKeyToDastProfileSchedulesOnUser: migrated (0.0115s) 4372== 20210715075203 AddForeignKeyToDastProfileSchedulesOnProject: migrating =====4373-- transaction_open?()4374 -> 0.0000s4375-- foreign_keys(:dast_profile_schedules)4376 -> 0.0037s4377-- execute("ALTER TABLE dast_profile_schedules\nADD CONSTRAINT fk_6cca0d8800\nFOREIGN KEY (project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n")4378 -> 0.0020s4379-- execute("ALTER TABLE dast_profile_schedules VALIDATE CONSTRAINT fk_6cca0d8800;")4380 -> 0.0019s4381== 20210715075203 AddForeignKeyToDastProfileSchedulesOnProject: migrated (0.0115s) 4382== 20210716074555 RevertDefaultJobTokenScope: migrating =======================4383-- change_column_default(:project_ci_cd_settings, :job_token_scope_enabled, {:from=>true, :to=>false})4384 -> 0.0027s4385== 20210716074555 RevertDefaultJobTokenScope: migrated (0.0056s) ==============4386== 20210719145532 AddForeignKeysView: migrating ===============================4387-- execute("CREATE OR REPLACE VIEW postgres_foreign_keys AS\nSELECT\n pg_constraint.oid AS oid,\n pg_constraint.conname AS name,\n constrained_namespace.nspname::text || '.'::text || constrained_table.relname::text AS constrained_table_identifier,\n referenced_namespace.nspname::text || '.'::text || referenced_table.relname::text AS referenced_table_identifier\nFROM pg_constraint\n INNER JOIN pg_class constrained_table ON constrained_table.oid = pg_constraint.conrelid\n INNER JOIN pg_class referenced_table ON referenced_table.oid = pg_constraint.confrelid\n INNER JOIN pg_namespace constrained_namespace ON constrained_table.relnamespace = constrained_namespace.oid\n INNER JOIN pg_namespace referenced_namespace ON referenced_table.relnamespace = referenced_namespace.oid\nWHERE contype = 'f';\n")4388 -> 0.0034s4389== 20210719145532 AddForeignKeysView: migrated (0.0036s) ======================4390== 20210719182944 AddRequestResponseToSupporingMessage: migrating =============4391-- change_column_null(:vulnerability_finding_evidence_requests, :vulnerability_finding_evidence_id, true)4392 -> 0.0011s4393-- change_column_null(:vulnerability_finding_evidence_responses, :vulnerability_finding_evidence_id, true)4394 -> 0.0007s4395-- add_reference(:vulnerability_finding_evidence_requests, :vulnerability_finding_evidence_supporting_message, {:index=>{:name=>"finding_evidence_requests_on_supporting_evidence_id"}, :foreign_key=>{:on_delete=>:cascade}})4396 -> 0.0032s4397-- add_reference(:vulnerability_finding_evidence_responses, :vulnerability_finding_evidence_supporting_message, {:index=>{:name=>"finding_evidence_responses_on_supporting_evidence_id"}, :foreign_key=>{:on_delete=>:cascade}})4398 -> 0.0028s4399== 20210719182944 AddRequestResponseToSupporingMessage: migrated (0.0081s) ====4400== 20210719192928 AddInviteEmailSuccessToMember: migrating ====================4401== 20210719192928 AddInviteEmailSuccessToMember: migrated (0.0000s) ===========4402== 20210720083432 ChangeApplicationSettingTermsNotNull: migrating =============4403-- execute("UPDATE application_setting_terms SET terms = '' WHERE terms IS NULL")4404 -> 0.0010s4405-- change_column_null(:application_setting_terms, :terms, false)4406 -> 0.0006s4407== 20210720083432 ChangeApplicationSettingTermsNotNull: migrated (0.0018s) ====4408== 20210720130006 CreateErrorTrackingClientKeys: migrating ====================4409-- create_table(:error_tracking_client_keys, {})4410-- quote_column_name(:public_key)4411 -> 0.0000s4412 -> 0.0053s4413-- quote_table_name("check_840b719790")4414 -> 0.0000s4415-- quote_table_name(:error_tracking_client_keys)4416 -> 0.0000s4417-- execute("ALTER TABLE \"error_tracking_client_keys\"\nADD CONSTRAINT \"check_840b719790\" CHECK (char_length(\"public_key\") <= 255)\n")4418 -> 0.0007s4419== 20210720130006 CreateErrorTrackingClientKeys: migrated (0.0089s) ===========4420== 20210720140841 CreatePostgresAsyncIndexesTable: migrating ==================4421-- create_table(:postgres_async_indexes, {})4422-- quote_column_name(:name)4423 -> 0.0000s4424-- quote_column_name(:definition)4425 -> 0.0000s4426-- quote_column_name(:table_name)4427 -> 0.0000s4428 -> 0.0036s4429-- quote_table_name("check_b732c6cd1d")4430 -> 0.0000s4431-- quote_table_name("check_083b21157b")4432 -> 0.0000s4433-- quote_table_name("check_e64ff4359e")4434 -> 0.0000s4435-- quote_table_name(:postgres_async_indexes)4436 -> 0.0000s4437-- execute("ALTER TABLE \"postgres_async_indexes\"\nADD CONSTRAINT \"check_b732c6cd1d\" CHECK (char_length(\"name\") <= 63),\nADD CONSTRAINT \"check_083b21157b\" CHECK (char_length(\"definition\") <= 2048),\nADD CONSTRAINT \"check_e64ff4359e\" CHECK (char_length(\"table_name\") <= 63)\n")4438 -> 0.0010s4439== 20210720140841 CreatePostgresAsyncIndexesTable: migrated (0.0075s) =========4440== 20210721122840 RemoveSeatLinkEnabledFromApplicationSettings: migrating =====4441-- remove_column(:application_settings, :seat_link_enabled)4442 -> 0.0023s4443== 20210721122840 RemoveSeatLinkEnabledFromApplicationSettings: migrated (0.0024s) 4444== 20210721125525 AddSignedFileToPackagesDebianProjectDistributions: migrating 4445-- add_column(:packages_debian_project_distributions, :signed_file, :text)4446 -> 0.0012s4447-- add_column(:packages_debian_project_distributions, :signed_file_store, :integer, {:limit=>2, :default=>1, :null=>false})4448 -> 0.0012s4449== 20210721125525 AddSignedFileToPackagesDebianProjectDistributions: migrated (0.0026s) 4450== 20210721125545 AddSignedFileToPackagesDebianGroupDistributions: migrating ==4451-- add_column(:packages_debian_group_distributions, :signed_file, :text)4452 -> 0.0011s4453-- add_column(:packages_debian_group_distributions, :signed_file_store, :integer, {:limit=>2, :default=>1, :null=>false})4454 -> 0.0011s4455== 20210721125545 AddSignedFileToPackagesDebianGroupDistributions: migrated (0.0023s) 4456== 20210721125620 AddTextLimitToPackagesDebianProjectDistributionsSignedFiles: migrating 4457-- transaction_open?()4458 -> 0.0000s4459-- current_schema()4460 -> 0.0005s4461-- execute("ALTER TABLE packages_debian_project_distributions\nADD CONSTRAINT check_9e5e22b7ff\nCHECK ( char_length(signed_file) <= 255 )\nNOT VALID;\n")4462 -> 0.0008s4463-- current_schema()4464 -> 0.0004s4465-- execute("ALTER TABLE packages_debian_project_distributions VALIDATE CONSTRAINT check_9e5e22b7ff;")4466 -> 0.0008s4467== 20210721125620 AddTextLimitToPackagesDebianProjectDistributionsSignedFiles: migrated (0.0075s) 4468== 20210721125637 AddTextLimitToPackagesDebianGroupDistributionsSignedFiles: migrating 4469-- transaction_open?()4470 -> 0.0000s4471-- current_schema()4472 -> 0.0004s4473-- execute("ALTER TABLE packages_debian_group_distributions\nADD CONSTRAINT check_0007e0bf61\nCHECK ( char_length(signed_file) <= 255 )\nNOT VALID;\n")4474 -> 0.0009s4475-- current_schema()4476 -> 0.0004s4477-- execute("ALTER TABLE packages_debian_group_distributions VALIDATE CONSTRAINT check_0007e0bf61;")4478 -> 0.0007s4479== 20210721125637 AddTextLimitToPackagesDebianGroupDistributionsSignedFiles: migrated (0.0084s) 4480== 20210721125804 RemoveSigningKeysFromPackagesDebianProjectDistributions: migrating 4481-- remove_column(:packages_debian_project_distributions, :encrypted_signing_keys, :text)4482 -> 0.0012s4483-- remove_column(:packages_debian_project_distributions, :encrypted_signing_keys_iv, :text)4484 -> 0.0008s4485== 20210721125804 RemoveSigningKeysFromPackagesDebianProjectDistributions: migrated (0.0022s) 4486== 20210721125820 RemoveSigningKeysFromPackagesDebianGroupDistributions: migrating 4487-- remove_column(:packages_debian_group_distributions, :encrypted_signing_keys, :text)4488 -> 0.0011s4489-- remove_column(:packages_debian_group_distributions, :encrypted_signing_keys_iv, :text)4490 -> 0.0007s4491== 20210721125820 RemoveSigningKeysFromPackagesDebianGroupDistributions: migrated (0.0020s) 4492== 20210721134706 AddTypeNewToIntegrations: migrating =========================4493-- add_column(:integrations, :type_new, :text)4494 -> 0.0012s4495== 20210721134706 AddTypeNewToIntegrations: migrated (0.0014s) ================4496== 20210721134707 AddTextLimitToIntegrationsTypeNew: migrating ================4497-- transaction_open?()4498 -> 0.0000s4499-- current_schema()4500 -> 0.0004s4501-- execute("ALTER TABLE integrations\nADD CONSTRAINT check_a948a0aa7e\nCHECK ( char_length(type_new) <= 255 )\nNOT VALID;\n")4502 -> 0.0009s4503-- current_schema()4504 -> 0.0004s4505-- execute("ALTER TABLE integrations VALIDATE CONSTRAINT check_a948a0aa7e;")4506 -> 0.0007s4507== 20210721134707 AddTextLimitToIntegrationsTypeNew: migrated (0.0078s) =======4508== 20210721135638 AddTriggersToIntegrationsTypeNew: migrating =================4509-- execute("CREATE OR REPLACE FUNCTION integrations_set_type_new()\nRETURNS TRIGGER AS\n$$\nBEGIN\nWITH mapping(old_type, new_type) AS (VALUES\n ('AsanaService', 'Integrations::Asana'),\n ('AssemblaService', 'Integrations::Assembla'),\n ('BambooService', 'Integrations::Bamboo'),\n ('BugzillaService', 'Integrations::Bugzilla'),\n ('BuildkiteService', 'Integrations::Buildkite'),\n ('CampfireService', 'Integrations::Campfire'),\n ('ConfluenceService', 'Integrations::Confluence'),\n ('CustomIssueTrackerService', 'Integrations::CustomIssueTracker'),\n ('DatadogService', 'Integrations::Datadog'),\n ('DiscordService', 'Integrations::Discord'),\n ('DroneCiService', 'Integrations::DroneCi'),\n ('EmailsOnPushService', 'Integrations::EmailsOnPush'),\n ('EwmService', 'Integrations::Ewm'),\n ('ExternalWikiService', 'Integrations::ExternalWiki'),\n ('FlowdockService', 'Integrations::Flowdock'),\n ('HangoutsChatService', 'Integrations::HangoutsChat'),\n ('IrkerService', 'Integrations::Irker'),\n ('JenkinsService', 'Integrations::Jenkins'),\n ('JiraService', 'Integrations::Jira'),\n ('MattermostService', 'Integrations::Mattermost'),\n ('MattermostSlashCommandsService', 'Integrations::MattermostSlashCommands'),\n ('MicrosoftTeamsService', 'Integrations::MicrosoftTeams'),\n ('MockCiService', 'Integrations::MockCi'),\n ('MockMonitoringService', 'Integrations::MockMonitoring'),\n ('PackagistService', 'Integrations::Packagist'),\n ('PipelinesEmailService', 'Integrations::PipelinesEmail'),\n ('PivotaltrackerService', 'Integrations::Pivotaltracker'),\n ('PrometheusService', 'Integrations::Prometheus'),\n ('PushoverService', 'Integrations::Pushover'),\n ('RedmineService', 'Integrations::Redmine'),\n ('SlackService', 'Integrations::Slack'),\n ('SlackSlashCommandsService', 'Integrations::SlackSlashCommands'),\n ('TeamcityService', 'Integrations::Teamcity'),\n ('UnifyCircuitService', 'Integrations::UnifyCircuit'),\n ('YoutrackService', 'Integrations::Youtrack'),\n ('WebexTeamsService', 'Integrations::WebexTeams'),\n\n -- EE-only integrations\n ('GithubService', 'Integrations::Github'),\n ('GitlabSlackApplicationService', 'Integrations::GitlabSlackApplication')\n)\n\nUPDATE integrations SET type_new = mapping.new_type\nFROM mapping\nWHERE integrations.id = NEW.id\n AND mapping.old_type = NEW.type;\nRETURN NULL;\n\nEND\n$$ LANGUAGE PLPGSQL\n")4510 -> 0.0012s4511-- execute("CREATE TRIGGER trigger_type_new_on_insert\nAFTER INSERT ON integrations\nFOR EACH ROW\nEXECUTE FUNCTION integrations_set_type_new();\n")4512 -> 0.0008s4513== 20210721135638 AddTriggersToIntegrationsTypeNew: migrated (0.0023s) ========4514== 20210721145029 AddStateToMembers: migrating ================================4515== 20210721145029 AddStateToMembers: migrated (0.0000s) =======================4516== 20210721174411 AddIsRemovedToEscalationRules: migrating ====================4517-- add_column(:incident_management_escalation_rules, :is_removed, :boolean, {:null=>false, :default=>false})4518 -> 0.0016s4519== 20210721174411 AddIsRemovedToEscalationRules: migrated (0.0016s) ===========4520== 20210721174441 UpdateEscalationRuleFkForPendingAlertEscalations: migrating =4521-- foreign_keys(:incident_management_pending_alert_escalations)4522 -> 0.0034s4523-- remove_foreign_key(:incident_management_pending_alert_escalations, :incident_management_escalation_rules, {:name=>"fk_rails_057c1e3d87"})4524 -> 0.0040s4525-- transaction_open?()4526 -> 0.0000s4527-- foreign_keys(:incident_management_pending_alert_escalations)4528 -> 0.0033s4529-- add_foreign_key(:incident_management_pending_alert_escalations, :incident_management_escalation_rules, {:column=>:rule_id, :on_delete=>:cascade, :name=>"fk_rails_f3d17bc8af", :validate=>true})4530 -> 0.0012s4531== 20210721174441 UpdateEscalationRuleFkForPendingAlertEscalations: migrated (0.0282s) 4532== 20210721174453 RemoveScheduleAndStatusNullConstraintsFromPendingEscalationsAlert: migrating 4533-- change_column_null(:incident_management_pending_alert_escalations, :status, true)4534 -> 0.0009s4535-- change_column_null(:incident_management_pending_alert_escalations, :schedule_id, true)4536 -> 0.0007s4537== 20210721174453 RemoveScheduleAndStatusNullConstraintsFromPendingEscalationsAlert: migrated (0.0048s) 4538== 20210721174521 AddNonNullConstraintForEscalationRuleOnPendingAlertEscalations: migrating 4539-- exec_query("INSERT INTO incident_management_escalation_rules (policy_id, oncall_schedule_id, status, elapsed_time_seconds, is_removed)\nSELECT\n policies.id,\n schedule_id,\n status,\n ABS(ROUND(\n EXTRACT(EPOCH FROM (escalations.process_at - escalations.created_at))/60*60\n))\n AS elapsed_time_seconds,\n TRUE\nFROM incident_management_pending_alert_escalations AS escalations\nINNER JOIN incident_management_oncall_schedules AS schedules ON schedules.id = schedule_id\nINNER JOIN incident_management_escalation_policies AS policies ON policies.project_id = schedules.project_id\nWHERE rule_id IS NULL\nGROUP BY policies.id, schedule_id, status, elapsed_time_seconds\nON CONFLICT DO NOTHING;\n")4540 -> 0.0019s4541-- exec_query("UPDATE incident_management_pending_alert_escalations AS escalations\nSET rule_id = rules.id\nFROM incident_management_pending_alert_escalations AS through_escalations\nINNER JOIN incident_management_oncall_schedules AS schedules ON schedules.id = through_escalations.schedule_id\nINNER JOIN incident_management_escalation_policies AS policies ON policies.project_id = schedules.project_id\nINNER JOIN incident_management_escalation_rules AS rules ON rules.policy_id = policies.id\nWHERE escalations.rule_id IS NULL\nAND rules.status = escalations.status\nAND rules.oncall_schedule_id = escalations.schedule_id\nAND rules.elapsed_time_seconds = ABS(ROUND(\n EXTRACT(EPOCH FROM (escalations.process_at - escalations.created_at))/60*60\n))\n;\n")4542 -> 0.0011s4543-- exec_query("DELETE FROM incident_management_pending_alert_escalations WHERE rule_id IS NULL;")4544 -> 0.0006s4545-- change_column_null(:incident_management_pending_alert_escalations, :rule_id, false)4546 -> 0.0006s4547== 20210721174521 AddNonNullConstraintForEscalationRuleOnPendingAlertEscalations: migrated (0.0048s) 4548== 20210721211602 AddVulnerabilityAmountColumnIntoApprovalProjectRules: migrating 4549-- add_column(:approval_project_rules, :vulnerabilities_allowed, :integer, {:limit=>2})4550 -> 0.0013s4551== 20210721211602 AddVulnerabilityAmountColumnIntoApprovalProjectRules: migrated (0.0015s) 4552== 20210722010101 RescheduleDeleteOrphanedDeployments: migrating ==============4553-- Scheduled 0 DeleteOrphanedDeployments jobs with a maximum of 10000 records per batch and an interval of 120 seconds.4554The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:15 UTC."4555== 20210722010101 RescheduleDeleteOrphanedDeployments: migrated (0.0074s) =====4556== 20210722042939 UpdateIssuableSlasWhereIssueClosed: migrating ===============4557== 20210722042939 UpdateIssuableSlasWhereIssueClosed: migrated (0.0048s) ======4558== 20210722055217 AddUpdatedAtIndexOnMergeRequests: migrating =================4559-- transaction_open?()4560 -> 0.0001s4561-- index_exists?(:merge_requests, [:target_project_id, :updated_at, :id], {:name=>"index_merge_requests_on_target_project_id_and_updated_at_and_id", :algorithm=>:concurrently})4562 -> 0.0186s4563-- add_index(:merge_requests, [:target_project_id, :updated_at, :id], {:name=>"index_merge_requests_on_target_project_id_and_updated_at_and_id", :algorithm=>:concurrently})4564 -> 0.0019s4565== 20210722055217 AddUpdatedAtIndexOnMergeRequests: migrated (0.0280s) ========4566== 20210722074220 RemoveNullConstraintOnScheduleFromEscalationRules: migrating 4567-- change_column_null(:incident_management_escalation_rules, :oncall_schedule_id, true)4568 -> 0.0016s4569== 20210722074220 RemoveNullConstraintOnScheduleFromEscalationRules: migrated (0.0018s) 4570== 20210722074242 AddUserToEscalationRules: migrating =========================4571-- add_column(:incident_management_escalation_rules, :user_id, :bigint, {:null=>true})4572 -> 0.0012s4573== 20210722074242 AddUserToEscalationRules: migrated (0.0051s) ================4574== 20210722074256 AddUserIndexToEscalationRules: migrating ====================4575-- transaction_open?()4576 -> 0.0000s4577-- indexes(:incident_management_escalation_rules)4578 -> 0.0031s4579-- remove_index(:incident_management_escalation_rules, {:algorithm=>:concurrently, :name=>"index_on_policy_schedule_status_elapsed_time_escalation_rules"})4580 -> 0.0015s4581-- transaction_open?()4582 -> 0.0000s4583-- index_exists?(:incident_management_escalation_rules, :user_id, {:name=>"index_escalation_rules_on_user", :algorithm=>:concurrently})4584 -> 0.0022s4585-- add_index(:incident_management_escalation_rules, :user_id, {:name=>"index_escalation_rules_on_user", :algorithm=>:concurrently})4586 -> 0.0016s4587-- transaction_open?()4588 -> 0.0000s4589-- index_exists?(:incident_management_escalation_rules, [:policy_id, :oncall_schedule_id, :status, :elapsed_time_seconds, :user_id], {:unique=>true, :name=>"index_escalation_rules_on_all_attributes", :algorithm=>:concurrently})4590 -> 0.0027s4591-- add_index(:incident_management_escalation_rules, [:policy_id, :oncall_schedule_id, :status, :elapsed_time_seconds, :user_id], {:unique=>true, :name=>"index_escalation_rules_on_all_attributes", :algorithm=>:concurrently})4592 -> 0.0021s4593== 20210722074256 AddUserIndexToEscalationRules: migrated (0.0252s) ===========4594== 20210722074309 AddUserFkToEscalationRules: migrating =======================4595-- transaction_open?()4596 -> 0.0000s4597-- foreign_keys(:incident_management_escalation_rules)4598 -> 0.0031s4599-- execute("ALTER TABLE incident_management_escalation_rules\nADD CONSTRAINT fk_0314ee86eb\nFOREIGN KEY (user_id)\nREFERENCES users (id)\nON DELETE CASCADE\nNOT VALID;\n")4600 -> 0.0018s4601-- execute("ALTER TABLE incident_management_escalation_rules VALIDATE CONSTRAINT fk_0314ee86eb;")4602 -> 0.0017s4603== 20210722074309 AddUserFkToEscalationRules: migrated (0.0116s) ==============4604== 20210722074339 AddXorCheckConstraintForEscalationRules: migrating ==========4605-- transaction_open?()4606 -> 0.0001s4607-- current_schema()4608 -> 0.0005s4609-- execute("ALTER TABLE incident_management_escalation_rules\nADD CONSTRAINT escalation_rules_one_of_oncall_schedule_or_user\nCHECK ( num_nonnulls(oncall_schedule_id, user_id) = 1 )\nNOT VALID;\n")4610 -> 0.0009s4611-- current_schema()4612 -> 0.0005s4613-- execute("ALTER TABLE incident_management_escalation_rules VALIDATE CONSTRAINT escalation_rules_one_of_oncall_schedule_or_user;")4614 -> 0.0008s4615== 20210722074339 AddXorCheckConstraintForEscalationRules: migrated (0.0092s) =4616== 20210722110515 RevertBackfillCiBuildTraceSectionsForBigintConversion: migrating 4617-- execute("DELETE FROM batched_background_migrations WHERE job_class_name = 'CopyColumnUsingBackgroundMigrationJob' AND table_name = 'ci_build_trace_sections' AND column_name = 'build_id' AND job_arguments = '[[\"build_id\"],[\"build_id_convert_to_bigint\"]]'")4618 -> 0.0011s4619== 20210722110515 RevertBackfillCiBuildTraceSectionsForBigintConversion: migrated (0.0016s) 4620== 20210722132844 DevopsAdoptionDropRedundantIndexes: migrating ===============4621-- transaction_open?()4622 -> 0.0000s4623-- indexes(:ci_job_artifacts)4624 -> 0.0064s4625-- remove_index(:ci_job_artifacts, {:algorithm=>:concurrently, :name=>"index_ci_job_artifacts_sast_for_devops_adoption"})4626 -> 0.0013s4627-- transaction_open?()4628 -> 0.0000s4629-- indexes(:ci_job_artifacts)4630 -> 0.0059s4631-- remove_index(:ci_job_artifacts, {:algorithm=>:concurrently, :name=>"index_ci_job_artifacts_dast_for_devops_adoption"})4632 -> 0.0013s4633== 20210722132844 DevopsAdoptionDropRedundantIndexes: migrated (0.0213s) ======4634== 20210722150102 OperationsFeatureFlagsCorrectFlexibleRolloutValues: migrating 4635-- quote_string("userId")4636 -> 0.0000s4637-- quote_string("USERID")4638 -> 0.0000s4639-- execute(" UPDATE operations_strategies\n SET parameters = parameters || jsonb_build_object('stickiness', 'userId')\n WHERE name = 'flexibleRollout' AND parameters->>'stickiness' = 'USERID'\n")4640 -> 0.0014s4641-- quote_string("random")4642 -> 0.0000s4643-- quote_string("RANDOM")4644 -> 0.0000s4645-- execute(" UPDATE operations_strategies\n SET parameters = parameters || jsonb_build_object('stickiness', 'random')\n WHERE name = 'flexibleRollout' AND parameters->>'stickiness' = 'RANDOM'\n")4646 -> 0.0006s4647-- quote_string("sessionId")4648 -> 0.0000s4649-- quote_string("SESSIONID")4650 -> 0.0000s4651-- execute(" UPDATE operations_strategies\n SET parameters = parameters || jsonb_build_object('stickiness', 'sessionId')\n WHERE name = 'flexibleRollout' AND parameters->>'stickiness' = 'SESSIONID'\n")4652 -> 0.0006s4653-- quote_string("default")4654 -> 0.0000s4655-- quote_string("DEFAULT")4656 -> 0.0000s4657-- execute(" UPDATE operations_strategies\n SET parameters = parameters || jsonb_build_object('stickiness', 'default')\n WHERE name = 'flexibleRollout' AND parameters->>'stickiness' = 'DEFAULT'\n")4658 -> 0.0008s4659== 20210722150102 OperationsFeatureFlagsCorrectFlexibleRolloutValues: migrated (0.0043s) 4660== 20210722151951 AddColumnsToSecurityScans: migrating ========================4661-- add_column(:security_scans, :project_id, :bigint)4662 -> 0.0009s4663-- add_column(:security_scans, :pipeline_id, :bigint)4664 -> 0.0007s4665== 20210722151951 AddColumnsToSecurityScans: migrated (0.0046s) ===============4666== 20210722155635 FinalizeConvertGeoJobArtifactDeletedEventsBigint: migrating =4667-- transaction_open?()4668 -> 0.0000s4669-- index_exists?("geo_job_artifact_deleted_events", "job_artifact_id_convert_to_bigint", {:name=>"index_geo_job_artifact_deleted_events_on_job_artifact_id_bigint", :algorithm=>:concurrently})4670 -> 0.0019s4671-- add_index("geo_job_artifact_deleted_events", "job_artifact_id_convert_to_bigint", {:name=>"index_geo_job_artifact_deleted_events_on_job_artifact_id_bigint", :algorithm=>:concurrently})4672 -> 0.0015s4673-- execute("LOCK TABLE geo_job_artifact_deleted_events IN ACCESS EXCLUSIVE MODE")4674 -> 0.0007s4675-- quote_column_name("job_artifact_id_tmp")4676 -> 0.0000s4677-- quote_column_name("job_artifact_id")4678 -> 0.0001s4679-- quote_column_name("job_artifact_id_convert_to_bigint")4680 -> 0.0000s4681-- execute("ALTER TABLE geo_job_artifact_deleted_events RENAME COLUMN \"job_artifact_id\" TO \"job_artifact_id_tmp\"")4682 -> 0.0008s4683-- execute("ALTER TABLE geo_job_artifact_deleted_events RENAME COLUMN \"job_artifact_id_convert_to_bigint\" TO \"job_artifact_id\"")4684 -> 0.0006s4685-- execute("ALTER TABLE geo_job_artifact_deleted_events RENAME COLUMN \"job_artifact_id_tmp\" TO \"job_artifact_id_convert_to_bigint\"")4686 -> 0.0006s4687-- change_column_default("geo_job_artifact_deleted_events", "job_artifact_id", nil)4688 -> 0.0023s4689-- change_column_default("geo_job_artifact_deleted_events", "job_artifact_id_convert_to_bigint", 0)4690 -> 0.0028s4691-- quote_table_name("trigger_f1ca8ec18d78")4692 -> 0.0000s4693-- execute("ALTER FUNCTION \"trigger_f1ca8ec18d78\" RESET ALL")4694 -> 0.0006s4695-- execute("DROP INDEX index_geo_job_artifact_deleted_events_on_job_artifact_id")4696 -> 0.0007s4697-- rename_index("geo_job_artifact_deleted_events", "index_geo_job_artifact_deleted_events_on_job_artifact_id_bigint", "index_geo_job_artifact_deleted_events_on_job_artifact_id")4698 -> 0.0007s4699== 20210722155635 FinalizeConvertGeoJobArtifactDeletedEventsBigint: migrated (0.0237s) 4700== 20210722210041 AddOverriddenUuidToSecurityFindings: migrating ==============4701-- add_column(:security_findings, :overridden_uuid, :uuid, {:null=>true})4702 -> 0.0011s4703== 20210722210041 AddOverriddenUuidToSecurityFindings: migrated (0.0046s) =====4704== 20210723173132 CreateIndexOnEnvironmentsAutoDeleteAt: migrating ============4705-- transaction_open?()4706 -> 0.0000s4707-- index_exists?(:environments, [:auto_delete_at], {:where=>"auto_delete_at IS NOT NULL AND state = 'stopped'", :name=>"index_environments_on_state_and_auto_delete_at", :algorithm=>:concurrently})4708 -> 0.0050s4709-- add_index(:environments, [:auto_delete_at], {:where=>"auto_delete_at IS NOT NULL AND state = 'stopped'", :name=>"index_environments_on_state_and_auto_delete_at", :algorithm=>:concurrently})4710 -> 0.0017s4711== 20210723173132 CreateIndexOnEnvironmentsAutoDeleteAt: migrated (0.0109s) ===4712== 20210726134950 AddIntegratedToErrorTrackingSetting: migrating ==============4713-- add_column(:project_error_tracking_settings, :integrated, :boolean, {:null=>false, :default=>false})4714 -> 0.0018s4715== 20210726134950 AddIntegratedToErrorTrackingSetting: migrated (0.0020s) =====4716== 20210726202748 AddVulnerabilitySeveritiesIntoApprovalProjectRules: migrating 4717-- add_column(:approval_project_rules, :severity_levels, :text, {:array=>true, :null=>false, :default=>[]})4718 -> 0.0018s4719== 20210726202748 AddVulnerabilitySeveritiesIntoApprovalProjectRules: migrated (0.0019s) 4720== 20210727113447 BackfillIntegrationsTypeNew: migrating ======================4721== 20210727113447 BackfillIntegrationsTypeNew: migrated (0.0087s) =============4722== 20210727175201 RemoveUnusedColumnsFromElasticReindexingTasks: migrating ====4723-- remove_column(:elastic_reindexing_tasks, :documents_count, :integer)4724 -> 0.0008s4725-- remove_column(:elastic_reindexing_tasks, :index_name_from, :text)4726 -> 0.0008s4727-- remove_column(:elastic_reindexing_tasks, :index_name_to, :text)4728 -> 0.0008s4729-- remove_column(:elastic_reindexing_tasks, :elastic_task, :text)4730 -> 0.0008s4731-- remove_column(:elastic_reindexing_tasks, :documents_count_target, :integer)4732 -> 0.0007s4733== 20210727175201 RemoveUnusedColumnsFromElasticReindexingTasks: migrated (0.0044s) 4734== 20210728110654 AddStatusToErrorTrackingError: migrating ====================4735-- add_column(:error_tracking_errors, :status, :integer, {:null=>false, :default=>0, :limit=>2})4736 -> 0.0020s4737== 20210728110654 AddStatusToErrorTrackingError: migrated (0.0022s) ===========4738== 20210728174349 AddFkToSecurityScansColumns: migrating ======================4739-- transaction_open?()4740 -> 0.0000s4741-- index_exists?(:security_scans, :project_id, {:algorithm=>:concurrently})4742 -> 0.0031s4743-- add_index(:security_scans, :project_id, {:algorithm=>:concurrently})4744 -> 0.0014s4745-- index_name(:security_scans, :project_id)4746 -> 0.0000s4747-- transaction_open?()4748 -> 0.0000s4749-- foreign_keys(:security_scans)4750 -> 0.0028s4751-- execute("ALTER TABLE security_scans\nADD CONSTRAINT fk_dbc89265b9\nFOREIGN KEY (project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n")4752 -> 0.0017s4753-- execute("ALTER TABLE security_scans VALIDATE CONSTRAINT fk_dbc89265b9;")4754 -> 0.0018s4755-- transaction_open?()4756 -> 0.0000s4757-- index_exists?(:security_scans, :pipeline_id, {:algorithm=>:concurrently})4758 -> 0.0034s4759-- add_index(:security_scans, :pipeline_id, {:algorithm=>:concurrently})4760 -> 0.0014s4761-- index_name(:security_scans, :pipeline_id)4762 -> 0.0000s4763== 20210728174349 AddFkToSecurityScansColumns: migrated (0.0276s) =============4764== 20210729061526 AddPronunciationToUserDetails: migrating ====================4765-- add_column(:user_details, :pronunciation, :text, {:null=>true})4766 -> 0.0009s4767== 20210729061526 AddPronunciationToUserDetails: migrated (0.0042s) ===========4768== 20210729061556 AddTextLimitToUserDetailsPronunciation: migrating ===========4769-- transaction_open?()4770 -> 0.0000s4771-- current_schema()4772 -> 0.0005s4773-- execute("ALTER TABLE user_details\nADD CONSTRAINT check_f932ed37db\nCHECK ( char_length(pronunciation) <= 255 )\nNOT VALID;\n")4774 -> 0.0010s4775-- current_schema()4776 -> 0.0005s4777-- execute("ALTER TABLE user_details VALIDATE CONSTRAINT check_f932ed37db;")4778 -> 0.0009s4779== 20210729061556 AddTextLimitToUserDetailsPronunciation: migrated (0.0090s) ==4780== 20210729081351 CreateTopics: migrating =====================================4781-- create_table(:topics, {})4782-- quote_column_name(:name)4783 -> 0.0000s4784 -> 0.0041s4785-- quote_table_name("check_7a90d4c757")4786 -> 0.0000s4787-- quote_table_name(:topics)4788 -> 0.0000s4789-- execute("ALTER TABLE \"topics\"\nADD CONSTRAINT \"check_7a90d4c757\" CHECK (char_length(\"name\") <= 255)\n")4790 -> 0.0008s4791== 20210729081351 CreateTopics: migrated (0.0086s) ============================4792== 20210729081739 CreateProjectTopics: migrating ==============================4793-- create_table(:project_topics)4794 -> 0.0056s4795== 20210729081739 CreateProjectTopics: migrated (0.0058s) =====================4796== 20210729123101 ConfirmSecurityBot: migrating ===============================4797== 20210729123101 ConfirmSecurityBot: migrated (0.0078s) ======================4798== 20210729125641 AddForeignKeyToProjectOnProjectTopic: migrating =============4799-- transaction_open?()4800 -> 0.0000s4801-- foreign_keys(:project_topics)4802 -> 0.0031s4803-- execute("ALTER TABLE project_topics\nADD CONSTRAINT fk_db13576296\nFOREIGN KEY (project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n")4804 -> 0.0017s4805-- execute("ALTER TABLE project_topics VALIDATE CONSTRAINT fk_db13576296;")4806 -> 0.0021s4807== 20210729125641 AddForeignKeyToProjectOnProjectTopic: migrated (0.0114s) ====4808== 20210729125659 AddForeignKeyToTopicOnProjectTopic: migrating ===============4809-- transaction_open?()4810 -> 0.0000s4811-- foreign_keys(:project_topics)4812 -> 0.0031s4813-- execute("ALTER TABLE project_topics\nADD CONSTRAINT fk_34af9ab07a\nFOREIGN KEY (topic_id)\nREFERENCES topics (id)\nON DELETE CASCADE\nNOT VALID;\n")4814 -> 0.0013s4815-- execute("ALTER TABLE project_topics VALIDATE CONSTRAINT fk_34af9ab07a;")4816 -> 0.0013s4817== 20210729125659 AddForeignKeyToTopicOnProjectTopic: migrated (0.0101s) ======4818== 20210729161242 RemoveForeignKeysFromCiTestCaseFailures: migrating ==========4819-- foreign_keys(:ci_test_case_failures)4820 -> 0.0030s4821-- remove_foreign_key(:ci_test_case_failures, {:column=>:build_id})4822 -> 0.0042s4823-- foreign_keys(:ci_test_case_failures)4824 -> 0.0030s4825-- remove_foreign_key(:ci_test_case_failures, {:column=>:test_case_id})4826 -> 0.0042s4827== 20210729161242 RemoveForeignKeysFromCiTestCaseFailures: migrated (0.0210s) =4828== 20210729163312 ReScheduleLatestPipelineIdPopulationWithAllSecurityRelatedArtifactTypes: migrating 4829-- Scheduled 0 PopulateLatestPipelineIds jobs with a maximum of 100 records per batch and an interval of 120 seconds.4830The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:15 UTC."4831== 20210729163312 ReScheduleLatestPipelineIdPopulationWithAllSecurityRelatedArtifactTypes: migrated (0.0056s) 4832== 20210729192148 RemoveForeignKeysFromCiTestCases: migrating =================4833-- foreign_keys(:ci_test_cases)4834 -> 0.0034s4835-- remove_foreign_key(:ci_test_cases, {:column=>:project_id})4836 -> 0.0052s4837== 20210729192148 RemoveForeignKeysFromCiTestCases: migrated (0.0115s) ========4838== 20210729192959 DropCiTestCaseFailuresTable: migrating ======================4839-- drop_table(:ci_test_case_failures)4840 -> 0.0018s4841== 20210729192959 DropCiTestCaseFailuresTable: migrated (0.0019s) =============4842== 20210729193056 DropCiTestCasesTable: migrating =============================4843-- drop_table(:ci_test_cases)4844 -> 0.0020s4845== 20210729193056 DropCiTestCasesTable: migrated (0.0021s) ====================4846== 20210729202143 CreateIncidentManagementIssuableEscalationStatuses: migrating 4847-- create_table(:incident_management_issuable_escalation_statuses)4848 -> 0.0064s4849== 20210729202143 CreateIncidentManagementIssuableEscalationStatuses: migrated (0.0065s) 4850== 20210730101609 CreateAnalyticsCycleAnalyticsStageEventHashes: migrating ====4851-- create_table(:analytics_cycle_analytics_stage_event_hashes)4852 -> 0.0036s4853== 20210730101609 CreateAnalyticsCycleAnalyticsStageEventHashes: migrated (0.0037s) 4854== 20210730102952 AddStageHashFkToProjectStages: migrating ====================4855-- column_exists?(:analytics_cycle_analytics_project_stages, :stage_event_hash_id)4856 -> 0.0023s4857-- add_column(:analytics_cycle_analytics_project_stages, :stage_event_hash_id, :bigint)4858 -> 0.0009s4859-- transaction_open?()4860 -> 0.0000s4861-- index_exists?(:analytics_cycle_analytics_project_stages, :stage_event_hash_id, {:name=>"index_project_stages_on_stage_event_hash_id", :algorithm=>:concurrently})4862 -> 0.0043s4863-- add_index(:analytics_cycle_analytics_project_stages, :stage_event_hash_id, {:name=>"index_project_stages_on_stage_event_hash_id", :algorithm=>:concurrently})4864 -> 0.0015s4865-- transaction_open?()4866 -> 0.0000s4867-- foreign_keys(:analytics_cycle_analytics_project_stages)4868 -> 0.0034s4869-- execute("ALTER TABLE analytics_cycle_analytics_project_stages\nADD CONSTRAINT fk_c3339bdfc9\nFOREIGN KEY (stage_event_hash_id)\nREFERENCES analytics_cycle_analytics_stage_event_hashes (id)\nON DELETE CASCADE\nNOT VALID;\n")4870 -> 0.0010s4871-- execute("ALTER TABLE analytics_cycle_analytics_project_stages VALIDATE CONSTRAINT fk_c3339bdfc9;")4872 -> 0.0013s4873== 20210730102952 AddStageHashFkToProjectStages: migrated (0.0221s) ===========4874== 20210730103808 AddStageHashFkToGroupStages: migrating ======================4875-- column_exists?(:analytics_cycle_analytics_group_stages, :stage_event_hash_id)4876 -> 0.0020s4877-- add_column(:analytics_cycle_analytics_group_stages, :stage_event_hash_id, :bigint)4878 -> 0.0008s4879-- transaction_open?()4880 -> 0.0000s4881-- index_exists?(:analytics_cycle_analytics_group_stages, :stage_event_hash_id, {:name=>"index_group_stages_on_stage_event_hash_id", :algorithm=>:concurrently})4882 -> 0.0046s4883-- add_index(:analytics_cycle_analytics_group_stages, :stage_event_hash_id, {:name=>"index_group_stages_on_stage_event_hash_id", :algorithm=>:concurrently})4884 -> 0.0015s4885-- transaction_open?()4886 -> 0.0000s4887-- foreign_keys(:analytics_cycle_analytics_group_stages)4888 -> 0.0035s4889-- execute("ALTER TABLE analytics_cycle_analytics_group_stages\nADD CONSTRAINT fk_3078345d6d\nFOREIGN KEY (stage_event_hash_id)\nREFERENCES analytics_cycle_analytics_stage_event_hashes (id)\nON DELETE CASCADE\nNOT VALID;\n")4890 -> 0.0012s4891-- execute("ALTER TABLE analytics_cycle_analytics_group_stages VALIDATE CONSTRAINT fk_3078345d6d;")4892 -> 0.0013s4893== 20210730103808 AddStageHashFkToGroupStages: migrated (0.0224s) =============4894== 20210730104800 ScheduleExtractProjectTopicsIntoSeparateTable: migrating ====4895-- transaction_open?()4896 -> 0.0000s4897-- index_exists?(:taggings, :id, {:where=>"taggable_type = 'Project'", :name=>"tmp_index_taggings_on_id_where_taggable_type_project", :algorithm=>:concurrently})4898 -> 0.0035s4899-- add_index(:taggings, :id, {:where=>"taggable_type = 'Project'", :name=>"tmp_index_taggings_on_id_where_taggable_type_project", :algorithm=>:concurrently})4900 -> 0.0015s4901-- Scheduled 0 ExtractProjectTopicsIntoSeparateTable jobs with a maximum of 1000 records per batch and an interval of 120 seconds.4902The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:15 UTC."4903== 20210730104800 ScheduleExtractProjectTopicsIntoSeparateTable: migrated (0.0107s) 4904== 20210730170823 ScheduleSecuritySettingCreation: migrating ==================4905-- Scheduled 0 CreateSecuritySetting jobs with a maximum of 1000 records per batch and an interval of 300 seconds.4906The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:15 UTC."4907== 20210730170823 ScheduleSecuritySettingCreation: migrated (0.0060s) =========4908== 20210730194555 CreateIncidentManagementPendingIssueEscalations: migrating ==4909-- execute("CREATE TABLE incident_management_pending_issue_escalations (\n id bigserial NOT NULL,\n rule_id bigint NOT NULL,\n issue_id bigint NOT NULL,\n process_at timestamp with time zone NOT NULL,\n created_at timestamp with time zone NOT NULL,\n updated_at timestamp with time zone NOT NULL,\n PRIMARY KEY (id, process_at)\n) PARTITION BY RANGE (process_at);\n\nCREATE INDEX index_incident_management_pending_issue_escalations_on_issue_id\n ON incident_management_pending_issue_escalations USING btree (issue_id);\n\nCREATE INDEX index_incident_management_pending_issue_escalations_on_rule_id\n ON incident_management_pending_issue_escalations USING btree (rule_id);\n")4910 -> 0.0023s4911== 20210730194555 CreateIncidentManagementPendingIssueEscalations: migrated (0.0051s) 4912== 20210731132939 BackfillStageEventHash: migrating ===========================4913-- current_schema()4914 -> 0.0005s4915-- transaction_open?()4916 -> 0.0000s4917-- current_schema()4918 -> 0.0005s4919-- execute("ALTER TABLE analytics_cycle_analytics_group_stages\nADD CONSTRAINT check_e6bd4271b5\nCHECK ( stage_event_hash_id IS NOT NULL )\nNOT VALID;\n")4920 -> 0.0008s4921-- current_schema()4922 -> 0.0004s4923-- execute("ALTER TABLE analytics_cycle_analytics_group_stages VALIDATE CONSTRAINT check_e6bd4271b5;")4924 -> 0.0007s4925-- current_schema()4926 -> 0.0004s4927-- transaction_open?()4928 -> 0.0000s4929-- current_schema()4930 -> 0.0005s4931-- execute("ALTER TABLE analytics_cycle_analytics_project_stages\nADD CONSTRAINT check_8f6019de1e\nCHECK ( stage_event_hash_id IS NOT NULL )\nNOT VALID;\n")4932 -> 0.0007s4933-- current_schema()4934 -> 0.0004s4935-- execute("ALTER TABLE analytics_cycle_analytics_project_stages VALIDATE CONSTRAINT check_8f6019de1e;")4936 -> 0.0007s4937== 20210731132939 BackfillStageEventHash: migrated (0.0324s) ==================4938== 20210802043253 FinalizePushEventPayloadsBigintConversion3: migrating =======4939-- columns("push_event_payloads")4940 -> 0.0018s4941-- transaction_open?()4942 -> 0.0000s4943-- index_exists?("push_event_payloads", :event_id_convert_to_bigint, {:unique=>true, :name=>"index_push_event_payloads_on_event_id_convert_to_bigint", :algorithm=>:concurrently})4944 -> 0.0014s4945-- add_index("push_event_payloads", :event_id_convert_to_bigint, {:unique=>true, :name=>"index_push_event_payloads_on_event_id_convert_to_bigint", :algorithm=>:concurrently})4946 -> 0.0015s4947-- transaction_open?()4948 -> 0.0000s4949-- foreign_keys("push_event_payloads")4950 -> 0.0034s4951-- execute("LOCK TABLE events, push_event_payloads IN SHARE ROW EXCLUSIVE MODE")4952 -> 0.0005s4953-- execute("ALTER TABLE push_event_payloads\nADD CONSTRAINT fk_a5e47ac4c5\nFOREIGN KEY (event_id_convert_to_bigint)\nREFERENCES events (id)\nON DELETE CASCADE\nNOT VALID;\n")4954 -> 0.0012s4955-- execute("ALTER TABLE push_event_payloads VALIDATE CONSTRAINT fk_a5e47ac4c5;")4956 -> 0.0013s4957-- execute("LOCK TABLE events, push_event_payloads IN ACCESS EXCLUSIVE MODE")4958 -> 0.0005s4959-- quote_table_name("push_event_payloads")4960 -> 0.0000s4961-- quote_column_name(:event_id)4962 -> 0.0000s4963-- quote_column_name("event_id_tmp")4964 -> 0.0000s4965-- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id\" TO \"event_id_tmp\"")4966 -> 0.0007s4967-- quote_table_name("push_event_payloads")4968 -> 0.0000s4969-- quote_column_name(:event_id_convert_to_bigint)4970 -> 0.0000s4971-- quote_column_name(:event_id)4972 -> 0.0000s4973-- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id_convert_to_bigint\" TO \"event_id\"")4974 -> 0.0007s4975-- quote_table_name("push_event_payloads")4976 -> 0.0000s4977-- quote_column_name("event_id_tmp")4978 -> 0.0000s4979-- quote_column_name(:event_id_convert_to_bigint)4980 -> 0.0000s4981-- execute("ALTER TABLE \"push_event_payloads\" RENAME COLUMN \"event_id_tmp\" TO \"event_id_convert_to_bigint\"")4982 -> 0.0006s4983-- quote_table_name("trigger_07c94931164e")4984 -> 0.0000s4985-- execute("ALTER FUNCTION \"trigger_07c94931164e\" RESET ALL")4986 -> 0.0007s4987-- change_column_default("push_event_payloads", :event_id, nil)4988 -> 0.0025s4989-- change_column_default("push_event_payloads", :event_id_convert_to_bigint, 0)4990 -> 0.0024s4991-- execute("ALTER TABLE push_event_payloads DROP CONSTRAINT push_event_payloads_pkey")4992 -> 0.0008s4993-- rename_index("push_event_payloads", "index_push_event_payloads_on_event_id_convert_to_bigint", "push_event_payloads_pkey")4994 -> 0.0006s4995-- execute("ALTER TABLE push_event_payloads ADD CONSTRAINT push_event_payloads_pkey PRIMARY KEY USING INDEX push_event_payloads_pkey")4996 -> 0.0009s4997-- remove_foreign_key("push_event_payloads", {:name=>"fk_36c74129da"})4998 -> 0.0046s4999-- quote_table_name("push_event_payloads")5000 -> 0.0000s5001-- quote_column_name("fk_a5e47ac4c5")5002 -> 0.0000s5003-- quote_column_name("fk_36c74129da")5004 -> 0.0000s5005-- execute("ALTER TABLE \"push_event_payloads\"\nRENAME CONSTRAINT \"fk_a5e47ac4c5\" TO \"fk_36c74129da\"\n")5006 -> 0.0007s5007== 20210802043253 FinalizePushEventPayloadsBigintConversion3: migrated (0.0416s) 5008== 20210802112233 AddIndexIssuesOnProjectIdAndStateIdAndCreatedAtAndId: migrating 5009-- transaction_open?()5010 -> 0.0000s5011-- index_exists?(:issues, [:project_id, :state_id, :created_at, :id], {:name=>"index_issues_on_project_id_and_state_id_and_created_at_and_id", :algorithm=>:concurrently})5012 -> 0.0148s5013-- add_index(:issues, [:project_id, :state_id, :created_at, :id], {:name=>"index_issues_on_project_id_and_state_id_and_created_at_and_id", :algorithm=>:concurrently})5014 -> 0.0021s5015== 20210802112233 AddIndexIssuesOnProjectIdAndStateIdAndCreatedAtAndId: migrated (0.0204s) 5016== 20210802131812 FinalizeConvertDeploymentsBigint: migrating =================5017-- transaction_open?()5018 -> 0.0000s5019-- index_exists?("deployments", ["deployable_type", "deployable_id_convert_to_bigint"], {:name=>"index_deployments_on_deployable_type_and_deployable_id_bigint", :algorithm=>:concurrently})5020 -> 0.0120s5021-- add_index("deployments", ["deployable_type", "deployable_id_convert_to_bigint"], {:name=>"index_deployments_on_deployable_type_and_deployable_id_bigint", :algorithm=>:concurrently})5022 -> 0.0017s5023-- quote_column_name("deployable_id")5024 -> 0.0000s5025-- quote_column_name("deployable_id_tmp")5026 -> 0.0000s5027-- execute("ALTER TABLE deployments RENAME COLUMN \"deployable_id\" TO \"deployable_id_tmp\"")5028 -> 0.0007s5029-- quote_column_name("deployable_id_convert_to_bigint")5030 -> 0.0000s5031-- quote_column_name("deployable_id")5032 -> 0.0000s5033-- execute("ALTER TABLE deployments RENAME COLUMN \"deployable_id_convert_to_bigint\" TO \"deployable_id\"")5034 -> 0.0006s5035-- quote_column_name("deployable_id_tmp")5036 -> 0.0000s5037-- quote_column_name("deployable_id_convert_to_bigint")5038 -> 0.0000s5039-- execute("ALTER TABLE deployments RENAME COLUMN \"deployable_id_tmp\" TO \"deployable_id_convert_to_bigint\"")5040 -> 0.0006s5041-- quote_table_name("trigger_77f5e1d20482")5042 -> 0.0000s5043-- execute("ALTER FUNCTION \"trigger_77f5e1d20482\" RESET ALL")5044 -> 0.0006s5045-- execute("DROP INDEX index_deployments_on_deployable_type_and_deployable_id")5046 -> 0.0007s5047-- rename_index("deployments", "index_deployments_on_deployable_type_and_deployable_id_bigint", "index_deployments_on_deployable_type_and_deployable_id")5048 -> 0.0006s5049== 20210802131812 FinalizeConvertDeploymentsBigint: migrated (0.0263s) ========5050== 20210803110920 AddUniqueIndexToVulnerabilityFlagsTable: migrating ==========5051-- transaction_open?()5052 -> 0.0000s5053-- index_exists?(:vulnerability_flags, [:vulnerability_occurrence_id, :flag_type, :origin], {:name=>"index_vulnerability_flags_on_unique_columns", :unique=>true, :algorithm=>:concurrently})5054 -> 0.0021s5055-- add_index(:vulnerability_flags, [:vulnerability_occurrence_id, :flag_type, :origin], {:name=>"index_vulnerability_flags_on_unique_columns", :unique=>true, :algorithm=>:concurrently})5056 -> 0.0013s5057== 20210803110920 AddUniqueIndexToVulnerabilityFlagsTable: migrated (0.0069s) =5058== 20210804150320 CreateBaseWorkItemTypes: migrating ==========================5059== 20210804150320 CreateBaseWorkItemTypes: migrated (0.0225s) =================5060== 20210804150624 RemoveClusterImageScanningFromApprovalProjectRules: migrating 5061-- execute("update approval_project_rules set scanners = array_remove(scanners, 'cluster_image_scanning') where scanners @> '{cluster_image_scanning}'")5062 -> 0.0014s5063== 20210804150624 RemoveClusterImageScanningFromApprovalProjectRules: migrated (0.0014s) 5064== 20210804151444 PrepareIndexesForCiJobArtifactBigintConversion: migrating ===5065-- index_exists?(:ci_job_artifacts, :id_convert_to_bigint, {:unique=>true, :name=>:index_ci_job_artifact_on_id_convert_to_bigint, :algorithm=>:concurrently})5066 -> 0.0049s5067-- add_index_options(:ci_job_artifacts, :id_convert_to_bigint, {:unique=>true, :name=>:index_ci_job_artifact_on_id_convert_to_bigint, :algorithm=>:concurrently})5068 -> 0.0001s5069-- index_exists?(:ci_job_artifacts, [:project_id, :id_convert_to_bigint], {:where=>"file_type = 18", :name=>:index_ci_job_artifacts_for_terraform_reports_bigint, :algorithm=>:concurrently})5070 -> 0.0050s5071-- add_index_options(:ci_job_artifacts, [:project_id, :id_convert_to_bigint], {:where=>"file_type = 18", :name=>:index_ci_job_artifacts_for_terraform_reports_bigint, :algorithm=>:concurrently})5072 -> 0.0001s5073-- index_exists?(:ci_job_artifacts, :id_convert_to_bigint, {:where=>"file_type = 18", :name=>:index_ci_job_artifacts_id_for_terraform_reports_bigint, :algorithm=>:concurrently})5074 -> 0.0051s5075-- add_index_options(:ci_job_artifacts, :id_convert_to_bigint, {:where=>"file_type = 18", :name=>:index_ci_job_artifacts_id_for_terraform_reports_bigint, :algorithm=>:concurrently})5076 -> 0.0001s5077-- index_exists?(:ci_job_artifacts, [:expire_at, :job_id_convert_to_bigint], {:name=>:index_ci_job_artifacts_on_expire_at_and_job_id_bigint, :algorithm=>:concurrently})5078 -> 0.0050s5079-- add_index_options(:ci_job_artifacts, [:expire_at, :job_id_convert_to_bigint], {:name=>:index_ci_job_artifacts_on_expire_at_and_job_id_bigint, :algorithm=>:concurrently})5080 -> 0.0001s5081-- index_exists?(:ci_job_artifacts, [:job_id_convert_to_bigint, :file_type], {:unique=>true, :name=>:index_ci_job_artifacts_on_job_id_and_file_type_bigint, :algorithm=>:concurrently})5082 -> 0.0052s5083-- add_index_options(:ci_job_artifacts, [:job_id_convert_to_bigint, :file_type], {:unique=>true, :name=>:index_ci_job_artifacts_on_job_id_and_file_type_bigint, :algorithm=>:concurrently})5084 -> 0.0001s5085== 20210804151444 PrepareIndexesForCiJobArtifactBigintConversion: migrated (0.0564s) 5086== 20210804153307 PrepareIndexesForTaggingBigintConversion: migrating =========5087-- index_exists?(:taggings, :id_convert_to_bigint, {:unique=>true, :name=>:index_taggings_on_id_convert_to_bigint, :algorithm=>:concurrently})5088 -> 0.0038s5089-- add_index_options(:taggings, :id_convert_to_bigint, {:unique=>true, :name=>:index_taggings_on_id_convert_to_bigint, :algorithm=>:concurrently})5090 -> 0.0001s5091-- index_exists?(:taggings, [:taggable_id_convert_to_bigint, :taggable_type], {:name=>:i_taggings_on_taggable_id_convert_to_bigint_and_taggable_type, :algorithm=>:concurrently})5092 -> 0.0038s5093-- add_index_options(:taggings, [:taggable_id_convert_to_bigint, :taggable_type], {:name=>:i_taggings_on_taggable_id_convert_to_bigint_and_taggable_type, :algorithm=>:concurrently})5094 -> 0.0001s5095-- index_exists?(:taggings, [:taggable_id_convert_to_bigint, :taggable_type, :context], {:name=>:i_taggings_on_taggable_bigint_and_taggable_type_and_context, :algorithm=>:concurrently})5096 -> 0.0038s5097-- add_index_options(:taggings, [:taggable_id_convert_to_bigint, :taggable_type, :context], {:name=>:i_taggings_on_taggable_bigint_and_taggable_type_and_context, :algorithm=>:concurrently})5098 -> 0.0001s5099-- index_exists?(:taggings, [:tag_id, :taggable_id_convert_to_bigint, :taggable_type, :context, :tagger_id, :tagger_type], {:unique=>true, :name=>:taggings_idx_tmp, :algorithm=>:concurrently})5100 -> 0.0039s5101-- add_index_options(:taggings, [:tag_id, :taggable_id_convert_to_bigint, :taggable_type, :context, :tagger_id, :tagger_type], {:unique=>true, :name=>:taggings_idx_tmp, :algorithm=>:concurrently})5102 -> 0.0001s5103== 20210804153307 PrepareIndexesForTaggingBigintConversion: migrated (0.0368s) 5104== 20210804154407 PrepareIndexesForCiStageBigintConversion: migrating =========5105-- index_exists?(:ci_stages, :id_convert_to_bigint, {:unique=>true, :name=>:index_ci_stages_on_id_convert_to_bigint, :algorithm=>:concurrently})5106 -> 0.0042s5107-- add_index_options(:ci_stages, :id_convert_to_bigint, {:unique=>true, :name=>:index_ci_stages_on_id_convert_to_bigint, :algorithm=>:concurrently})5108 -> 0.0001s5109-- index_exists?(:ci_stages, [:pipeline_id, :id_convert_to_bigint], {:where=>"status in (0, 1, 2, 8, 9, 10)", :name=>:index_ci_stages_on_pipeline_id_and_id_convert_to_bigint, :algorithm=>:concurrently})5110 -> 0.0041s5111-- add_index_options(:ci_stages, [:pipeline_id, :id_convert_to_bigint], {:where=>"status in (0, 1, 2, 8, 9, 10)", :name=>:index_ci_stages_on_pipeline_id_and_id_convert_to_bigint, :algorithm=>:concurrently})5112 -> 0.0000s5113== 20210804154407 PrepareIndexesForCiStageBigintConversion: migrated (0.0190s) 5114== 20210804200114 CreateCustomerRelationsOrganizations: migrating =============5115-- create_table(:customer_relations_organizations, {})5116-- quote_column_name(:name)5117 -> 0.0000s5118-- quote_column_name(:description)5119 -> 0.0000s5120 -> 0.0055s5121-- quote_table_name("check_2ba9ef1c4c")5122 -> 0.0000s5123-- quote_table_name("check_e476b6058e")5124 -> 0.0000s5125-- quote_table_name(:customer_relations_organizations)5126 -> 0.0000s5127-- execute("ALTER TABLE \"customer_relations_organizations\"\nADD CONSTRAINT \"check_2ba9ef1c4c\" CHECK (char_length(\"name\") <= 255),\nADD CONSTRAINT \"check_e476b6058e\" CHECK (char_length(\"description\") <= 1024)\n")5128 -> 0.0010s5129== 20210804200114 CreateCustomerRelationsOrganizations: migrated (0.0095s) ====5130== 20210804202057 AddTmpIndexApprovalProjectRulesScanners: migrating ==========5131-- transaction_open?()5132 -> 0.0000s5133-- index_exists?(:approval_project_rules, :scanners, {:name=>"tmp_index_approval_project_rules_scanners", :using=>:gin, :where=>"scanners @> '{cluster_image_scanning}'", :algorithm=>:concurrently})5134 -> 0.0034s5135-- add_index(:approval_project_rules, :scanners, {:name=>"tmp_index_approval_project_rules_scanners", :using=>:gin, :where=>"scanners @> '{cluster_image_scanning}'", :algorithm=>:concurrently})5136 -> 0.0015s5137== 20210804202057 AddTmpIndexApprovalProjectRulesScanners: migrated (0.0085s) =5138== 20210805085706 AddRuleIndexToSecurityOrchestrationPolicyRuleSchedules: migrating 5139-- add_column(:security_orchestration_policy_rule_schedules, :rule_index, :integer, {:null=>false, :default=>0})5140 -> 0.0020s5141== 20210805085706 AddRuleIndexToSecurityOrchestrationPolicyRuleSchedules: migrated (0.0021s) 5142== 20210805131510 FinalizeCiBuildsRunnerSessionBigintConversion: migrating ====5143-- transaction_open?()5144 -> 0.0000s5145-- index_exists?("ci_builds_runner_session", :build_id_convert_to_bigint, {:unique=>true, :name=>"index_ci_builds_runner_session_on_build_id_convert_to_bigint", :algorithm=>:concurrently})5146 -> 0.0020s5147-- add_index("ci_builds_runner_session", :build_id_convert_to_bigint, {:unique=>true, :name=>"index_ci_builds_runner_session_on_build_id_convert_to_bigint", :algorithm=>:concurrently})5148 -> 0.0014s5149-- transaction_open?()5150 -> 0.0000s5151-- foreign_keys("ci_builds_runner_session")5152 -> 0.0033s5153-- execute("LOCK TABLE ci_builds, ci_builds_runner_session IN SHARE ROW EXCLUSIVE MODE")5154 -> 0.0005s5155-- execute("ALTER TABLE ci_builds_runner_session\nADD CONSTRAINT fk_rails_70707857d3_tmp\nFOREIGN KEY (build_id_convert_to_bigint)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n")5156 -> 0.0015s5157-- execute("ALTER TABLE ci_builds_runner_session VALIDATE CONSTRAINT fk_rails_70707857d3_tmp;")5158 -> 0.0015s5159-- execute("LOCK TABLE ci_builds, ci_builds_runner_session IN ACCESS EXCLUSIVE MODE")5160 -> 0.0005s5161-- quote_table_name("ci_builds_runner_session")5162 -> 0.0001s5163-- quote_column_name(:build_id)5164 -> 0.0000s5165-- quote_column_name("build_id_tmp")5166 -> 0.0001s5167-- execute("ALTER TABLE \"ci_builds_runner_session\" RENAME COLUMN \"build_id\" TO \"build_id_tmp\"")5168 -> 0.0007s5169-- quote_table_name("ci_builds_runner_session")5170 -> 0.0000s5171-- quote_column_name(:build_id_convert_to_bigint)5172 -> 0.0000s5173-- quote_column_name(:build_id)5174 -> 0.0000s5175-- execute("ALTER TABLE \"ci_builds_runner_session\" RENAME COLUMN \"build_id_convert_to_bigint\" TO \"build_id\"")5176 -> 0.0007s5177-- quote_table_name("ci_builds_runner_session")5178 -> 0.0000s5179-- quote_column_name("build_id_tmp")5180 -> 0.0000s5181-- quote_column_name(:build_id_convert_to_bigint)5182 -> 0.0000s5183-- execute("ALTER TABLE \"ci_builds_runner_session\" RENAME COLUMN \"build_id_tmp\" TO \"build_id_convert_to_bigint\"")5184 -> 0.0006s5185-- quote_table_name("trigger_51ab7cef8934")5186 -> 0.0000s5187-- execute("ALTER FUNCTION \"trigger_51ab7cef8934\" RESET ALL")5188 -> 0.0006s5189-- change_column_default("ci_builds_runner_session", :build_id, nil)5190 -> 0.0024s5191-- change_column_default("ci_builds_runner_session", :build_id_convert_to_bigint, 0)5192 -> 0.0024s5193-- execute("DROP INDEX index_ci_builds_runner_session_on_build_id")5194 -> 0.0008s5195-- rename_index("ci_builds_runner_session", "index_ci_builds_runner_session_on_build_id_convert_to_bigint", "index_ci_builds_runner_session_on_build_id")5196 -> 0.0006s5197-- remove_foreign_key("ci_builds_runner_session", {:name=>"fk_rails_70707857d3"})5198 -> 0.0046s5199-- quote_table_name("ci_builds_runner_session")5200 -> 0.0000s5201-- quote_column_name("fk_rails_70707857d3_tmp")5202 -> 0.0000s5203-- quote_column_name("fk_rails_70707857d3")5204 -> 0.0000s5205-- execute("ALTER TABLE \"ci_builds_runner_session\"\nRENAME CONSTRAINT \"fk_rails_70707857d3_tmp\" TO \"fk_rails_70707857d3\"\n")5206 -> 0.0006s5207== 20210805131510 FinalizeCiBuildsRunnerSessionBigintConversion: migrated (0.0399s) 5208== 20210805192450 UpdateTrialPlansCiDailyPipelineScheduleTriggers: migrating ==5209== 20210805192450 UpdateTrialPlansCiDailyPipelineScheduleTriggers: migrated (0.0000s) 5210== 20210806011811 ScheduleBackfillDraftColumnOnMergeRequestsRerun: migrating ==5211== 20210806011811 ScheduleBackfillDraftColumnOnMergeRequestsRerun: migrated (0.0000s) 5212== 20210806131706 FinalizeTagginsBigintConversion: migrating ==================5213-- transaction_open?()5214 -> 0.0000s5215-- index_exists?("taggings", :id_convert_to_bigint, {:unique=>true, :name=>"index_taggings_on_id_convert_to_bigint", :algorithm=>:concurrently})5216 -> 0.0060s5217-- add_index("taggings", :id_convert_to_bigint, {:unique=>true, :name=>"index_taggings_on_id_convert_to_bigint", :algorithm=>:concurrently})5218 -> 0.0014s5219-- transaction_open?()5220 -> 0.0000s5221-- index_exists?("taggings", [:taggable_id_convert_to_bigint, :taggable_type], {:name=>"i_taggings_on_taggable_id_convert_to_bigint_and_taggable_type", :algorithm=>:concurrently})5222 -> 0.0046s5223-- add_index("taggings", [:taggable_id_convert_to_bigint, :taggable_type], {:name=>"i_taggings_on_taggable_id_convert_to_bigint_and_taggable_type", :algorithm=>:concurrently})5224 -> 0.0014s5225-- transaction_open?()5226 -> 0.0000s5227-- index_exists?("taggings", [:taggable_id_convert_to_bigint, :taggable_type, :context], {:name=>"i_taggings_on_taggable_bigint_and_taggable_type_and_context", :algorithm=>:concurrently})5228 -> 0.0048s5229-- add_index("taggings", [:taggable_id_convert_to_bigint, :taggable_type, :context], {:name=>"i_taggings_on_taggable_bigint_and_taggable_type_and_context", :algorithm=>:concurrently})5230 -> 0.0016s5231-- transaction_open?()5232 -> 0.0000s5233-- index_exists?("taggings", [:tag_id, :taggable_id_convert_to_bigint, :taggable_type, :context, :tagger_id, :tagger_type], {:unique=>true, :name=>"taggings_idx_tmp", :algorithm=>:concurrently})5234 -> 0.0053s5235-- add_index("taggings", [:tag_id, :taggable_id_convert_to_bigint, :taggable_type, :context, :tagger_id, :tagger_type], {:unique=>true, :name=>"taggings_idx_tmp", :algorithm=>:concurrently})5236 -> 0.0018s5237-- transaction_open?()5238 -> 0.0000s5239-- index_exists?("taggings", :id_convert_to_bigint, {:where=>"taggable_type = 'Project'", :name=>"tmp_index_taggings_on_id_bigint_where_taggable_type_project", :algorithm=>:concurrently})5240 -> 0.0059s5241-- add_index("taggings", :id_convert_to_bigint, {:where=>"taggable_type = 'Project'", :name=>"tmp_index_taggings_on_id_bigint_where_taggable_type_project", :algorithm=>:concurrently})5242 -> 0.0015s5243-- execute("LOCK TABLE taggings IN ACCESS EXCLUSIVE MODE")5244 -> 0.0006s5245-- quote_table_name("taggings")5246 -> 0.0000s5247-- quote_column_name(:taggable_id)5248 -> 0.0002s5249-- quote_column_name("taggable_id_tmp")5250 -> 0.0000s5251-- execute("ALTER TABLE \"taggings\" RENAME COLUMN \"taggable_id\" TO \"taggable_id_tmp\"")5252 -> 0.0007s5253-- quote_table_name("taggings")5254 -> 0.0000s5255-- quote_column_name(:taggable_id_convert_to_bigint)5256 -> 0.0000s5257-- quote_column_name(:taggable_id)5258 -> 0.0000s5259-- execute("ALTER TABLE \"taggings\" RENAME COLUMN \"taggable_id_convert_to_bigint\" TO \"taggable_id\"")5260 -> 0.0006s5261-- quote_table_name("taggings")5262 -> 0.0000s5263-- quote_column_name("taggable_id_tmp")5264 -> 0.0000s5265-- quote_column_name(:taggable_id_convert_to_bigint)5266 -> 0.0000s5267-- execute("ALTER TABLE \"taggings\" RENAME COLUMN \"taggable_id_tmp\" TO \"taggable_id_convert_to_bigint\"")5268 -> 0.0007s5269-- quote_table_name("taggings")5270 -> 0.0000s5271-- quote_column_name(:id)5272 -> 0.0000s5273-- quote_column_name("id_tmp")5274 -> 0.0000s5275-- execute("ALTER TABLE \"taggings\" RENAME COLUMN \"id\" TO \"id_tmp\"")5276 -> 0.0006s5277-- quote_table_name("taggings")5278 -> 0.0000s5279-- quote_column_name(:id_convert_to_bigint)5280 -> 0.0000s5281-- quote_column_name(:id)5282 -> 0.0000s5283-- execute("ALTER TABLE \"taggings\" RENAME COLUMN \"id_convert_to_bigint\" TO \"id\"")5284 -> 0.0006s5285-- quote_table_name("taggings")5286 -> 0.0000s5287-- quote_column_name("id_tmp")5288 -> 0.0000s5289-- quote_column_name(:id_convert_to_bigint)5290 -> 0.0000s5291-- execute("ALTER TABLE \"taggings\" RENAME COLUMN \"id_tmp\" TO \"id_convert_to_bigint\"")5292 -> 0.0006s5293-- quote_table_name("trigger_aebe8b822ad3")5294 -> 0.0000s5295-- execute("ALTER FUNCTION \"trigger_aebe8b822ad3\" RESET ALL")5296 -> 0.0005s5297-- execute("ALTER SEQUENCE taggings_id_seq OWNED BY taggings.id")5298 -> 0.0007s5299-- change_column_default("taggings", :id, #<Proc:0x00007f8147964b08 /builds/gitlab-org/gitlab/db/post_migrate/20210806131706_finalize_taggins_bigint_conversion.rb:68 (lambda)>)5300 -> 0.0027s5301-- change_column_default("taggings", :id_convert_to_bigint, 0)5302 -> 0.0025s5303-- execute("ALTER TABLE taggings DROP CONSTRAINT taggings_pkey CASCADE")5304 -> 0.0007s5305-- rename_index("taggings", "index_taggings_on_id_convert_to_bigint", "taggings_pkey")5306 -> 0.0006s5307-- execute("ALTER TABLE taggings ADD CONSTRAINT taggings_pkey PRIMARY KEY USING INDEX taggings_pkey")5308 -> 0.0007s5309-- execute("DROP INDEX IF EXISTS index_taggings_on_taggable_id_and_taggable_type")5310 -> 0.0007s5311-- rename_index("taggings", "i_taggings_on_taggable_id_convert_to_bigint_and_taggable_type", "index_taggings_on_taggable_id_and_taggable_type")5312 -> 0.0006s5313-- execute("DROP INDEX IF EXISTS index_taggings_on_taggable_id_and_taggable_type_and_context")5314 -> 0.0006s5315-- rename_index("taggings", "i_taggings_on_taggable_bigint_and_taggable_type_and_context", "index_taggings_on_taggable_id_and_taggable_type_and_context")5316 -> 0.0006s5317-- execute("DROP INDEX IF EXISTS taggings_idx")5318 -> 0.0006s5319-- rename_index("taggings", "taggings_idx_tmp", "taggings_idx")5320 -> 0.0006s5321-- execute("DROP INDEX IF EXISTS tmp_index_taggings_on_id_where_taggable_type_project")5322 -> 0.0007s5323-- rename_index("taggings", "tmp_index_taggings_on_id_bigint_where_taggable_type_project", "tmp_index_taggings_on_id_where_taggable_type_project")5324 -> 0.0005s5325== 20210806131706 FinalizeTagginsBigintConversion: migrated (0.0849s) =========5326== 20210806152104 AddPypiPackageRequestsForwardingToApplicationSettings: migrating 5327-- add_column(:application_settings, :pypi_package_requests_forwarding, :boolean, {:default=>true, :null=>false})5328 -> 0.0025s5329== 20210806152104 AddPypiPackageRequestsForwardingToApplicationSettings: migrated (0.0052s) 5330== 20210807101446 AddCadenceToDastProfileSchedules: migrating =================5331-- add_column(:dast_profile_schedules, :cadence, :jsonb, {:null=>false, :default=>{}})5332 -> 0.0017s5333== 20210807101446 AddCadenceToDastProfileSchedules: migrated (0.0019s) ========5334== 20210807101621 AddTimezoneToDastProfileSchedules: migrating ================5335-- execute("DELETE FROM dast_profile_schedules")5336 -> 0.0007s5337-- column_exists?(:dast_profile_schedules, :timezone)5338 -> 0.0020s5339-- add_column(:dast_profile_schedules, :timezone, :text, {:null=>false})5340 -> 0.0010s5341-- transaction_open?()5342 -> 0.0000s5343-- current_schema()5344 -> 0.0005s5345-- execute("ALTER TABLE dast_profile_schedules\nADD CONSTRAINT check_be4d1c3af1\nCHECK ( char_length(timezone) <= 255 )\nNOT VALID;\n")5346 -> 0.0009s5347-- current_schema()5348 -> 0.0004s5349-- execute("ALTER TABLE dast_profile_schedules VALIDATE CONSTRAINT check_be4d1c3af1;")5350 -> 0.0007s5351== 20210807101621 AddTimezoneToDastProfileSchedules: migrated (0.0122s) =======5352== 20210807102004 AddStartsAtToDastProfileSchedules: migrating ================5353-- add_column(:dast_profile_schedules, :starts_at, :datetime_with_timezone, {:null=>false, :default=>#<Proc:0x00007f8147830368 /builds/gitlab-org/gitlab/db/migrate/20210807102004_add_starts_at_to_dast_profile_schedules.rb:5 (lambda)>})5354 -> 0.0013s5355== 20210807102004 AddStartsAtToDastProfileSchedules: migrated (0.0015s) =======5356== 20210809014850 CreateAgentGroupAuthorizations: migrating ===================5357-- create_table(:agent_group_authorizations)5358 -> 0.0044s5359== 20210809014850 CreateAgentGroupAuthorizations: migrated (0.0045s) ==========5360== 20210809014918 AddAgentGroupAuthorizationsForeignKeys: migrating ===========5361-- transaction_open?()5362 -> 0.0000s5363-- foreign_keys(:agent_group_authorizations)5364 -> 0.0034s5365-- execute("ALTER TABLE agent_group_authorizations\nADD CONSTRAINT fk_2c9f941965\nFOREIGN KEY (group_id)\nREFERENCES namespaces (id)\nON DELETE CASCADE\nNOT VALID;\n")5366 -> 0.0016s5367-- execute("ALTER TABLE agent_group_authorizations VALIDATE CONSTRAINT fk_2c9f941965;")5368 -> 0.0016s5369-- transaction_open?()5370 -> 0.0000s5371-- foreign_keys(:agent_group_authorizations)5372 -> 0.0036s5373-- execute("ALTER TABLE agent_group_authorizations\nADD CONSTRAINT fk_fb70782616\nFOREIGN KEY (agent_id)\nREFERENCES cluster_agents (id)\nON DELETE CASCADE\nNOT VALID;\n")5374 -> 0.0011s5375-- execute("ALTER TABLE agent_group_authorizations VALIDATE CONSTRAINT fk_fb70782616;")5376 -> 0.0012s5377== 20210809014918 AddAgentGroupAuthorizationsForeignKeys: migrated (0.0197s) ==5378== 20210809123658 OrphanedInviteTokensCleanup: migrating ======================5379-- transaction_open?()5380 -> 0.0000s5381-- index_exists?("members", :id, {:where=>"invite_token IS NOT NULL and invite_accepted_at IS NOT NULL and TIMEZONE('UTC', invite_accepted_at) < TIMEZONE('UTC', created_at)", :name=>"tmp_idx_orphaned_invite_tokens", :algorithm=>:concurrently})5382 -> 0.0067s5383-- add_index("members", :id, {:where=>"invite_token IS NOT NULL and invite_accepted_at IS NOT NULL and TIMEZONE('UTC', invite_accepted_at) < TIMEZONE('UTC', created_at)", :name=>"tmp_idx_orphaned_invite_tokens", :algorithm=>:concurrently})5384 -> 0.0020s5385-- transaction_open?()5386 -> 0.0000s5387-- indexes("members")5388 -> 0.0068s5389-- remove_index("members", {:algorithm=>:concurrently, :name=>"tmp_idx_orphaned_invite_tokens"})5390 -> 0.0012s5391== 20210809123658 OrphanedInviteTokensCleanup: migrated (0.0293s) =============5392== 20210809143931 FinalizeJobIdConversionToBigintForCiJobArtifacts: migrating =5393-- transaction_open?()5394 -> 0.0000s5395-- index_exists?("ci_job_artifacts", [:expire_at, :job_id_convert_to_bigint], {:name=>"index_ci_job_artifacts_on_expire_at_and_job_id_bigint", :algorithm=>:concurrently})5396 -> 0.0054s5397-- add_index("ci_job_artifacts", [:expire_at, :job_id_convert_to_bigint], {:name=>"index_ci_job_artifacts_on_expire_at_and_job_id_bigint", :algorithm=>:concurrently})5398 -> 0.0018s5399-- transaction_open?()5400 -> 0.0000s5401-- index_exists?("ci_job_artifacts", [:job_id_convert_to_bigint, :file_type], {:name=>"index_ci_job_artifacts_on_job_id_and_file_type_bigint", :unique=>true, :algorithm=>:concurrently})5402 -> 0.0064s5403-- add_index("ci_job_artifacts", [:job_id_convert_to_bigint, :file_type], {:name=>"index_ci_job_artifacts_on_job_id_and_file_type_bigint", :unique=>true, :algorithm=>:concurrently})5404 -> 0.0017s5405-- transaction_open?()5406 -> 0.0000s5407-- foreign_keys("ci_job_artifacts")5408 -> 0.0037s5409-- execute("LOCK TABLE ci_builds, ci_job_artifacts IN SHARE ROW EXCLUSIVE MODE")5410 -> 0.0006s5411-- execute("ALTER TABLE ci_job_artifacts\nADD CONSTRAINT fk_rails_c5137cb2c1_tmp\nFOREIGN KEY (job_id_convert_to_bigint)\nREFERENCES ci_builds (id)\nON DELETE CASCADE\nNOT VALID;\n")5412 -> 0.0014s5413-- execute("ALTER TABLE ci_job_artifacts VALIDATE CONSTRAINT fk_rails_c5137cb2c1_tmp;")5414 -> 0.0017s5415-- execute("LOCK TABLE ci_builds, ci_job_artifacts IN ACCESS EXCLUSIVE MODE")5416 -> 0.0005s5417-- quote_table_name("ci_job_artifacts")5418 -> 0.0000s5419-- quote_column_name(:job_id)5420 -> 0.0000s5421-- quote_column_name("job_id_tmp")5422 -> 0.0000s5423-- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"job_id\" TO \"job_id_tmp\"")5424 -> 0.0007s5425-- quote_table_name("ci_job_artifacts")5426 -> 0.0000s5427-- quote_column_name(:job_id_convert_to_bigint)5428 -> 0.0000s5429-- quote_column_name(:job_id)5430 -> 0.0000s5431-- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"job_id_convert_to_bigint\" TO \"job_id\"")5432 -> 0.0006s5433-- quote_table_name("ci_job_artifacts")5434 -> 0.0000s5435-- quote_column_name("job_id_tmp")5436 -> 0.0000s5437-- quote_column_name(:job_id_convert_to_bigint)5438 -> 0.0000s5439-- execute("ALTER TABLE \"ci_job_artifacts\" RENAME COLUMN \"job_id_tmp\" TO \"job_id_convert_to_bigint\"")5440 -> 0.0007s5441-- quote_table_name("trigger_be1804f21693")5442 -> 0.0000s5443-- execute("ALTER FUNCTION \"trigger_be1804f21693\" RESET ALL")5444 -> 0.0007s5445-- change_column_default("ci_job_artifacts", :job_id, nil)5446 -> 0.0030s5447-- change_column_default("ci_job_artifacts", :job_id_convert_to_bigint, 0)5448 -> 0.0027s5449-- execute("DROP INDEX index_ci_job_artifacts_on_expire_at_and_job_id")5450 -> 0.0007s5451-- rename_index("ci_job_artifacts", "index_ci_job_artifacts_on_expire_at_and_job_id_bigint", "index_ci_job_artifacts_on_expire_at_and_job_id")5452 -> 0.0006s5453-- execute("DROP INDEX index_ci_job_artifacts_on_job_id_and_file_type")5454 -> 0.0007s5455-- rename_index("ci_job_artifacts", "index_ci_job_artifacts_on_job_id_and_file_type_bigint", "index_ci_job_artifacts_on_job_id_and_file_type")5456 -> 0.0006s5457-- remove_foreign_key("ci_job_artifacts", {:name=>"fk_rails_c5137cb2c1"})5458 -> 0.0049s5459-- quote_table_name("ci_job_artifacts")5460 -> 0.0000s5461-- quote_column_name("fk_rails_c5137cb2c1_tmp")5462 -> 0.0000s5463-- quote_column_name("fk_rails_c5137cb2c1")5464 -> 0.0000s5465-- execute("ALTER TABLE \"ci_job_artifacts\"\nRENAME CONSTRAINT \"fk_rails_c5137cb2c1_tmp\" TO \"fk_rails_c5137cb2c1\"\n")5466 -> 0.0007s5467== 20210809143931 FinalizeJobIdConversionToBigintForCiJobArtifacts: migrated (0.0625s) 5468== 20210809194250 RenameTablesCiBuildTraceSection: migrating ==================5469-- rename_table(:ci_build_trace_sections, :dep_ci_build_trace_sections)5470 -> 0.0085s5471-- rename_table(:ci_build_trace_section_names, :dep_ci_build_trace_section_names)5472 -> 0.0059s5473== 20210809194250 RenameTablesCiBuildTraceSection: migrated (0.0145s) =========5474== 20210811120204 CreateCustomerRelationsContacts: migrating ==================5475-- create_table(:customer_relations_contacts, {})5476-- quote_column_name(:phone)5477 -> 0.0000s5478-- quote_column_name(:first_name)5479 -> 0.0000s5480-- quote_column_name(:last_name)5481 -> 0.0000s5482-- quote_column_name(:email)5483 -> 0.0000s5484-- quote_column_name(:description)5485 -> 0.0000s5486 -> 0.0057s5487-- quote_table_name("check_f4b7f78c89")5488 -> 0.0000s5489-- quote_table_name("check_1195f4c929")5490 -> 0.0000s5491-- quote_table_name("check_cd2d67c484")5492 -> 0.0000s5493-- quote_table_name("check_fc0adabf60")5494 -> 0.0000s5495-- quote_table_name("check_40c70da037")5496 -> 0.0000s5497-- quote_table_name(:customer_relations_contacts)5498 -> 0.0000s5499-- execute("ALTER TABLE \"customer_relations_contacts\"\nADD CONSTRAINT \"check_f4b7f78c89\" CHECK (char_length(\"phone\") <= 32),\nADD CONSTRAINT \"check_1195f4c929\" CHECK (char_length(\"first_name\") <= 255),\nADD CONSTRAINT \"check_cd2d67c484\" CHECK (char_length(\"last_name\") <= 255),\nADD CONSTRAINT \"check_fc0adabf60\" CHECK (char_length(\"email\") <= 255),\nADD CONSTRAINT \"check_40c70da037\" CHECK (char_length(\"description\") <= 1024)\n")5500 -> 0.0014s5501== 20210811120204 CreateCustomerRelationsContacts: migrated (0.0103s) =========5502== 20210811122206 UpdateExternalProjectBots: migrating ========================5503-- transaction_open?()5504 -> 0.0000s5505-- index_exists?("users", "id", {:name=>"tmp_idx_update_external_project_bots", :where=>"external = true", :algorithm=>:concurrently})5506 -> 0.0139s5507-- add_index("users", "id", {:name=>"tmp_idx_update_external_project_bots", :where=>"external = true", :algorithm=>:concurrently})5508 -> 0.0023s5509-- transaction_open?()5510 -> 0.0000s5511-- indexes("users")5512 -> 0.0145s5513-- remove_index("users", {:algorithm=>:concurrently, :name=>"tmp_idx_update_external_project_bots"})5514 -> 0.0015s5515== 20210811122206 UpdateExternalProjectBots: migrated (0.0395s) ===============5516== 20210811214811 ScheduleCopyCiBuildsColumnsToSecurityScans: migrating =======5517== 20210811214811 ScheduleCopyCiBuildsColumnsToSecurityScans: migrated (0.0000s) 5518== 20210812145010 ResetJobTokenScopeEnabledAgain: migrating ===================5519-- remove_column(:project_ci_cd_settings, :job_token_scope_enabled)5520 -> 0.0009s5521-- add_column(:project_ci_cd_settings, :job_token_scope_enabled, :boolean, {:default=>false, :null=>false})5522 -> 0.0012s5523== 20210812145010 ResetJobTokenScopeEnabledAgain: migrated (0.0046s) ==========5524== 20210812171704 CreateProjectCiFeatureUsages: migrating =====================5525-- create_table(:project_ci_feature_usages)5526 -> 0.0048s5527== 20210812171704 CreateProjectCiFeatureUsages: migrated (0.0049s) ============5528== 20210813101742 CreateZentaoTrackerData: migrating ==========================5529-- create_table(:zentao_tracker_data)5530 -> 0.0047s5531== 20210813101742 CreateZentaoTrackerData: migrated (0.0048s) =================5532== 20210813111909 CreateCiBuildTraceMetadata: migrating =======================5533-- create_table(:ci_build_trace_metadata, {:id=>false, :if_not_exists=>true})5534 -> 0.0037s5535== 20210813111909 CreateCiBuildTraceMetadata: migrated (0.0064s) ==============5536== 20210813131313 CreateForeignKeyOnContactsGroupId: migrating ================5537-- transaction_open?()5538 -> 0.0000s5539-- index_exists?(:customer_relations_contacts, :group_id, {:name=>"index_customer_relations_contacts_on_group_id", :algorithm=>:concurrently})5540 -> 0.0021s5541-- add_index(:customer_relations_contacts, :group_id, {:name=>"index_customer_relations_contacts_on_group_id", :algorithm=>:concurrently})5542 -> 0.0013s5543-- transaction_open?()5544 -> 0.0000s5545-- foreign_keys(:customer_relations_contacts)5546 -> 0.0033s5547-- execute("ALTER TABLE customer_relations_contacts\nADD CONSTRAINT fk_b91ddd9345\nFOREIGN KEY (group_id)\nREFERENCES namespaces (id)\nON DELETE CASCADE\nNOT VALID;\n")5548 -> 0.0013s5549-- execute("ALTER TABLE customer_relations_contacts VALIDATE CONSTRAINT fk_b91ddd9345;")5550 -> 0.0014s5551== 20210813131313 CreateForeignKeyOnContactsGroupId: migrated (0.0161s) =======5552== 20210813151908 ReplaceExternalWikiTriggers: migrating ======================5553-- execute("CREATE TRIGGER trigger_has_external_wiki_on_delete_new AFTER DELETE ON integrations FOR EACH ROW WHEN (((old.type_new)::text = 'Integrations::ExternalWiki'::text) AND (old.project_id IS NOT NULL)) EXECUTE FUNCTION set_has_external_wiki();")5554 -> 0.0012s5555-- execute("ALTER TRIGGER trigger_has_external_wiki_on_delete ON integrations RENAME TO trigger_has_external_wiki_on_delete_old;")5556 -> 0.0006s5557-- execute("ALTER TRIGGER trigger_has_external_wiki_on_delete_new ON integrations RENAME TO trigger_has_external_wiki_on_delete;")5558 -> 0.0006s5559-- execute("DROP TRIGGER IF EXISTS trigger_has_external_wiki_on_delete_old ON integrations;")5560 -> 0.0007s5561-- execute("CREATE TRIGGER trigger_has_external_wiki_on_insert_new AFTER INSERT ON integrations FOR EACH ROW WHEN ((new.active = true) AND ((new.type_new)::text = 'Integrations::ExternalWiki'::text) AND (new.project_id IS NOT NULL)) EXECUTE FUNCTION set_has_external_wiki();")5562 -> 0.0008s5563-- execute("ALTER TRIGGER trigger_has_external_wiki_on_insert ON integrations RENAME TO trigger_has_external_wiki_on_insert_old;")5564 -> 0.0006s5565-- execute("ALTER TRIGGER trigger_has_external_wiki_on_insert_new ON integrations RENAME TO trigger_has_external_wiki_on_insert;")5566 -> 0.0006s5567-- execute("DROP TRIGGER IF EXISTS trigger_has_external_wiki_on_insert_old ON integrations;")5568 -> 0.0007s5569-- execute("CREATE TRIGGER trigger_has_external_wiki_on_update_new AFTER UPDATE ON integrations FOR EACH ROW WHEN (((new.type_new)::text = 'Integrations::ExternalWiki'::text) AND (old.active <> new.active) AND (new.project_id IS NOT NULL)) EXECUTE FUNCTION set_has_external_wiki();")5570 -> 0.0008s5571-- execute("ALTER TRIGGER trigger_has_external_wiki_on_update ON integrations RENAME TO trigger_has_external_wiki_on_update_old;")5572 -> 0.0007s5573-- execute("ALTER TRIGGER trigger_has_external_wiki_on_update_new ON integrations RENAME TO trigger_has_external_wiki_on_update;")5574 -> 0.0006s5575-- execute("DROP TRIGGER IF EXISTS trigger_has_external_wiki_on_update_old ON integrations;")5576 -> 0.0007s5577-- execute("CREATE TRIGGER trigger_has_external_wiki_on_type_new_updated AFTER UPDATE OF type_new ON integrations FOR EACH ROW WHEN ((new.type_new)::text = 'Integrations::ExternalWiki'::text AND new.project_id IS NOT NULL) EXECUTE FUNCTION set_has_external_wiki();")5578 -> 0.0008s5579== 20210813151908 ReplaceExternalWikiTriggers: migrated (0.0101s) =============5580== 20210813195518 ScheduleRecalculateUuidOnVulnerabilitiesOccurrences3: migrating 5581-- Scheduling RecalculateVulnerabilitiesOccurrencesUuid jobs5582-- Scheduled 0 RecalculateVulnerabilitiesOccurrencesUuid jobs with a maximum of 2500 records per batch and an interval of 120 seconds.5583The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:16 UTC."5584== 20210813195518 ScheduleRecalculateUuidOnVulnerabilitiesOccurrences3: migrated (0.0045s) 5585== 20210816095826 AddUniqueIndexOnDastProfileToDastProfileSchedules: migrating 5586-- execute("DELETE FROM dast_profile_schedules")5587 -> 0.0012s5588-- indexes(:dast_profile_schedules)5589 -> 0.0032s5590-- remove_index(:dast_profile_schedules, :dast_profile_id, {:name=>"index_dast_profile_schedules_on_dast_profile_id"})5591 -> 0.0040s5592-- indexes(:dast_profile_schedules)5593 -> 0.0028s5594-- current_schema()5595 -> 0.0005s5596-- add_index(:dast_profile_schedules, :dast_profile_id, {:unique=>true, :name=>"index_dast_profile_schedules_on_dast_profile_id"})5597 -> 0.0011s5598== 20210816095826 AddUniqueIndexOnDastProfileToDastProfileSchedules: migrated (0.0148s) 5599== 20210816161107 RemoveIndexContainingFaultyRegex: migrating =================5600-- transaction_open?()5601 -> 0.0000s5602-- indexes(:merge_requests)5603 -> 0.0176s5604-- current_schema()5605 -> 0.0005s5606== 20210816161107 RemoveIndexContainingFaultyRegex: migrated (0.0206s) ========5607== 20210816183304 ScheduleCopyCiBuildsColumnsToSecurityScans2: migrating ======5608-- Scheduled 0 CopyCiBuildsColumnsToSecurityScans jobs with a maximum of 5000 records per batch and an interval of 120 seconds.5609The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:16 UTC."5610== 20210816183304 ScheduleCopyCiBuildsColumnsToSecurityScans2: migrated (0.0057s) 5611== 20210816192041 AddInvitesEmailSuccessToMember: migrating ===================5612-- column_exists?(:members, :invite_email_success)5613 -> 0.0025s5614-- add_column(:members, :invite_email_success, :boolean, {:null=>false, :default=>true})5615 -> 0.0014s5616== 20210816192041 AddInvitesEmailSuccessToMember: migrated (0.0040s) ==========5617== 20210817024335 PrepareIndexesForEventsBigintConversion: migrating ==========5618-- index_exists?("events", :id_convert_to_bigint, {:unique=>true, :name=>:index_events_on_id_convert_to_bigint, :algorithm=>:concurrently})5619 -> 0.0064s5620-- add_index_options("events", :id_convert_to_bigint, {:unique=>true, :name=>:index_events_on_id_convert_to_bigint, :algorithm=>:concurrently})5621 -> 0.0001s5622-- index_exists?("events", [:project_id, :id_convert_to_bigint], {:name=>:index_events_on_project_id_and_id_convert_to_bigint, :algorithm=>:concurrently})5623 -> 0.0065s5624-- add_index_options("events", [:project_id, :id_convert_to_bigint], {:name=>:index_events_on_project_id_and_id_convert_to_bigint, :algorithm=>:concurrently})5625 -> 0.0001s5626-- index_exists?("events", [:project_id, :id_convert_to_bigint], {:order=>{:id_convert_to_bigint=>:desc}, :where=>"action = 7", :name=>:index_events_on_project_id_and_id_bigint_desc_on_merged_action, :algorithm=>:concurrently})5627 -> 0.0066s5628-- add_index_options("events", [:project_id, :id_convert_to_bigint], {:order=>{:id_convert_to_bigint=>:desc}, :where=>"action = 7", :name=>:index_events_on_project_id_and_id_bigint_desc_on_merged_action, :algorithm=>:concurrently})5629 -> 0.0001s5630== 20210817024335 PrepareIndexesForEventsBigintConversion: migrated (0.0367s) =5631== 20210817084338 AddForeignKeyFromCiBuildMetadataToCiJobArtifacts: migrating =5632-- transaction_open?()5633 -> 0.0000s5634-- foreign_keys(:ci_build_trace_metadata)5635 -> 0.0036s5636-- execute("ALTER TABLE ci_build_trace_metadata\nADD CONSTRAINT fk_21d25cac1a\nFOREIGN KEY (trace_artifact_id)\nREFERENCES ci_job_artifacts (id)\nON DELETE CASCADE\nNOT VALID;\n")5637 -> 0.0013s5638-- execute("ALTER TABLE ci_build_trace_metadata VALIDATE CONSTRAINT fk_21d25cac1a;")5639 -> 0.0014s5640== 20210817084338 AddForeignKeyFromCiBuildMetadataToCiJobArtifacts: migrated (0.0099s) 5641== 20210817130415 AddProjectIdNameVersionIdToNpmPackages: migrating ===========5642-- transaction_open?()5643 -> 0.0000s5644-- index_exists?(:packages_packages, [:project_id, :name, :version, :id], {:where=>"package_type = 2 AND status = 0", :name=>"idx_installable_npm_pkgs_on_project_id_name_version_id", :algorithm=>:concurrently})5645 -> 0.0075s5646-- add_index(:packages_packages, [:project_id, :name, :version, :id], {:where=>"package_type = 2 AND status = 0", :name=>"idx_installable_npm_pkgs_on_project_id_name_version_id", :algorithm=>:concurrently})5647 -> 0.0018s5648== 20210817130415 AddProjectIdNameVersionIdToNpmPackages: migrated (0.0127s) ==5649== 20210817172214 AddYamlLimitsApplicationSetting: migrating ==================5650-- add_column(:application_settings, :max_yaml_size_bytes, :bigint, {:default=>1048576, :null=>false})5651 -> 0.0028s5652-- add_column(:application_settings, :max_yaml_depth, :integer, {:default=>100, :null=>false})5653 -> 0.0021s5654== 20210817172214 AddYamlLimitsApplicationSetting: migrated (0.0051s) =========5655== 20210818034001 IndexHistoricalDataOnRecordedAt: migrating ==================5656-- transaction_open?()5657 -> 0.0000s5658-- index_exists?(:historical_data, :recorded_at, {:name=>"index_historical_data_on_recorded_at", :algorithm=>:concurrently})5659 -> 0.0014s5660-- add_index(:historical_data, :recorded_at, {:name=>"index_historical_data_on_recorded_at", :algorithm=>:concurrently})5661 -> 0.0014s5662== 20210818034001 IndexHistoricalDataOnRecordedAt: migrated (0.0065s) =========5663== 20210818055357 AddUniqueCommitDesignUserMentionIndexes: migrating ==========5664-- transaction_open?()5665 -> 0.0000s5666-- index_exists?(:commit_user_mentions, [:commit_id, :note_id], {:unique=>true, :name=>"commit_user_mentions_on_commit_id_and_note_id_unique_index", :algorithm=>:concurrently})5667 -> 0.0026s5668-- add_index(:commit_user_mentions, [:commit_id, :note_id], {:unique=>true, :name=>"commit_user_mentions_on_commit_id_and_note_id_unique_index", :algorithm=>:concurrently})5669 -> 0.0014s5670-- transaction_open?()5671 -> 0.0000s5672-- index_exists?(:design_user_mentions, [:design_id, :note_id], {:unique=>true, :name=>"design_user_mentions_on_design_id_and_note_id_unique_index", :algorithm=>:concurrently})5673 -> 0.0024s5674-- add_index(:design_user_mentions, [:design_id, :note_id], {:unique=>true, :name=>"design_user_mentions_on_design_id_and_note_id_unique_index", :algorithm=>:concurrently})5675 -> 0.0014s5676-- transaction_open?()5677 -> 0.0000s5678-- indexes(:commit_user_mentions)5679 -> 0.0029s5680-- remove_index(:commit_user_mentions, {:algorithm=>:concurrently, :name=>"commit_id_and_note_id_index"})5681 -> 0.0012s5682-- transaction_open?()5683 -> 0.0000s5684-- indexes(:design_user_mentions)5685 -> 0.0028s5686-- remove_index(:design_user_mentions, {:algorithm=>:concurrently, :name=>"design_user_mentions_on_design_id_and_note_id_index"})5687 -> 0.0010s5688== 20210818055357 AddUniqueCommitDesignUserMentionIndexes: migrated (0.0276s) =5689== 20210818061156 RemoveProjectProfileCompoundIndexFromDastProfileSchedules: migrating 5690-- execute("DELETE FROM dast_profile_schedules")5691 -> 0.0011s5692-- indexes(:dast_profile_schedules)5693 -> 0.0031s5694-- remove_index(:dast_profile_schedules, [:project_id, :dast_profile_id], {:name=>"index_dast_profile_schedules_on_project_id_and_dast_profile_id"})5695 -> 0.0036s5696== 20210818061156 RemoveProjectProfileCompoundIndexFromDastProfileSchedules: migrated (0.0080s) 5697== 20210818115613 AddIndexProjectIdOnDastProfileSchedule: migrating ===========5698-- add_index(:dast_profile_schedules, :project_id)5699 -> 0.0015s5700== 20210818115613 AddIndexProjectIdOnDastProfileSchedule: migrated (0.0016s) ==5701== 20210818175949 UpdateIntegrationsTriggerTypeNewOnInsert: migrating =========5702-- execute("CREATE OR REPLACE FUNCTION integrations_set_type_new()\nRETURNS TRIGGER AS\n$$\nBEGIN\nUPDATE integrations SET type_new = regexp_replace(NEW.type, '\\A(.+)Service\\Z', 'Integrations::\\1')\nWHERE integrations.id = NEW.id;\nRETURN NULL;\n\nEND\n$$ LANGUAGE PLPGSQL\n")5703 -> 0.0011s5704== 20210818175949 UpdateIntegrationsTriggerTypeNewOnInsert: migrated (0.0012s) 5705== 20210818185548 AddTagIdsIndexToCiPendingBuild: migrating ===================5706-- transaction_open?()5707 -> 0.0000s5708-- index_exists?(:ci_pending_builds, :tag_ids, {:name=>"index_ci_pending_builds_on_tag_ids", :where=>"cardinality(tag_ids) > 0", :algorithm=>:concurrently})5709 -> 0.0034s5710-- add_index(:ci_pending_builds, :tag_ids, {:name=>"index_ci_pending_builds_on_tag_ids", :where=>"cardinality(tag_ids) > 0", :algorithm=>:concurrently})5711 -> 0.0016s5712== 20210818185548 AddTagIdsIndexToCiPendingBuild: migrated (0.0083s) ==========5713== 20210818185845 BackfillProjectsWithCoverage: migrating =====================5714-- Scheduled 0 BackfillProjectsWithCoverage jobs with a maximum of 10000 records per batch and an interval of 120 seconds.5715The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:16 UTC."5716== 20210818185845 BackfillProjectsWithCoverage: migrated (0.0038s) ============5717== 20210818193008 AddFileTemplateProjectToServiceDeskSettings: migrating ======5718-- add_column(:service_desk_settings, :file_template_project_id, :bigint, {:null=>true})5719 -> 0.0013s5720== 20210818193008 AddFileTemplateProjectToServiceDeskSettings: migrated (0.0015s) 5721== 20210818200455 AddFileTemplateProjectForeignKeyToServiceDeskSettings: migrating 5722-- transaction_open?()5723 -> 0.0000s5724-- index_exists?(:service_desk_settings, :file_template_project_id, {:name=>"index_service_desk_settings_on_file_template_project_id", :algorithm=>:concurrently})5725 -> 0.0015s5726-- add_index(:service_desk_settings, :file_template_project_id, {:name=>"index_service_desk_settings_on_file_template_project_id", :algorithm=>:concurrently})5727 -> 0.0014s5728-- transaction_open?()5729 -> 0.0000s5730-- foreign_keys(:service_desk_settings)5731 -> 0.0033s5732-- execute("ALTER TABLE service_desk_settings\nADD CONSTRAINT fk_03afb71f06\nFOREIGN KEY (file_template_project_id)\nREFERENCES projects (id)\nON DELETE SET NULL\nNOT VALID;\n")5733 -> 0.0020s5734-- execute("ALTER TABLE service_desk_settings VALIDATE CONSTRAINT fk_03afb71f06;")5735 -> 0.0019s5736== 20210818200455 AddFileTemplateProjectForeignKeyToServiceDeskSettings: migrated (0.0175s) 5737== 20210818220234 AddDefaultProjectApprovalRulesVulnAllowed: migrating ========5738-- change_column_default(:approval_project_rules, :vulnerabilities_allowed, 0)5739 -> 0.0027s5740-- transaction_open?()5741 -> 0.0001s5742-- exec_query("SELECT COUNT(*) AS count FROM \"approval_project_rules\" WHERE \"approval_project_rules\".\"vulnerabilities_allowed\" IS NULL")5743 -> 0.0009s5744-- change_column_null(:approval_project_rules, :vulnerabilities_allowed, false)5745 -> 0.0007s5746== 20210818220234 AddDefaultProjectApprovalRulesVulnAllowed: migrated (0.0051s) 5747== 20210819120243 AddThrottleFilesApiColumns: migrating =======================5748-- add_column(:application_settings, :throttle_unauthenticated_files_api_requests_per_period, :integer, {:default=>125, :null=>false})5749 -> 0.0028s5750-- add_column(:application_settings, :throttle_unauthenticated_files_api_period_in_seconds, :integer, {:default=>15, :null=>false})5751 -> 0.0021s5752-- add_column(:application_settings, :throttle_authenticated_files_api_requests_per_period, :integer, {:default=>500, :null=>false})5753 -> 0.0021s5754-- add_column(:application_settings, :throttle_authenticated_files_api_period_in_seconds, :integer, {:default=>15, :null=>false})5755 -> 0.0020s5756-- add_column(:application_settings, :throttle_unauthenticated_files_api_enabled, :boolean, {:default=>false, :null=>false})5757 -> 0.0019s5758-- add_column(:application_settings, :throttle_authenticated_files_api_enabled, :boolean, {:default=>false, :null=>false})5759 -> 0.0021s5760== 20210819120243 AddThrottleFilesApiColumns: migrated (0.0137s) ==============5761== 20210819145000 DropTemporaryColumnsAndTriggersForCiBuildsRunnerSession: migrating 5762-- remove_column("ci_builds_runner_session", "build_id_convert_to_bigint")5763 -> 0.0008s5764== 20210819145000 DropTemporaryColumnsAndTriggersForCiBuildsRunnerSession: migrated (0.0045s) 5765== 20210819152723 RemoveTmpIndexApprovalProjectRulesScanners: migrating =======5766-- transaction_open?()5767 -> 0.0000s5768-- indexes(:approval_project_rules)5769 -> 0.0038s5770-- remove_index(:approval_project_rules, {:algorithm=>:concurrently, :name=>"tmp_index_approval_project_rules_scanners"})5771 -> 0.0014s5772== 20210819152723 RemoveTmpIndexApprovalProjectRulesScanners: migrated (0.0081s) 5773== 20210819153805 SetDefaultJobTokenScopeTrue: migrating ======================5774-- change_column_default(:project_ci_cd_settings, :job_token_scope_enabled, {:from=>false, :to=>true})5775 -> 0.0028s5776== 20210819153805 SetDefaultJobTokenScopeTrue: migrated (0.0056s) =============5777== 20210819162047 AddColumnsToNamespaceSettings: migrating ====================5778-- add_column(:namespace_settings, :setup_for_company, :boolean)5779 -> 0.0010s5780-- add_column(:namespace_settings, :jobs_to_be_done, :smallint)5781 -> 0.0007s5782== 20210819162047 AddColumnsToNamespaceSettings: migrated (0.0042s) ===========5783== 20210819183128 ResetSeverityLevelsToNewDefault: migrating ==================5784-- execute("UPDATE approval_project_rules SET severity_levels = '{unknown, high, critical}' WHERE array_length(severity_levels, 1) = 6;")5785 -> 0.0011s5786== 20210819183128 ResetSeverityLevelsToNewDefault: migrated (0.0013s) =========5787== 20210819185500 CreateExternalAuditEventDestinationsTable: migrating ========5788-- create_table(:audit_events_external_audit_event_destinations, {})5789-- quote_column_name(:destination_url)5790 -> 0.0000s5791 -> 0.0055s5792== 20210819185500 CreateExternalAuditEventDestinationsTable: migrated (0.0056s) 5793== 20210820171834 AddForeignKeysForPendingIssueEscalations: migrating =========5794-- transaction_open?()5795 -> 0.0000s5796-- foreign_keys(:incident_management_pending_issue_escalations)5797 -> 0.0036s5798-- add_foreign_key(:incident_management_pending_issue_escalations, :incident_management_escalation_rules, {:column=>:rule_id, :on_delete=>:cascade, :name=>"fk_rails_0470889ee5", :validate=>true})5799 -> 0.0013s5800-- transaction_open?()5801 -> 0.0000s5802-- foreign_keys(:incident_management_pending_issue_escalations)5803 -> 0.0036s5804-- add_foreign_key(:incident_management_pending_issue_escalations, :issues, {:column=>:issue_id, :on_delete=>:cascade, :name=>"fk_rails_636678b3bd", :validate=>true})5805 -> 0.0015s5806== 20210820171834 AddForeignKeysForPendingIssueEscalations: migrated (0.0444s) 5807== 20210823113259 StealMergeRequestDiffCommitUsersMigration: migrating ========5808== 20210823113259 StealMergeRequestDiffCommitUsersMigration: migrated (0.0021s) 5809== 20210823132600 RemoveDuplicateDastSiteTokens: migrating ====================5810== 20210823132600 RemoveDuplicateDastSiteTokens: migrated (0.0052s) ===========5811== 20210823142036 DropTemporaryTriggerForCiJobArtifacts: migrating ============5812== 20210823142036 DropTemporaryTriggerForCiJobArtifacts: migrated (0.0037s) ===5813== 20210823172643 CreateUserGroupCallout: migrating ===========================5814-- create_table(:user_group_callouts)5815 -> 0.0043s5816== 20210823172643 CreateUserGroupCallout: migrated (0.0044s) ==================5817== 20210823193234 RemoveAllowEditingCommitMessagesFromProjectSettings: migrating 5818-- column_exists?(:project_settings, :allow_editing_commit_messages)5819 -> 0.0026s5820== 20210823193234 RemoveAllowEditingCommitMessagesFromProjectSettings: migrated (0.0028s) 5821== 20210823213417 CreateDependencyProxyImageTtlGroupPolicies: migrating =======5822-- create_table(:dependency_proxy_image_ttl_group_policies, {:id=>false})5823 -> 0.0037s5824== 20210823213417 CreateDependencyProxyImageTtlGroupPolicies: migrated (0.0069s) 5825== 20210824055322 AddProjectNamespaceIdToProject: migrating ===================5826-- add_column(:projects, :project_namespace_id, :bigint)5827 -> 0.0017s5828== 20210824055322 AddProjectNamespaceIdToProject: migrated (0.0045s) ==========5829== 20210824102624 AddProjectNamespaceIndexToProject: migrating ================5830-- transaction_open?()5831 -> 0.0000s5832-- index_exists?(:projects, :project_namespace_id, {:name=>"index_projects_on_project_namespace_id", :unique=>true, :algorithm=>:concurrently})5833 -> 0.0270s5834-- add_index(:projects, :project_namespace_id, {:name=>"index_projects_on_project_namespace_id", :unique=>true, :algorithm=>:concurrently})5835 -> 0.0029s5836== 20210824102624 AddProjectNamespaceIndexToProject: migrated (0.0337s) =======5837== 20210824102750 AddProjectNamespaceForeignKeyToProject: migrating ===========5838-- transaction_open?()5839 -> 0.0000s5840-- foreign_keys(:projects)5841 -> 0.0038s5842-- execute("ALTER TABLE projects\nADD CONSTRAINT fk_71625606ac\nFOREIGN KEY (project_namespace_id)\nREFERENCES namespaces (id)\nON DELETE CASCADE\nNOT VALID;\n")5843 -> 0.0027s5844-- execute("ALTER TABLE projects VALIDATE CONSTRAINT fk_71625606ac;")5845 -> 0.0031s5846== 20210824102750 AddProjectNamespaceForeignKeyToProject: migrated (0.0140s) ==5847== 20210824105038 AddTimestampColumnsToCiBuildTraceMetadata: migrating ========5848-- add_column(:ci_build_trace_metadata, :last_archival_attempt_at, :datetime_with_timezone)5849 -> 0.0015s5850-- add_column(:ci_build_trace_metadata, :archived_at, :datetime_with_timezone)5851 -> 0.0009s5852== 20210824105038 AddTimestampColumnsToCiBuildTraceMetadata: migrated (0.0027s) 5853== 20210824160459 AddNotificationLevelToCiNamespaceMonthlyUsages: migrating ===5854-- add_column(:ci_namespace_monthly_usages, :notification_level, :integer, {:limit=>2, :default=>100, :null=>false})5855 -> 0.0018s5856== 20210824160459 AddNotificationLevelToCiNamespaceMonthlyUsages: migrated (0.0020s) 5857== 20210824174615 PrepareCiBuildsMetadataAndCiBuildAsyncIndexes: migrating ====5858-- index_exists?(:ci_builds_metadata, :id_convert_to_bigint, {:unique=>true, :name=>:index_ci_builds_metadata_on_id_convert_to_bigint, :algorithm=>:concurrently})5859 -> 0.0036s5860-- add_index_options(:ci_builds_metadata, :id_convert_to_bigint, {:unique=>true, :name=>:index_ci_builds_metadata_on_id_convert_to_bigint, :algorithm=>:concurrently})5861 -> 0.0002s5862-- index_exists?(:ci_builds_metadata, :build_id_convert_to_bigint, {:unique=>true, :name=>:index_ci_builds_metadata_on_build_id_convert_to_bigint, :algorithm=>:concurrently})5863 -> 0.0035s5864-- add_index_options(:ci_builds_metadata, :build_id_convert_to_bigint, {:unique=>true, :name=>:index_ci_builds_metadata_on_build_id_convert_to_bigint, :algorithm=>:concurrently})5865 -> 0.0001s5866-- index_exists?(:ci_builds_metadata, :build_id_convert_to_bigint, {:where=>"has_exposed_artifacts IS TRUE", :name=>:index_ci_builds_metadata_on_build_id_int8_and_exposed_artifacts, :algorithm=>:concurrently})5867 -> 0.0034s5868-- add_index_options(:ci_builds_metadata, :build_id_convert_to_bigint, {:where=>"has_exposed_artifacts IS TRUE", :name=>:index_ci_builds_metadata_on_build_id_int8_and_exposed_artifacts, :algorithm=>:concurrently})5869 -> 0.0000s5870-- index_name_exists?(:ci_builds_metadata, :index_ci_builds_metadata_on_build_id_int8_where_interruptible)5871 -> 0.0014s5872-- index_exists?(:ci_builds, :id_convert_to_bigint, {:unique=>true, :name=>:index_ci_builds_on_converted_id, :algorithm=>:concurrently})5873 -> 0.0148s5874-- add_index_options(:ci_builds, :id_convert_to_bigint, {:unique=>true, :name=>:index_ci_builds_on_converted_id, :algorithm=>:concurrently})5875 -> 0.0000s5876== 20210824174615 PrepareCiBuildsMetadataAndCiBuildAsyncIndexes: migrated (0.0552s) 5877== 20210825104558 ChangeDescriptionLimitErrorTrackingEvent: migrating =========5878-- transaction_open?()5879 -> 0.0000s5880-- execute("ALTER TABLE error_tracking_error_events\nDROP CONSTRAINT IF EXISTS check_92ecc3077b\n")5881 -> 0.0008s5882-- transaction_open?()5883 -> 0.0000s5884-- current_schema()5885 -> 0.0005s5886-- execute("ALTER TABLE error_tracking_error_events\nADD CONSTRAINT check_92ecc3077b\nCHECK ( char_length(description) <= 1024 )\nNOT VALID;\n")5887 -> 0.0008s5888-- current_schema()5889 -> 0.0004s5890-- execute("ALTER TABLE error_tracking_error_events VALIDATE CONSTRAINT check_92ecc3077b;")5891 -> 0.0008s5892== 20210825104558 ChangeDescriptionLimitErrorTrackingEvent: migrated (0.0119s) 5893== 20210825104656 CreateAnalyticsCycleAnalyticsMergeRequestStageEvents: migrating 5894-- execute("CREATE TABLE analytics_cycle_analytics_merge_request_stage_events (\n stage_event_hash_id bigint NOT NULL,\n merge_request_id bigint NOT NULL,\n group_id bigint NOT NULL,\n project_id bigint NOT NULL,\n milestone_id bigint,\n author_id bigint,\n start_event_timestamp timestamp with time zone NOT NULL,\n end_event_timestamp timestamp with time zone,\n PRIMARY KEY (stage_event_hash_id, merge_request_id)\n) PARTITION BY HASH (stage_event_hash_id)\n")5895 -> 0.0018s5896-- transaction()5897-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 0);\n")5898 -> 0.0019s5899-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 1);\n")5900 -> 0.0018s5901-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 2);\n")5902 -> 0.0019s5903-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 3);\n")5904 -> 0.0018s5905-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 4);\n")5906 -> 0.0017s5907-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 5);\n")5908 -> 0.0016s5909-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 6);\n")5910 -> 0.0017s5911-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 7);\n")5912 -> 0.0018s5913-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 8);\n")5914 -> 0.0020s5915-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 9);\n")5916 -> 0.0015s5917-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 10);\n")5918 -> 0.0017s5919-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 11);\n")5920 -> 0.0021s5921-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 12);\n")5922 -> 0.0021s5923-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 13);\n")5924 -> 0.0021s5925-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 14);\n")5926 -> 0.0020s5927-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 15);\n")5928 -> 0.0021s5929-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 16);\n")5930 -> 0.0020s5931-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 17);\n")5932 -> 0.0020s5933-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 18);\n")5934 -> 0.0016s5935-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 19);\n")5936 -> 0.0016s5937-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 20);\n")5938 -> 0.0019s5939-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 21);\n")5940 -> 0.0021s5941-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 22);\n")5942 -> 0.0021s5943-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 23);\n")5944 -> 0.0020s5945-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 24);\n")5946 -> 0.0019s5947-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 25);\n")5948 -> 0.0020s5949-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 26);\n")5950 -> 0.0017s5951-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 27);\n")5952 -> 0.0019s5953-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 28);\n")5954 -> 0.0019s5955-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 29);\n")5956 -> 0.0020s5957-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 30);\n")5958 -> 0.0020s5959-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31\nPARTITION OF analytics_cycle_analytics_merge_request_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 31);\n")5960 -> 0.0020s5961 -> 0.0640s5962== 20210825104656 CreateAnalyticsCycleAnalyticsMergeRequestStageEvents: migrated (0.0659s) 5963== 20210825110016 CreateAnalyticsCycleAnalyticsIssueStageEvents: migrating ====5964-- execute("CREATE TABLE analytics_cycle_analytics_issue_stage_events (\n stage_event_hash_id integer NOT NULL,\n issue_id integer NOT NULL,\n group_id integer NOT NULL,\n project_id integer NOT NULL,\n milestone_id integer,\n author_id integer,\n start_event_timestamp timestamp with time zone NOT NULL,\n end_event_timestamp timestamp with time zone,\n PRIMARY KEY (stage_event_hash_id, issue_id)\n) PARTITION BY HASH (stage_event_hash_id)\n")5965 -> 0.0025s5966-- transaction()5967-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 0);\n")5968 -> 0.0023s5969-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 1);\n")5970 -> 0.0022s5971-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 2);\n")5972 -> 0.0023s5973-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 3);\n")5974 -> 0.0023s5975-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 4);\n")5976 -> 0.0019s5977-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 5);\n")5978 -> 0.0016s5979-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 6);\n")5980 -> 0.0020s5981-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 7);\n")5982 -> 0.0019s5983-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 8);\n")5984 -> 0.0020s5985-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 9);\n")5986 -> 0.0018s5987-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 10);\n")5988 -> 0.0016s5989-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 11);\n")5990 -> 0.0017s5991-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 12);\n")5992 -> 0.0018s5993-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 13);\n")5994 -> 0.0018s5995-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 14);\n")5996 -> 0.0018s5997-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 15);\n")5998 -> 0.0018s5999-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 16);\n")6000 -> 0.0043s6001-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 17);\n")6002 -> 0.0021s6003-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 18);\n")6004 -> 0.0023s6005-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 19);\n")6006 -> 0.0020s6007-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 20);\n")6008 -> 0.0018s6009-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 21);\n")6010 -> 0.0018s6011-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 22);\n")6012 -> 0.0017s6013-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 23);\n")6014 -> 0.0020s6015-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 24);\n")6016 -> 0.0021s6017-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 25);\n")6018 -> 0.0022s6019-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 26);\n")6020 -> 0.0020s6021-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 27);\n")6022 -> 0.0019s6023-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 28);\n")6024 -> 0.0021s6025-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 29);\n")6026 -> 0.0021s6027-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 30);\n")6028 -> 0.0023s6029-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 31);\n")6030 -> 0.0021s6031 -> 0.0717s6032== 20210825110016 CreateAnalyticsCycleAnalyticsIssueStageEvents: migrated (0.0743s) 6033== 20210825150212 CleanupRemainingOrphanInvites: migrating ====================6034-- transaction_open?()6035 -> 0.0001s6036-- index_exists?(:members, :id, {:where=>"invite_token IS NOT NULL AND user_id IS NOT NULL", :name=>"tmp_idx_members_with_orphaned_invites", :algorithm=>:concurrently})6037 -> 0.0111s6038-- add_index(:members, :id, {:where=>"invite_token IS NOT NULL AND user_id IS NOT NULL", :name=>"tmp_idx_members_with_orphaned_invites", :algorithm=>:concurrently})6039 -> 0.0030s6040-- transaction_open?()6041 -> 0.0000s6042-- indexes(:members)6043 -> 0.0073s6044-- remove_index(:members, {:algorithm=>:concurrently, :name=>"tmp_idx_members_with_orphaned_invites"})6045 -> 0.0013s6046== 20210825150212 CleanupRemainingOrphanInvites: migrated (0.0354s) ===========6047== 20210825182303 RemoveDuplicateDastSiteTokensWithSameToken: migrating =======6048-- execute("WITH duplicate_tokens AS(\n SELECT id, rank() OVER (PARTITION BY token ORDER BY id) r FROM dast_site_tokens\n )\n DELETE FROM dast_site_tokens c USING duplicate_tokens t\n WHERE c.id = t.id AND t.r > 1;")6049 -> 0.0013s6050-- add_index(:dast_site_tokens, :token, {:name=>"index_dast_site_token_on_token", :unique=>true})6051 -> 0.0012s6052== 20210825182303 RemoveDuplicateDastSiteTokensWithSameToken: migrated (0.0028s) 6053== 20210825190458 AddUserDeactivationEmailOptionToApplicationSettings: migrating 6054-- add_column(:application_settings, :user_deactivation_emails_enabled, :boolean, {:default=>true, :null=>false})6055 -> 0.0031s6056== 20210825190458 AddUserDeactivationEmailOptionToApplicationSettings: migrated (0.0033s) 6057== 20210825193448 AddIterationCadenceIdToIssueBoards: migrating ===============6058-- add_column(:boards, :iteration_cadence_id, :bigint)6059 -> 0.0011s6060== 20210825193448 AddIterationCadenceIdToIssueBoards: migrated (0.0012s) ======6061== 20210825193548 AddFkToIterationCadenceIdOnBoards: migrating ================6062-- transaction_open?()6063 -> 0.0000s6064-- index_exists?(:boards, :iteration_cadence_id, {:name=>"index_boards_on_iteration_cadence_id", :algorithm=>:concurrently})6065 -> 0.0034s6066-- add_index(:boards, :iteration_cadence_id, {:name=>"index_boards_on_iteration_cadence_id", :algorithm=>:concurrently})6067 -> 0.0017s6068-- transaction_open?()6069 -> 0.0000s6070-- foreign_keys(:boards)6071 -> 0.0029s6072-- transaction_open?()6073 -> 0.0000s6074-- execute("ALTER TABLE boards\nADD CONSTRAINT fk_ab0a250ff6\nFOREIGN KEY (iteration_cadence_id)\nREFERENCES iterations_cadences (id)\nON DELETE CASCADE\nNOT VALID;\n")6075 -> 0.0014s6076-- execute("ALTER TABLE boards VALIDATE CONSTRAINT fk_ab0a250ff6;")6077 -> 0.0014s6078== 20210825193548 AddFkToIterationCadenceIdOnBoards: migrated (0.0199s) =======6079== 20210825193652 BackfillCadenceIdForBoardsScopedToIteration: migrating ======6080== 20210825193652 BackfillCadenceIdForBoardsScopedToIteration: migrated (0.0079s) 6081== 20210826110839 PrepareIndexesForCiJobArtifactsExpireAtUnlocked: migrating ==6082-- index_exists?("ci_job_artifacts", [:expire_at], {:where=>"locked = 0", :name=>"ci_job_artifacts_expire_at_unlocked_idx", :algorithm=>:concurrently})6083 -> 0.0052s6084-- add_index_options("ci_job_artifacts", [:expire_at], {:where=>"locked = 0", :name=>"ci_job_artifacts_expire_at_unlocked_idx", :algorithm=>:concurrently})6085 -> 0.0001s6086== 20210826110839 PrepareIndexesForCiJobArtifactsExpireAtUnlocked: migrated (0.0123s) 6087== 20210826120834 AddLockedToCiJobArtifacts: migrating ========================6088-- add_column("ci_job_artifacts", "locked", :smallint, {:default=>2})6089 -> 0.0020s6090== 20210826120834 AddLockedToCiJobArtifacts: migrated (0.0052s) ===============6091== 20210826122748 CreateLooseForeignKeysDeletedRecords: migrating =============6092-- execute("CREATE TABLE loose_foreign_keys_deleted_records (\n created_at timestamp with time zone NOT NULL DEFAULT NOW(),\n deleted_table_name text NOT NULL,\n deleted_table_primary_key_value bigint NOT NULL,\n PRIMARY KEY (created_at, deleted_table_name, deleted_table_primary_key_value),\n CONSTRAINT check_7229f9527e CHECK ((char_length(deleted_table_name) <= 63))\n) PARTITION BY RANGE (created_at);\n")6093 -> 0.0023s6094-- table_exists?("gitlab_partitions_dynamic.loose_foreign_keys_deleted_records_000000")6095 -> 0.0009s6096-- execute("CREATE TABLE gitlab_partitions_dynamic.loose_foreign_keys_deleted_records_000000 PARTITION OF loose_foreign_keys_deleted_records\nFOR VALUES FROM (MINVALUE) TO ('2021-09-01')\n")6097 -> 0.0026s6098-- table_exists?("gitlab_partitions_dynamic.loose_foreign_keys_deleted_records_202109")6099 -> 0.0009s6100-- execute("CREATE TABLE gitlab_partitions_dynamic.loose_foreign_keys_deleted_records_202109 PARTITION OF loose_foreign_keys_deleted_records\nFOR VALUES FROM ('2021-09-01') TO ('2021-10-01')\n")6101 -> 0.0026s6102-- table_exists?("gitlab_partitions_dynamic.loose_foreign_keys_deleted_records_202110")6103 -> 0.0010s6104-- execute("CREATE TABLE gitlab_partitions_dynamic.loose_foreign_keys_deleted_records_202110 PARTITION OF loose_foreign_keys_deleted_records\nFOR VALUES FROM ('2021-10-01') TO ('2021-11-01')\n")6105 -> 0.0029s6106-- table_exists?("gitlab_partitions_dynamic.loose_foreign_keys_deleted_records_202111")6107 -> 0.0009s6108-- execute("CREATE TABLE gitlab_partitions_dynamic.loose_foreign_keys_deleted_records_202111 PARTITION OF loose_foreign_keys_deleted_records\nFOR VALUES FROM ('2021-11-01') TO ('2021-12-01')\n")6109 -> 0.0028s6110-- table_exists?("gitlab_partitions_dynamic.loose_foreign_keys_deleted_records_202112")6111 -> 0.0008s6112-- execute("CREATE TABLE gitlab_partitions_dynamic.loose_foreign_keys_deleted_records_202112 PARTITION OF loose_foreign_keys_deleted_records\nFOR VALUES FROM ('2021-12-01') TO ('2022-01-01')\n")6113 -> 0.0030s6114-- table_exists?("gitlab_partitions_dynamic.loose_foreign_keys_deleted_records_202201")6115 -> 0.0008s6116-- execute("CREATE TABLE gitlab_partitions_dynamic.loose_foreign_keys_deleted_records_202201 PARTITION OF loose_foreign_keys_deleted_records\nFOR VALUES FROM ('2022-01-01') TO ('2022-02-01')\n")6117 -> 0.0029s6118== 20210826122748 CreateLooseForeignKeysDeletedRecords: migrated (0.0266s) ====6119== 20210826124311 AddIndexToErrorTrackingError: migrating =====================6120-- transaction_open?()6121 -> 0.0000s6122-- index_exists?(:error_tracking_errors, [:project_id, :status, :last_seen_at], {:name=>"index_et_errors_on_project_id_and_status_and_last_seen_at", :algorithm=>:concurrently})6123 -> 0.0026s6124-- add_index(:error_tracking_errors, [:project_id, :status, :last_seen_at], {:name=>"index_et_errors_on_project_id_and_status_and_last_seen_at", :algorithm=>:concurrently})6125 -> 0.0018s6126-- transaction_open?()6127 -> 0.0000s6128-- index_exists?(:error_tracking_errors, [:project_id, :status, :first_seen_at], {:name=>"index_et_errors_on_project_id_and_status_and_first_seen_at", :algorithm=>:concurrently})6129 -> 0.0028s6130-- add_index(:error_tracking_errors, [:project_id, :status, :first_seen_at], {:name=>"index_et_errors_on_project_id_and_status_and_first_seen_at", :algorithm=>:concurrently})6131 -> 0.0017s6132-- transaction_open?()6133 -> 0.0000s6134-- index_exists?(:error_tracking_errors, [:project_id, :status, :events_count], {:name=>"index_et_errors_on_project_id_and_status_and_events_count", :algorithm=>:concurrently})6135 -> 0.0032s6136-- add_index(:error_tracking_errors, [:project_id, :status, :events_count], {:name=>"index_et_errors_on_project_id_and_status_and_events_count", :algorithm=>:concurrently})6137 -> 0.0017s6138-- transaction_open?()6139 -> 0.0000s6140-- index_exists?(:error_tracking_errors, [:project_id, :status, :id], {:name=>"index_et_errors_on_project_id_and_status_and_id", :algorithm=>:concurrently})6141 -> 0.0036s6142-- add_index(:error_tracking_errors, [:project_id, :status, :id], {:name=>"index_et_errors_on_project_id_and_status_and_id", :algorithm=>:concurrently})6143 -> 0.0017s6144== 20210826124311 AddIndexToErrorTrackingError: migrated (0.0341s) ============6145== 20210826145509 AddFunctionForInsertingDeletedRecords: migrating ============6146-- execute("CREATE OR REPLACE FUNCTION insert_into_loose_foreign_keys_deleted_records()\nRETURNS TRIGGER AS\n$$\nBEGIN\n INSERT INTO loose_foreign_keys_deleted_records\n (deleted_table_name, deleted_table_primary_key_value)\n SELECT TG_TABLE_NAME, old_table.id FROM old_table\n ON CONFLICT DO NOTHING;\n\n RETURN NULL;\nEND\n$$ LANGUAGE PLPGSQL\n")6147 -> 0.0012s6148== 20210826145509 AddFunctionForInsertingDeletedRecords: migrated (0.0013s) ===6149== 20210826170902 AddThrottleUnauthenticatedApiColumns: migrating =============6150-- add_column(:application_settings, :throttle_unauthenticated_api_enabled, :boolean, {:default=>false, :null=>false})6151 -> 0.0030s6152-- add_column(:application_settings, :throttle_unauthenticated_api_requests_per_period, :integer, {:default=>3600, :null=>false})6153 -> 0.0025s6154-- add_column(:application_settings, :throttle_unauthenticated_api_period_in_seconds, :integer, {:default=>3600, :null=>false})6155 -> 0.0022s6156== 20210826170902 AddThrottleUnauthenticatedApiColumns: migrated (0.0082s) ====6157== 20210826171758 InitializeThrottleUnauthenticatedApiColumns: migrating ======6158== 20210826171758 InitializeThrottleUnauthenticatedApiColumns: migrated (0.0030s) 6159== 20210826193907 AddUniqueIndexDastSiteTokenProjectIdAndUrl: migrating =======6160-- transaction_open?()6161 -> 0.0000s6162-- index_exists?(:dast_site_tokens, [:project_id, :url], {:name=>"index_dast_site_token_on_project_id_and_url", :unique=>true, :algorithm=>:concurrently})6163 -> 0.0029s6164-- add_index(:dast_site_tokens, [:project_id, :url], {:name=>"index_dast_site_token_on_project_id_and_url", :unique=>true, :algorithm=>:concurrently})6165 -> 0.0016s6166== 20210826193907 AddUniqueIndexDastSiteTokenProjectIdAndUrl: migrated (0.0087s) 6167== 20210830085837 AddThrottleAuthenticatedGitLfsColumns: migrating ============6168-- add_column(:application_settings, :throttle_authenticated_git_lfs_requests_per_period, :integer, {:default=>1000, :null=>false})6169 -> 0.0026s6170-- add_column(:application_settings, :throttle_authenticated_git_lfs_period_in_seconds, :integer, {:default=>60, :null=>false})6171 -> 0.0022s6172-- add_column(:application_settings, :throttle_authenticated_git_lfs_enabled, :boolean, {:default=>false, :null=>false})6173 -> 0.0021s6174== 20210830085837 AddThrottleAuthenticatedGitLfsColumns: migrated (0.0101s) ===6175== 20210830104800 RescheduleExtractProjectTopicsIntoSeparateTable: migrating ==6176-- Scheduled 0 ExtractProjectTopicsIntoSeparateTable jobs with an interval of 240 seconds.6177The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:17 UTC."6178== 20210830104800 RescheduleExtractProjectTopicsIntoSeparateTable: migrated (0.0019s) 6179== 20210830140524 AddStateToMember: migrating =================================6180-- column_exists?(:members, :state)6181 -> 0.0027s6182-- add_column(:members, :state, :integer, {:limit=>2, :default=>0})6183 -> 0.0014s6184== 20210830140524 AddStateToMember: migrated (0.0067s) ========================6185== 20210830154358 AddYamlLimitConstraints: migrating ==========================6186-- transaction_open?()6187 -> 0.0000s6188-- current_schema()6189 -> 0.0004s6190-- execute("ALTER TABLE application_settings\nADD CONSTRAINT app_settings_yaml_max_size_positive\nCHECK ( max_yaml_size_bytes > 0 )\nNOT VALID;\n")6191 -> 0.0020s6192-- current_schema()6193 -> 0.0005s6194-- execute("ALTER TABLE application_settings VALIDATE CONSTRAINT app_settings_yaml_max_size_positive;")6195 -> 0.0015s6196-- transaction_open?()6197 -> 0.0000s6198-- current_schema()6199 -> 0.0005s6200-- execute("ALTER TABLE application_settings\nADD CONSTRAINT app_settings_yaml_max_depth_positive\nCHECK ( max_yaml_depth > 0 )\nNOT VALID;\n")6201 -> 0.0017s6202-- current_schema()6203 -> 0.0004s6204-- execute("ALTER TABLE application_settings VALIDATE CONSTRAINT app_settings_yaml_max_depth_positive;")6205 -> 0.0016s6206== 20210830154358 AddYamlLimitConstraints: migrated (0.0209s) =================6207== 20210831123008 DropTemporaryTriggerForCiSourcesPipelines: migrating ========6208-- transaction_open?()6209 -> 0.0000s6210== 20210831123008 DropTemporaryTriggerForCiSourcesPipelines: migrated (0.0040s) 6211== 20210831134840 AddPackageFileIdChannelIdxToPackagesHelmFileMetadata: migrating 6212-- transaction_open?()6213 -> 0.0000s6214-- index_exists?(:packages_helm_file_metadata, [:package_file_id, :channel], {:name=>"index_packages_helm_file_metadata_on_pf_id_and_channel", :algorithm=>:concurrently})6215 -> 0.0021s6216-- add_index(:packages_helm_file_metadata, [:package_file_id, :channel], {:name=>"index_packages_helm_file_metadata_on_pf_id_and_channel", :algorithm=>:concurrently})6217 -> 0.0015s6218== 20210831134840 AddPackageFileIdChannelIdxToPackagesHelmFileMetadata: migrated (0.0068s) 6219== 20210831135249 AddInstallableHelmPkgsIdxToPackages: migrating ==============6220-- transaction_open?()6221 -> 0.0000s6222-- index_exists?(:packages_packages, [:project_id, :id], {:name=>"idx_installable_helm_pkgs_on_project_id_id", :algorithm=>:concurrently})6223 -> 0.0079s6224-- add_index(:packages_packages, [:project_id, :id], {:name=>"idx_installable_helm_pkgs_on_project_id_id", :algorithm=>:concurrently})6225 -> 0.0016s6226== 20210831135249 AddInstallableHelmPkgsIdxToPackages: migrated (0.0127s) =====6227== 20210831203408 UpsertBaseWorkItemTypes: migrating ==========================6228== 20210831203408 UpsertBaseWorkItemTypes: migrated (0.0133s) =================6229== 20210901044202 PushEventPayloadsBigintConversionRemoveTriggers: migrating ==6230== 20210901044202 PushEventPayloadsBigintConversionRemoveTriggers: migrated (0.0036s) 6231== 20210901044237 EventsBigintConversionRemoveTriggers: migrating =============6232-- transaction_open?()6233 -> 0.0000s6234== 20210901044237 EventsBigintConversionRemoveTriggers: migrated (0.0040s) ====6235== 20210901065504 AddIndexOnNameAndIdToPublicGroups: migrating ================6236-- transaction_open?()6237 -> 0.0000s6238-- index_exists?(:namespaces, [:name, :id], {:name=>"index_namespaces_public_groups_name_id", :where=>"type = 'Group' AND visibility_level = 20", :algorithm=>:concurrently})6239 -> 0.0127s6240-- add_index(:namespaces, [:name, :id], {:name=>"index_namespaces_public_groups_name_id", :where=>"type = 'Group' AND visibility_level = 20", :algorithm=>:concurrently})6241 -> 0.0025s6242== 20210901065504 AddIndexOnNameAndIdToPublicGroups: migrated (0.0188s) =======6243== 20210901153324 SliceMergeRequestDiffCommitMigrations: migrating ============6244== 20210901153324 SliceMergeRequestDiffCommitMigrations: migrated (0.0015s) ===6245== 20210901184511 PrepareAsyncIndexesForCiBuilds: migrating ===================6246-- index_exists?(:ci_builds, :stage_id_convert_to_bigint, {:name=>:index_ci_builds_on_converted_stage_id, :algorithm=>:concurrently})6247 -> 0.0149s6248-- add_index_options(:ci_builds, :stage_id_convert_to_bigint, {:name=>:index_ci_builds_on_converted_stage_id, :algorithm=>:concurrently})6249 -> 0.0001s6250-- index_exists?(:ci_builds, [:commit_id, :artifacts_expire_at, :id_convert_to_bigint], {:where=>"type::text = 'Ci::Build'::text\n AND (retried = false OR retried IS NULL)\n AND (name::text = ANY (ARRAY['sast'::character varying::text,\n 'secret_detection'::character varying::text,\n 'dependency_scanning'::character varying::text,\n 'container_scanning'::character varying::text,\n 'dast'::character varying::text]))", :name=>:index_ci_builds_on_commit_id_expire_at_and_converted_id, :algorithm=>:concurrently})6251 -> 0.0150s6252-- add_index_options(:ci_builds, [:commit_id, :artifacts_expire_at, :id_convert_to_bigint], {:where=>"type::text = 'Ci::Build'::text\n AND (retried = false OR retried IS NULL)\n AND (name::text = ANY (ARRAY['sast'::character varying::text,\n 'secret_detection'::character varying::text,\n 'dependency_scanning'::character varying::text,\n 'container_scanning'::character varying::text,\n 'dast'::character varying::text]))", :name=>:index_ci_builds_on_commit_id_expire_at_and_converted_id, :algorithm=>:concurrently})6253 -> 0.0003s6254-- index_exists?(:ci_builds, [:project_id, :id_convert_to_bigint], {:name=>:index_ci_builds_on_project_and_converted_id, :algorithm=>:concurrently})6255 -> 0.0146s6256-- add_index_options(:ci_builds, [:project_id, :id_convert_to_bigint], {:name=>:index_ci_builds_on_project_and_converted_id, :algorithm=>:concurrently})6257 -> 0.0000s6258-- index_exists?(:ci_builds, [:runner_id, :id_convert_to_bigint], {:order=>{:id_convert_to_bigint=>:desc}, :name=>:index_ci_builds_on_runner_id_and_converted_id_desc, :algorithm=>:concurrently})6259 -> 0.0191s6260-- add_index_options(:ci_builds, [:runner_id, :id_convert_to_bigint], {:order=>{:id_convert_to_bigint=>:desc}, :name=>:index_ci_builds_on_runner_id_and_converted_id_desc, :algorithm=>:concurrently})6261 -> 0.0001s6262-- index_exists?(:ci_builds, [:resource_group_id, :id_convert_to_bigint], {:where=>"resource_group_id IS NOT NULL", :name=>:index_ci_builds_on_resource_group_and_converted_id, :algorithm=>:concurrently})6263 -> 0.0148s6264-- add_index_options(:ci_builds, [:resource_group_id, :id_convert_to_bigint], {:where=>"resource_group_id IS NOT NULL", :name=>:index_ci_builds_on_resource_group_and_converted_id, :algorithm=>:concurrently})6265 -> 0.0001s6266-- index_exists?(:ci_builds, [:name, :id_convert_to_bigint], {:where=>"(name::text = ANY (ARRAY['container_scanning'::character varying::text,\n 'dast'::character varying::text,\n 'dependency_scanning'::character varying::text,\n 'license_management'::character varying::text,\n 'sast'::character varying::text,\n 'secret_detection'::character varying::text,\n 'coverage_fuzzing'::character varying::text,\n 'license_scanning'::character varying::text])\n ) AND type::text = 'Ci::Build'::text", :name=>:index_security_ci_builds_on_name_and_converted_id_parser, :algorithm=>:concurrently})6267 -> 0.0148s6268-- add_index_options(:ci_builds, [:name, :id_convert_to_bigint], {:where=>"(name::text = ANY (ARRAY['container_scanning'::character varying::text,\n 'dast'::character varying::text,\n 'dependency_scanning'::character varying::text,\n 'license_management'::character varying::text,\n 'sast'::character varying::text,\n 'secret_detection'::character varying::text,\n 'coverage_fuzzing'::character varying::text,\n 'license_scanning'::character varying::text])\n ) AND type::text = 'Ci::Build'::text", :name=>:index_security_ci_builds_on_name_and_converted_id_parser, :algorithm=>:concurrently})6269 -> 0.0001s6270-- index_name_exists?(:ci_builds, :index_ci_builds_runner_id_and_converted_id_pending_covering)6271 -> 0.0014s6272== 20210901184511 PrepareAsyncIndexesForCiBuilds: migrated (0.1304s) ==========6273== 20210902144144 DropTemporaryColumnsAndTriggersForCiBuildNeeds: migrating ===6274-- transaction_open?()6275 -> 0.0000s6276-- remove_column("ci_build_needs", "build_id_convert_to_bigint")6277 -> 0.0008s6278== 20210902144144 DropTemporaryColumnsAndTriggersForCiBuildNeeds: migrated (0.0045s) 6279== 20210902171406 AddLatestColumnIntoTheSecurityScansTable: migrating =========6280-- add_column(:security_scans, :latest, :boolean, {:default=>true, :null=>false})6281 -> 0.0017s6282== 20210902171406 AddLatestColumnIntoTheSecurityScansTable: migrated (0.0019s) 6283== 20210902171808 SetDefaultJobTokenScopeFalse: migrating =====================6284-- transaction_open?()6285 -> 0.0000s6286-- change_column_default(:project_ci_cd_settings, :job_token_scope_enabled, {:from=>true, :to=>false})6287 -> 0.0035s6288== 20210902171808 SetDefaultJobTokenScopeFalse: migrated (0.0064s) ============6289== 20210902184334 AddExpireAccessTokensToDoorkeeperApplication: migrating =====6290-- add_column(:oauth_applications, :expire_access_tokens, :boolean, {:default=>false, :null=>false})6291 -> 0.0017s6292== 20210902184334 AddExpireAccessTokensToDoorkeeperApplication: migrated (0.0017s) 6293== 20210903054158 RecreateStageIssueEventsTableWithBigints: migrating =========6294-- drop_table(:analytics_cycle_analytics_issue_stage_events)6295 -> 0.0093s6296-- execute("CREATE TABLE analytics_cycle_analytics_issue_stage_events (\n stage_event_hash_id bigint NOT NULL,\n issue_id bigint NOT NULL,\n group_id bigint NOT NULL,\n project_id bigint NOT NULL,\n milestone_id bigint,\n author_id bigint,\n start_event_timestamp timestamp with time zone NOT NULL,\n end_event_timestamp timestamp with time zone,\n PRIMARY KEY (stage_event_hash_id, issue_id)\n) PARTITION BY HASH (stage_event_hash_id)\n")6297 -> 0.0015s6298-- transaction()6299-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 0);\n")6300 -> 0.0017s6301-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 1);\n")6302 -> 0.0017s6303-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 2);\n")6304 -> 0.0018s6305-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 3);\n")6306 -> 0.0018s6307-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 4);\n")6308 -> 0.0017s6309-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 5);\n")6310 -> 0.0017s6311-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 6);\n")6312 -> 0.0020s6313-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 7);\n")6314 -> 0.0018s6315-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 8);\n")6316 -> 0.0019s6317-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 9);\n")6318 -> 0.0024s6319-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 10);\n")6320 -> 0.0019s6321-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 11);\n")6322 -> 0.0020s6323-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 12);\n")6324 -> 0.0023s6325-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 13);\n")6326 -> 0.0023s6327-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 14);\n")6328 -> 0.0021s6329-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 15);\n")6330 -> 0.0020s6331-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 16);\n")6332 -> 0.0018s6333-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 17);\n")6334 -> 0.0021s6335-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 18);\n")6336 -> 0.0016s6337-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 19);\n")6338 -> 0.0016s6339-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 20);\n")6340 -> 0.0017s6341-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 21);\n")6342 -> 0.0018s6343-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 22);\n")6344 -> 0.0020s6345-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 23);\n")6346 -> 0.0021s6347-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 24);\n")6348 -> 0.0023s6349-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 25);\n")6350 -> 0.0022s6351-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 26);\n")6352 -> 0.0017s6353-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 27);\n")6354 -> 0.0018s6355-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 28);\n")6356 -> 0.0018s6357-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 29);\n")6358 -> 0.0020s6359-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 30);\n")6360 -> 0.0021s6361-- execute("CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31\nPARTITION OF analytics_cycle_analytics_issue_stage_events\nFOR VALUES WITH (MODULUS 32, REMAINDER 31);\n")6362 -> 0.0020s6363 -> 0.0664s6364== 20210903054158 RecreateStageIssueEventsTableWithBigints: migrated (0.0775s) 6365== 20210906100021 DeleteProjectNamespaceTrigger: migrating ====================6366-- execute("CREATE OR REPLACE FUNCTION delete_associated_project_namespace()\nRETURNS TRIGGER AS\n$$\nBEGIN\nDELETE FROM namespaces\nWHERE namespaces.id = OLD.project_namespace_id AND\nnamespaces.type = 'Project';\nRETURN NULL;\n\nEND\n$$ LANGUAGE PLPGSQL\n")6367 -> 0.0012s6368-- execute("CREATE TRIGGER trigger_delete_project_namespace_on_project_delete AFTER DELETE ON projects FOR EACH ROW WHEN (OLD.project_namespace_id IS NOT NULL) EXECUTE FUNCTION delete_associated_project_namespace();")6369 -> 0.0011s6370== 20210906100021 DeleteProjectNamespaceTrigger: migrated (0.0027s) ===========6371== 20210906100316 DropTemporaryColumnsAndTriggersForCiBuildTraceChunks: migrating 6372-- transaction_open?()6373 -> 0.0000s6374-- remove_column("ci_build_trace_chunks", "build_id_convert_to_bigint")6375 -> 0.0008s6376== 20210906100316 DropTemporaryColumnsAndTriggersForCiBuildTraceChunks: migrated (0.0046s) 6377== 20210906130643 DropTemporaryColumnsAndTriggersForTaggings: migrating =======6378-- remove_column("taggings", "id_convert_to_bigint")6379 -> 0.0008s6380-- remove_column("taggings", "taggable_id_convert_to_bigint")6381 -> 0.0006s6382== 20210906130643 DropTemporaryColumnsAndTriggersForTaggings: migrated (0.0026s) 6383== 20210907013944 CleanupBigintConversionForCiBuildsMetadata: migrating =======6384-- remove_column(:ci_builds_metadata, "id_convert_to_bigint")6385 -> 0.0008s6386-- remove_column(:ci_builds_metadata, "build_id_convert_to_bigint")6387 -> 0.0008s6388== 20210907013944 CleanupBigintConversionForCiBuildsMetadata: migrated (0.0039s) 6389== 20210907021940 CleanupBigintConversionForCiStages: migrating ===============6390-- transaction_open?()6391 -> 0.0000s6392-- remove_column(:ci_stages, "id_convert_to_bigint")6393 -> 0.0009s6394== 20210907021940 CleanupBigintConversionForCiStages: migrated (0.0045s) ======6395== 20210907033745 CleanupBigintConversionForDeployments: migrating ============6396-- transaction_open?()6397 -> 0.0000s6398-- remove_column(:deployments, "deployable_id_convert_to_bigint")6399 -> 0.0007s6400== 20210907033745 CleanupBigintConversionForDeployments: migrated (0.0042s) ===6401== 20210907041000 CleanupBigintConversionForGeoJobArtifactDeletedEvents: migrating 6402-- transaction_open?()6403 -> 0.0000s6404-- remove_column(:geo_job_artifact_deleted_events, "job_artifact_id_convert_to_bigint")6405 -> 0.0007s6406== 20210907041000 CleanupBigintConversionForGeoJobArtifactDeletedEvents: migrated (0.0042s) 6407== 20210907182337 AddGroupIdFkeyForUserGroupCallout: migrating ================6408-- transaction_open?()6409 -> 0.0000s6410-- foreign_keys(:user_group_callouts)6411 -> 0.0034s6412-- transaction_open?()6413 -> 0.0001s6414-- execute("ALTER TABLE user_group_callouts\nADD CONSTRAINT fk_9dc8b9d4b2\nFOREIGN KEY (group_id)\nREFERENCES namespaces (id)\nON DELETE CASCADE\nNOT VALID;\n")6415 -> 0.0016s6416-- execute("ALTER TABLE user_group_callouts VALIDATE CONSTRAINT fk_9dc8b9d4b2;")6417 -> 0.0015s6418== 20210907182337 AddGroupIdFkeyForUserGroupCallout: migrated (0.0101s) =======6419== 20210907182359 AddUserIdFkeyForUserGroupCallout: migrating =================6420-- transaction_open?()6421 -> 0.0000s6422-- foreign_keys(:user_group_callouts)6423 -> 0.0034s6424-- transaction_open?()6425 -> 0.0000s6426-- execute("ALTER TABLE user_group_callouts\nADD CONSTRAINT fk_c366e12ec3\nFOREIGN KEY (user_id)\nREFERENCES users (id)\nON DELETE CASCADE\nNOT VALID;\n")6427 -> 0.0016s6428-- execute("ALTER TABLE user_group_callouts VALIDATE CONSTRAINT fk_c366e12ec3;")6429 -> 0.0016s6430== 20210907182359 AddUserIdFkeyForUserGroupCallout: migrated (0.0101s) ========6431== 20210907211557 FinalizeCiBuildsBigintConversion: migrating =================6432-- foreign_keys(:dep_ci_build_trace_sections)6433 -> 0.0037s6434-- remove_foreign_key(:dep_ci_build_trace_sections, "ci_builds", {:column=>:build_id})6435 -> 0.0047s6436-- foreign_keys(:ci_resources)6437 -> 0.0035s6438-- foreign_keys(:ci_sources_pipelines)6439 -> 0.0036s6440-- transaction_open?()6441 -> 0.0000s6442-- index_exists?("ci_builds", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_builds_on_converted_id", :algorithm=>:concurrently})6443 -> 0.0154s6444-- add_index("ci_builds", :id_convert_to_bigint, {:unique=>true, :name=>"index_ci_builds_on_converted_id", :algorithm=>:concurrently})6445 -> 0.0019s6446-- transaction_open?()6447 -> 0.0000s6448-- index_exists?("ci_builds", [:commit_id, :artifacts_expire_at, :id_convert_to_bigint], {:where=>"type::text = 'Ci::Build'::text\n AND (retried = false OR retried IS NULL)\n AND (name::text = ANY (ARRAY['sast'::character varying::text,\n 'secret_detection'::character varying::text,\n 'dependency_scanning'::character varying::text,\n 'container_scanning'::character varying::text,\n 'dast'::character varying::text]))", :name=>:index_ci_builds_on_commit_id_expire_at_and_converted_id, :algorithm=>:concurrently})6449 -> 0.0161s6450-- add_index("ci_builds", [:commit_id, :artifacts_expire_at, :id_convert_to_bigint], {:where=>"type::text = 'Ci::Build'::text\n AND (retried = false OR retried IS NULL)\n AND (name::text = ANY (ARRAY['sast'::character varying::text,\n 'secret_detection'::character varying::text,\n 'dependency_scanning'::character varying::text,\n 'container_scanning'::character varying::text,\n 'dast'::character varying::text]))", :name=>:index_ci_builds_on_commit_id_expire_at_and_converted_id, :algorithm=>:concurrently})6451 -> 0.0023s6452-- transaction_open?()6453 -> 0.0000s6454-- index_exists?("ci_builds", [:project_id, :id_convert_to_bigint], {:name=>:index_ci_builds_on_project_and_converted_id, :algorithm=>:concurrently})6455 -> 0.0164s6456-- add_index("ci_builds", [:project_id, :id_convert_to_bigint], {:name=>:index_ci_builds_on_project_and_converted_id, :algorithm=>:concurrently})6457 -> 0.0018s6458-- transaction_open?()6459 -> 0.0000s6460-- index_exists?("ci_builds", [:runner_id, :id_convert_to_bigint], {:order=>{:id_convert_to_bigint=>:desc}, :name=>:index_ci_builds_on_runner_id_and_converted_id_desc, :algorithm=>:concurrently})6461 -> 0.0166s6462-- add_index("ci_builds", [:runner_id, :id_convert_to_bigint], {:order=>{:id_convert_to_bigint=>:desc}, :name=>:index_ci_builds_on_runner_id_and_converted_id_desc, :algorithm=>:concurrently})6463 -> 0.0020s6464-- transaction_open?()6465 -> 0.0000s6466-- index_exists?("ci_builds", [:resource_group_id, :id_convert_to_bigint], {:where=>"resource_group_id IS NOT NULL", :name=>:index_ci_builds_on_resource_group_and_converted_id, :algorithm=>:concurrently})6467 -> 0.0170s6468-- add_index("ci_builds", [:resource_group_id, :id_convert_to_bigint], {:where=>"resource_group_id IS NOT NULL", :name=>:index_ci_builds_on_resource_group_and_converted_id, :algorithm=>:concurrently})6469 -> 0.0019s6470-- transaction_open?()6471 -> 0.0000s6472-- index_exists?("ci_builds", [:name, :id_convert_to_bigint], {:where=>"(name::text = ANY (ARRAY['container_scanning'::character varying::text,\n 'dast'::character varying::text,\n 'dependency_scanning'::character varying::text,\n 'license_management'::character varying::text,\n 'sast'::character varying::text,\n 'secret_detection'::character varying::text,\n 'coverage_fuzzing'::character varying::text,\n 'license_scanning'::character varying::text])\n ) AND type::text = 'Ci::Build'::text", :name=>:index_security_ci_builds_on_name_and_converted_id_parser, :algorithm=>:concurrently})6473 -> 0.0175s6474-- add_index("ci_builds", [:name, :id_convert_to_bigint], {:where=>"(name::text = ANY (ARRAY['container_scanning'::character varying::text,\n 'dast'::character varying::text,\n 'dependency_scanning'::character varying::text,\n 'license_management'::character varying::text,\n 'sast'::character varying::text,\n 'secret_detection'::character varying::text,\n 'coverage_fuzzing'::character varying::text,\n 'license_scanning'::character varying::text])\n ) AND type::text = 'Ci::Build'::text", :name=>:index_security_ci_builds_on_name_and_converted_id_parser, :algorithm=>:concurrently})6475 -> 0.0020s6476-- index_name_exists?("ci_builds", :index_ci_builds_runner_id_and_converted_id_pending_covering)6477 -> 0.0013s6478-- execute("CREATE INDEX CONCURRENTLY index_ci_builds_runner_id_and_converted_id_pending_covering\nON ci_builds (runner_id, id_convert_to_bigint) INCLUDE (project_id)\nWHERE status::text = 'pending'::text AND type::text = 'Ci::Build'::text\n")6479 -> 0.0021s6480-- foreign_keys(:ci_build_needs)6481 -> 0.0037s6482-- transaction_open?()6483 -> 0.0000s6484-- foreign_keys(:ci_build_needs)6485 -> 0.0035s6486-- transaction_open?()6487 -> 0.0000s6488-- execute("LOCK TABLE ci_builds, ci_build_needs IN SHARE ROW EXCLUSIVE MODE")6489 -> 0.0005s6490-- execute("ALTER TABLE ci_build_needs\nADD CONSTRAINT fk_rails_3cf221d4ed_tmp\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6491 -> 0.0013s6492-- execute("ALTER TABLE ci_build_needs VALIDATE CONSTRAINT fk_rails_3cf221d4ed_tmp;")6493 -> 0.0018s6494-- foreign_keys(:ci_build_pending_states)6495 -> 0.0034s6496-- transaction_open?()6497 -> 0.0000s6498-- foreign_keys(:ci_build_pending_states)6499 -> 0.0034s6500-- transaction_open?()6501 -> 0.0000s6502-- execute("LOCK TABLE ci_builds, ci_build_pending_states IN SHARE ROW EXCLUSIVE MODE")6503 -> 0.0005s6504-- execute("ALTER TABLE ci_build_pending_states\nADD CONSTRAINT fk_rails_0bbbfeaf9d_tmp\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6505 -> 0.0013s6506-- execute("ALTER TABLE ci_build_pending_states VALIDATE CONSTRAINT fk_rails_0bbbfeaf9d_tmp;")6507 -> 0.0017s6508-- foreign_keys(:ci_build_report_results)6509 -> 0.0037s6510-- transaction_open?()6511 -> 0.0000s6512-- foreign_keys(:ci_build_report_results)6513 -> 0.0038s6514-- transaction_open?()6515 -> 0.0000s6516-- execute("LOCK TABLE ci_builds, ci_build_report_results IN SHARE ROW EXCLUSIVE MODE")6517 -> 0.0007s6518-- execute("ALTER TABLE ci_build_report_results\nADD CONSTRAINT fk_rails_16cb1ff064_tmp\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6519 -> 0.0014s6520-- execute("ALTER TABLE ci_build_report_results VALIDATE CONSTRAINT fk_rails_16cb1ff064_tmp;")6521 -> 0.0017s6522-- foreign_keys(:ci_build_trace_chunks)6523 -> 0.0031s6524-- transaction_open?()6525 -> 0.0000s6526-- foreign_keys(:ci_build_trace_chunks)6527 -> 0.0030s6528-- transaction_open?()6529 -> 0.0000s6530-- execute("LOCK TABLE ci_builds, ci_build_trace_chunks IN SHARE ROW EXCLUSIVE MODE")6531 -> 0.0006s6532-- execute("ALTER TABLE ci_build_trace_chunks\nADD CONSTRAINT fk_rails_1013b761f2_tmp\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6533 -> 0.0012s6534-- execute("ALTER TABLE ci_build_trace_chunks VALIDATE CONSTRAINT fk_rails_1013b761f2_tmp;")6535 -> 0.0016s6536-- foreign_keys(:ci_build_trace_metadata)6537 -> 0.0032s6538-- transaction_open?()6539 -> 0.0000s6540-- foreign_keys(:ci_build_trace_metadata)6541 -> 0.0030s6542-- transaction_open?()6543 -> 0.0000s6544-- execute("LOCK TABLE ci_builds, ci_build_trace_metadata IN SHARE ROW EXCLUSIVE MODE")6545 -> 0.0006s6546-- execute("ALTER TABLE ci_build_trace_metadata\nADD CONSTRAINT fk_rails_aebc78111f_tmp\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6547 -> 0.0015s6548-- execute("ALTER TABLE ci_build_trace_metadata VALIDATE CONSTRAINT fk_rails_aebc78111f_tmp;")6549 -> 0.0016s6550-- foreign_keys(:ci_builds_runner_session)6551 -> 0.0029s6552-- transaction_open?()6553 -> 0.0000s6554-- foreign_keys(:ci_builds_runner_session)6555 -> 0.0028s6556-- transaction_open?()6557 -> 0.0000s6558-- execute("LOCK TABLE ci_builds, ci_builds_runner_session IN SHARE ROW EXCLUSIVE MODE")6559 -> 0.0006s6560-- execute("ALTER TABLE ci_builds_runner_session\nADD CONSTRAINT fk_rails_70707857d3_tmp\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6561 -> 0.0013s6562-- execute("ALTER TABLE ci_builds_runner_session VALIDATE CONSTRAINT fk_rails_70707857d3_tmp;")6563 -> 0.0015s6564-- foreign_keys(:ci_builds_metadata)6565 -> 0.0028s6566-- transaction_open?()6567 -> 0.0000s6568-- foreign_keys(:ci_builds_metadata)6569 -> 0.0029s6570-- transaction_open?()6571 -> 0.0000s6572-- execute("LOCK TABLE ci_builds, ci_builds_metadata IN SHARE ROW EXCLUSIVE MODE")6573 -> 0.0006s6574-- execute("ALTER TABLE ci_builds_metadata\nADD CONSTRAINT fk_e20479742e_tmp\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6575 -> 0.0012s6576-- execute("ALTER TABLE ci_builds_metadata VALIDATE CONSTRAINT fk_e20479742e_tmp;")6577 -> 0.0016s6578-- foreign_keys(:ci_job_artifacts)6579 -> 0.0030s6580-- transaction_open?()6581 -> 0.0000s6582-- foreign_keys(:ci_job_artifacts)6583 -> 0.0029s6584-- transaction_open?()6585 -> 0.0000s6586-- execute("LOCK TABLE ci_builds, ci_job_artifacts IN SHARE ROW EXCLUSIVE MODE")6587 -> 0.0006s6588-- execute("ALTER TABLE ci_job_artifacts\nADD CONSTRAINT fk_rails_c5137cb2c1_tmp\nFOREIGN KEY (job_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6589 -> 0.0013s6590-- execute("ALTER TABLE ci_job_artifacts VALIDATE CONSTRAINT fk_rails_c5137cb2c1_tmp;")6591 -> 0.0014s6592-- foreign_keys(:ci_job_variables)6593 -> 0.0026s6594-- transaction_open?()6595 -> 0.0000s6596-- foreign_keys(:ci_job_variables)6597 -> 0.0026s6598-- transaction_open?()6599 -> 0.0000s6600-- execute("LOCK TABLE ci_builds, ci_job_variables IN SHARE ROW EXCLUSIVE MODE")6601 -> 0.0007s6602-- execute("ALTER TABLE ci_job_variables\nADD CONSTRAINT fk_rails_fbf3b34792_tmp\nFOREIGN KEY (job_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6603 -> 0.0013s6604-- execute("ALTER TABLE ci_job_variables VALIDATE CONSTRAINT fk_rails_fbf3b34792_tmp;")6605 -> 0.0016s6606-- foreign_keys(:ci_pending_builds)6607 -> 0.0030s6608-- transaction_open?()6609 -> 0.0000s6610-- foreign_keys(:ci_pending_builds)6611 -> 0.0028s6612-- transaction_open?()6613 -> 0.0000s6614-- execute("LOCK TABLE ci_builds, ci_pending_builds IN SHARE ROW EXCLUSIVE MODE")6615 -> 0.0007s6616-- execute("ALTER TABLE ci_pending_builds\nADD CONSTRAINT fk_rails_725a2644a3_tmp\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6617 -> 0.0015s6618-- execute("ALTER TABLE ci_pending_builds VALIDATE CONSTRAINT fk_rails_725a2644a3_tmp;")6619 -> 0.0029s6620-- foreign_keys(:ci_resources)6621 -> 0.0031s6622-- transaction_open?()6623 -> 0.0000s6624-- foreign_keys(:ci_resources)6625 -> 0.0028s6626-- transaction_open?()6627 -> 0.0000s6628-- execute("LOCK TABLE ci_builds, ci_resources IN SHARE ROW EXCLUSIVE MODE")6629 -> 0.0006s6630-- execute("ALTER TABLE ci_resources\nADD CONSTRAINT fk_e169a8e3d5_tmp\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE SET NULL\nNOT VALID;\n")6631 -> 0.0015s6632-- execute("ALTER TABLE ci_resources VALIDATE CONSTRAINT fk_e169a8e3d5_tmp;")6633 -> 0.0015s6634-- foreign_keys(:ci_running_builds)6635 -> 0.0028s6636-- transaction_open?()6637 -> 0.0000s6638-- foreign_keys(:ci_running_builds)6639 -> 0.0030s6640-- transaction_open?()6641 -> 0.0000s6642-- execute("LOCK TABLE ci_builds, ci_running_builds IN SHARE ROW EXCLUSIVE MODE")6643 -> 0.0006s6644-- execute("ALTER TABLE ci_running_builds\nADD CONSTRAINT fk_rails_da45cfa165_tmp\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6645 -> 0.0013s6646-- execute("ALTER TABLE ci_running_builds VALIDATE CONSTRAINT fk_rails_da45cfa165_tmp;")6647 -> 0.0017s6648-- foreign_keys(:ci_sources_pipelines)6649 -> 0.0030s6650-- transaction_open?()6651 -> 0.0000s6652-- foreign_keys(:ci_sources_pipelines)6653 -> 0.0029s6654-- transaction_open?()6655 -> 0.0000s6656-- execute("LOCK TABLE ci_builds, ci_sources_pipelines IN SHARE ROW EXCLUSIVE MODE")6657 -> 0.0006s6658-- execute("ALTER TABLE ci_sources_pipelines\nADD CONSTRAINT fk_be5624bf37_tmp\nFOREIGN KEY (source_job_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6659 -> 0.0012s6660-- execute("ALTER TABLE ci_sources_pipelines VALIDATE CONSTRAINT fk_be5624bf37_tmp;")6661 -> 0.0014s6662-- foreign_keys(:ci_unit_test_failures)6663 -> 0.0027s6664-- transaction_open?()6665 -> 0.0000s6666-- foreign_keys(:ci_unit_test_failures)6667 -> 0.0028s6668-- transaction_open?()6669 -> 0.0000s6670-- execute("LOCK TABLE ci_builds, ci_unit_test_failures IN SHARE ROW EXCLUSIVE MODE")6671 -> 0.0006s6672-- execute("ALTER TABLE ci_unit_test_failures\nADD CONSTRAINT fk_0f09856e1f_tmp\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6673 -> 0.0012s6674-- execute("ALTER TABLE ci_unit_test_failures VALIDATE CONSTRAINT fk_0f09856e1f_tmp;")6675 -> 0.0014s6676-- foreign_keys(:dast_scanner_profiles_builds)6677 -> 0.0027s6678-- transaction_open?()6679 -> 0.0000s6680-- foreign_keys(:dast_scanner_profiles_builds)6681 -> 0.0026s6682-- transaction_open?()6683 -> 0.0000s6684-- execute("LOCK TABLE ci_builds, dast_scanner_profiles_builds IN SHARE ROW EXCLUSIVE MODE")6685 -> 0.0006s6686-- execute("ALTER TABLE dast_scanner_profiles_builds\nADD CONSTRAINT fk_e4c49200f8_tmp\nFOREIGN KEY (ci_build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6687 -> 0.0011s6688-- execute("ALTER TABLE dast_scanner_profiles_builds VALIDATE CONSTRAINT fk_e4c49200f8_tmp;")6689 -> 0.0013s6690-- foreign_keys(:dast_site_profiles_builds)6691 -> 0.0028s6692-- transaction_open?()6693 -> 0.0000s6694-- foreign_keys(:dast_site_profiles_builds)6695 -> 0.0026s6696-- transaction_open?()6697 -> 0.0000s6698-- execute("LOCK TABLE ci_builds, dast_site_profiles_builds IN SHARE ROW EXCLUSIVE MODE")6699 -> 0.0005s6700-- execute("ALTER TABLE dast_site_profiles_builds\nADD CONSTRAINT fk_a325505e99_tmp\nFOREIGN KEY (ci_build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6701 -> 0.0013s6702-- execute("ALTER TABLE dast_site_profiles_builds VALIDATE CONSTRAINT fk_a325505e99_tmp;")6703 -> 0.0012s6704-- foreign_keys(:pages_deployments)6705 -> 0.0028s6706-- transaction_open?()6707 -> 0.0000s6708-- foreign_keys(:pages_deployments)6709 -> 0.0024s6710-- transaction_open?()6711 -> 0.0000s6712-- execute("LOCK TABLE ci_builds, pages_deployments IN SHARE ROW EXCLUSIVE MODE")6713 -> 0.0006s6714-- execute("ALTER TABLE pages_deployments\nADD CONSTRAINT fk_rails_c3a90cf29b_tmp\nFOREIGN KEY (ci_build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE SET NULL\nNOT VALID;\n")6715 -> 0.0012s6716-- execute("ALTER TABLE pages_deployments VALIDATE CONSTRAINT fk_rails_c3a90cf29b_tmp;")6717 -> 0.0014s6718-- foreign_keys(:requirements_management_test_reports)6719 -> 0.0028s6720-- transaction_open?()6721 -> 0.0000s6722-- foreign_keys(:requirements_management_test_reports)6723 -> 0.0028s6724-- transaction_open?()6725 -> 0.0000s6726-- execute("LOCK TABLE ci_builds, requirements_management_test_reports IN SHARE ROW EXCLUSIVE MODE")6727 -> 0.0006s6728-- execute("ALTER TABLE requirements_management_test_reports\nADD CONSTRAINT fk_rails_e67d085910_tmp\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE SET NULL\nNOT VALID;\n")6729 -> 0.0013s6730-- execute("ALTER TABLE requirements_management_test_reports VALIDATE CONSTRAINT fk_rails_e67d085910_tmp;")6731 -> 0.0014s6732-- foreign_keys(:security_scans)6733 -> 0.0028s6734-- transaction_open?()6735 -> 0.0000s6736-- foreign_keys(:security_scans)6737 -> 0.0028s6738-- transaction_open?()6739 -> 0.0000s6740-- execute("LOCK TABLE ci_builds, security_scans IN SHARE ROW EXCLUSIVE MODE")6741 -> 0.0006s6742-- execute("ALTER TABLE security_scans\nADD CONSTRAINT fk_rails_4ef1e6b4c6_tmp\nFOREIGN KEY (build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE CASCADE\nNOT VALID;\n")6743 -> 0.0012s6744-- execute("ALTER TABLE security_scans VALIDATE CONSTRAINT fk_rails_4ef1e6b4c6_tmp;")6745 -> 0.0015s6746-- foreign_keys(:terraform_state_versions)6747 -> 0.0026s6748-- transaction_open?()6749 -> 0.0000s6750-- foreign_keys(:terraform_state_versions)6751 -> 0.0026s6752-- transaction_open?()6753 -> 0.0000s6754-- execute("LOCK TABLE ci_builds, terraform_state_versions IN SHARE ROW EXCLUSIVE MODE")6755 -> 0.0006s6756-- execute("ALTER TABLE terraform_state_versions\nADD CONSTRAINT fk_04b91e4a9f_tmp\nFOREIGN KEY (ci_build_id)\nREFERENCES ci_builds (id_convert_to_bigint)\nON DELETE SET NULL\nNOT VALID;\n")6757 -> 0.0012s6758-- execute("ALTER TABLE terraform_state_versions VALIDATE CONSTRAINT fk_04b91e4a9f_tmp;")6759 -> 0.0014s6760-- foreign_keys(:ci_build_needs)6761 -> 0.0027s6762-- transaction_open?()6763 -> 0.0000s6764-- execute("LOCK TABLE ci_builds, ci_build_needs IN ACCESS EXCLUSIVE MODE")6765 -> 0.0006s6766-- remove_foreign_key(:ci_build_needs, "ci_builds", {:column=>:build_id, :primary_key=>:id, :name=>"fk_rails_3cf221d4ed"})6767 -> 0.0035s6768-- quote_table_name(:ci_build_needs)6769 -> 0.0000s6770-- quote_column_name("fk_rails_3cf221d4ed_tmp")6771 -> 0.0000s6772-- quote_column_name("fk_rails_3cf221d4ed")6773 -> 0.0001s6774-- execute("ALTER TABLE \"ci_build_needs\"\nRENAME CONSTRAINT \"fk_rails_3cf221d4ed_tmp\" TO \"fk_rails_3cf221d4ed\"\n")6775 -> 0.0006s6776-- foreign_keys(:ci_build_pending_states)6777 -> 0.0026s6778-- transaction_open?()6779 -> 0.0000s6780-- execute("LOCK TABLE ci_builds, ci_build_pending_states IN ACCESS EXCLUSIVE MODE")6781 -> 0.0006s6782-- remove_foreign_key(:ci_build_pending_states, "ci_builds", {:column=>:build_id, :primary_key=>:id, :name=>"fk_rails_0bbbfeaf9d"})6783 -> 0.0036s6784-- quote_table_name(:ci_build_pending_states)6785 -> 0.0000s6786-- quote_column_name("fk_rails_0bbbfeaf9d_tmp")6787 -> 0.0000s6788-- quote_column_name("fk_rails_0bbbfeaf9d")6789 -> 0.0000s6790-- execute("ALTER TABLE \"ci_build_pending_states\"\nRENAME CONSTRAINT \"fk_rails_0bbbfeaf9d_tmp\" TO \"fk_rails_0bbbfeaf9d\"\n")6791 -> 0.0006s6792-- foreign_keys(:ci_build_report_results)6793 -> 0.0025s6794-- transaction_open?()6795 -> 0.0000s6796-- execute("LOCK TABLE ci_builds, ci_build_report_results IN ACCESS EXCLUSIVE MODE")6797 -> 0.0005s6798-- remove_foreign_key(:ci_build_report_results, "ci_builds", {:column=>:build_id, :primary_key=>:id, :name=>"fk_rails_16cb1ff064"})6799 -> 0.0035s6800-- quote_table_name(:ci_build_report_results)6801 -> 0.0000s6802-- quote_column_name("fk_rails_16cb1ff064_tmp")6803 -> 0.0000s6804-- quote_column_name("fk_rails_16cb1ff064")6805 -> 0.0000s6806-- execute("ALTER TABLE \"ci_build_report_results\"\nRENAME CONSTRAINT \"fk_rails_16cb1ff064_tmp\" TO \"fk_rails_16cb1ff064\"\n")6807 -> 0.0006s6808-- foreign_keys(:ci_build_trace_chunks)6809 -> 0.0025s6810-- transaction_open?()6811 -> 0.0000s6812-- execute("LOCK TABLE ci_builds, ci_build_trace_chunks IN ACCESS EXCLUSIVE MODE")6813 -> 0.0005s6814-- remove_foreign_key(:ci_build_trace_chunks, "ci_builds", {:column=>:build_id, :primary_key=>:id, :name=>"fk_rails_1013b761f2"})6815 -> 0.0038s6816-- quote_table_name(:ci_build_trace_chunks)6817 -> 0.0000s6818-- quote_column_name("fk_rails_1013b761f2_tmp")6819 -> 0.0000s6820-- quote_column_name("fk_rails_1013b761f2")6821 -> 0.0000s6822-- execute("ALTER TABLE \"ci_build_trace_chunks\"\nRENAME CONSTRAINT \"fk_rails_1013b761f2_tmp\" TO \"fk_rails_1013b761f2\"\n")6823 -> 0.0006s6824-- foreign_keys(:ci_build_trace_metadata)6825 -> 0.0028s6826-- transaction_open?()6827 -> 0.0000s6828-- execute("LOCK TABLE ci_builds, ci_build_trace_metadata IN ACCESS EXCLUSIVE MODE")6829 -> 0.0007s6830-- remove_foreign_key(:ci_build_trace_metadata, "ci_builds", {:column=>:build_id, :primary_key=>:id, :name=>"fk_rails_aebc78111f"})6831 -> 0.0038s6832-- quote_table_name(:ci_build_trace_metadata)6833 -> 0.0000s6834-- quote_column_name("fk_rails_aebc78111f_tmp")6835 -> 0.0000s6836-- quote_column_name("fk_rails_aebc78111f")6837 -> 0.0000s6838-- execute("ALTER TABLE \"ci_build_trace_metadata\"\nRENAME CONSTRAINT \"fk_rails_aebc78111f_tmp\" TO \"fk_rails_aebc78111f\"\n")6839 -> 0.0007s6840-- foreign_keys(:ci_builds_runner_session)6841 -> 0.0027s6842-- transaction_open?()6843 -> 0.0000s6844-- execute("LOCK TABLE ci_builds, ci_builds_runner_session IN ACCESS EXCLUSIVE MODE")6845 -> 0.0006s6846-- remove_foreign_key(:ci_builds_runner_session, "ci_builds", {:column=>:build_id, :primary_key=>:id, :name=>"fk_rails_70707857d3"})6847 -> 0.0040s6848-- quote_table_name(:ci_builds_runner_session)6849 -> 0.0000s6850-- quote_column_name("fk_rails_70707857d3_tmp")6851 -> 0.0000s6852-- quote_column_name("fk_rails_70707857d3")6853 -> 0.0000s6854-- execute("ALTER TABLE \"ci_builds_runner_session\"\nRENAME CONSTRAINT \"fk_rails_70707857d3_tmp\" TO \"fk_rails_70707857d3\"\n")6855 -> 0.0008s6856-- foreign_keys(:ci_builds_metadata)6857 -> 0.0029s6858-- transaction_open?()6859 -> 0.0000s6860-- execute("LOCK TABLE ci_builds, ci_builds_metadata IN ACCESS EXCLUSIVE MODE")6861 -> 0.0007s6862-- remove_foreign_key(:ci_builds_metadata, "ci_builds", {:column=>:build_id, :primary_key=>:id, :name=>"fk_e20479742e"})6863 -> 0.0039s6864-- quote_table_name(:ci_builds_metadata)6865 -> 0.0000s6866-- quote_column_name("fk_e20479742e_tmp")6867 -> 0.0000s6868-- quote_column_name("fk_e20479742e")6869 -> 0.0000s6870-- execute("ALTER TABLE \"ci_builds_metadata\"\nRENAME CONSTRAINT \"fk_e20479742e_tmp\" TO \"fk_e20479742e\"\n")6871 -> 0.0006s6872-- foreign_keys(:ci_job_artifacts)6873 -> 0.0030s6874-- transaction_open?()6875 -> 0.0000s6876-- execute("LOCK TABLE ci_builds, ci_job_artifacts IN ACCESS EXCLUSIVE MODE")6877 -> 0.0006s6878-- remove_foreign_key(:ci_job_artifacts, "ci_builds", {:column=>:job_id, :primary_key=>:id, :name=>"fk_rails_c5137cb2c1"})6879 -> 0.0043s6880-- quote_table_name(:ci_job_artifacts)6881 -> 0.0000s6882-- quote_column_name("fk_rails_c5137cb2c1_tmp")6883 -> 0.0001s6884-- quote_column_name("fk_rails_c5137cb2c1")6885 -> 0.0001s6886-- execute("ALTER TABLE \"ci_job_artifacts\"\nRENAME CONSTRAINT \"fk_rails_c5137cb2c1_tmp\" TO \"fk_rails_c5137cb2c1\"\n")6887 -> 0.0008s6888-- foreign_keys(:ci_job_variables)6889 -> 0.0030s6890-- transaction_open?()6891 -> 0.0000s6892-- execute("LOCK TABLE ci_builds, ci_job_variables IN ACCESS EXCLUSIVE MODE")6893 -> 0.0006s6894-- remove_foreign_key(:ci_job_variables, "ci_builds", {:column=>:job_id, :primary_key=>:id, :name=>"fk_rails_fbf3b34792"})6895 -> 0.0041s6896-- quote_table_name(:ci_job_variables)6897 -> 0.0000s6898-- quote_column_name("fk_rails_fbf3b34792_tmp")6899 -> 0.0000s6900-- quote_column_name("fk_rails_fbf3b34792")6901 -> 0.0000s6902-- execute("ALTER TABLE \"ci_job_variables\"\nRENAME CONSTRAINT \"fk_rails_fbf3b34792_tmp\" TO \"fk_rails_fbf3b34792\"\n")6903 -> 0.0008s6904-- foreign_keys(:ci_pending_builds)6905 -> 0.0032s6906-- transaction_open?()6907 -> 0.0000s6908-- execute("LOCK TABLE ci_builds, ci_pending_builds IN ACCESS EXCLUSIVE MODE")6909 -> 0.0007s6910-- remove_foreign_key(:ci_pending_builds, "ci_builds", {:column=>:build_id, :primary_key=>:id, :name=>"fk_rails_725a2644a3"})6911 -> 0.0042s6912-- quote_table_name(:ci_pending_builds)6913 -> 0.0000s6914-- quote_column_name("fk_rails_725a2644a3_tmp")6915 -> 0.0000s6916-- quote_column_name("fk_rails_725a2644a3")6917 -> 0.0000s6918-- execute("ALTER TABLE \"ci_pending_builds\"\nRENAME CONSTRAINT \"fk_rails_725a2644a3_tmp\" TO \"fk_rails_725a2644a3\"\n")6919 -> 0.0006s6920-- foreign_keys(:ci_resources)6921 -> 0.0028s6922-- transaction_open?()6923 -> 0.0000s6924-- execute("LOCK TABLE ci_builds, ci_resources IN ACCESS EXCLUSIVE MODE")6925 -> 0.0006s6926-- remove_foreign_key(:ci_resources, "ci_builds", {:column=>:build_id, :primary_key=>:id, :name=>"fk_e169a8e3d5"})6927 -> 0.0041s6928-- quote_table_name(:ci_resources)6929 -> 0.0000s6930-- quote_column_name("fk_e169a8e3d5_tmp")6931 -> 0.0000s6932-- quote_column_name("fk_e169a8e3d5")6933 -> 0.0000s6934-- execute("ALTER TABLE \"ci_resources\"\nRENAME CONSTRAINT \"fk_e169a8e3d5_tmp\" TO \"fk_e169a8e3d5\"\n")6935 -> 0.0007s6936-- foreign_keys(:ci_running_builds)6937 -> 0.0030s6938-- transaction_open?()6939 -> 0.0000s6940-- execute("LOCK TABLE ci_builds, ci_running_builds IN ACCESS EXCLUSIVE MODE")6941 -> 0.0006s6942-- remove_foreign_key(:ci_running_builds, "ci_builds", {:column=>:build_id, :primary_key=>:id, :name=>"fk_rails_da45cfa165"})6943 -> 0.0040s6944-- quote_table_name(:ci_running_builds)6945 -> 0.0000s6946-- quote_column_name("fk_rails_da45cfa165_tmp")6947 -> 0.0000s6948-- quote_column_name("fk_rails_da45cfa165")6949 -> 0.0000s6950-- execute("ALTER TABLE \"ci_running_builds\"\nRENAME CONSTRAINT \"fk_rails_da45cfa165_tmp\" TO \"fk_rails_da45cfa165\"\n")6951 -> 0.0006s6952-- foreign_keys(:ci_sources_pipelines)6953 -> 0.0029s6954-- transaction_open?()6955 -> 0.0000s6956-- execute("LOCK TABLE ci_builds, ci_sources_pipelines IN ACCESS EXCLUSIVE MODE")6957 -> 0.0005s6958-- remove_foreign_key(:ci_sources_pipelines, "ci_builds", {:column=>:source_job_id, :primary_key=>:id, :name=>"fk_be5624bf37"})6959 -> 0.0042s6960-- quote_table_name(:ci_sources_pipelines)6961 -> 0.0000s6962-- quote_column_name("fk_be5624bf37_tmp")6963 -> 0.0001s6964-- quote_column_name("fk_be5624bf37")6965 -> 0.0001s6966-- execute("ALTER TABLE \"ci_sources_pipelines\"\nRENAME CONSTRAINT \"fk_be5624bf37_tmp\" TO \"fk_be5624bf37\"\n")6967 -> 0.0007s6968-- foreign_keys(:ci_unit_test_failures)6969 -> 0.0030s6970-- transaction_open?()6971 -> 0.0000s6972-- execute("LOCK TABLE ci_builds, ci_unit_test_failures IN ACCESS EXCLUSIVE MODE")6973 -> 0.0007s6974-- remove_foreign_key(:ci_unit_test_failures, "ci_builds", {:column=>:build_id, :primary_key=>:id, :name=>"fk_0f09856e1f"})6975 -> 0.0042s6976-- quote_table_name(:ci_unit_test_failures)6977 -> 0.0000s6978-- quote_column_name("fk_0f09856e1f_tmp")6979 -> 0.0000s6980-- quote_column_name("fk_0f09856e1f")6981 -> 0.0000s6982-- execute("ALTER TABLE \"ci_unit_test_failures\"\nRENAME CONSTRAINT \"fk_0f09856e1f_tmp\" TO \"fk_0f09856e1f\"\n")6983 -> 0.0007s6984-- foreign_keys(:dast_scanner_profiles_builds)6985 -> 0.0030s6986-- transaction_open?()6987 -> 0.0000s6988-- execute("LOCK TABLE ci_builds, dast_scanner_profiles_builds IN ACCESS EXCLUSIVE MODE")6989 -> 0.0006s6990-- remove_foreign_key(:dast_scanner_profiles_builds, "ci_builds", {:column=>:ci_build_id, :primary_key=>:id, :name=>"fk_e4c49200f8"})6991 -> 0.0040s6992-- quote_table_name(:dast_scanner_profiles_builds)6993 -> 0.0000s6994-- quote_column_name("fk_e4c49200f8_tmp")6995 -> 0.0000s6996-- quote_column_name("fk_e4c49200f8")6997 -> 0.0000s6998-- execute("ALTER TABLE \"dast_scanner_profiles_builds\"\nRENAME CONSTRAINT \"fk_e4c49200f8_tmp\" TO \"fk_e4c49200f8\"\n")6999 -> 0.0007s7000-- foreign_keys(:dast_site_profiles_builds)7001 -> 0.0029s7002-- transaction_open?()7003 -> 0.0000s7004-- execute("LOCK TABLE ci_builds, dast_site_profiles_builds IN ACCESS EXCLUSIVE MODE")7005 -> 0.0006s7006-- remove_foreign_key(:dast_site_profiles_builds, "ci_builds", {:column=>:ci_build_id, :primary_key=>:id, :name=>"fk_a325505e99"})7007 -> 0.0040s7008-- quote_table_name(:dast_site_profiles_builds)7009 -> 0.0000s7010-- quote_column_name("fk_a325505e99_tmp")7011 -> 0.0000s7012-- quote_column_name("fk_a325505e99")7013 -> 0.0000s7014-- execute("ALTER TABLE \"dast_site_profiles_builds\"\nRENAME CONSTRAINT \"fk_a325505e99_tmp\" TO \"fk_a325505e99\"\n")7015 -> 0.0006s7016-- foreign_keys(:pages_deployments)7017 -> 0.0029s7018-- transaction_open?()7019 -> 0.0000s7020-- execute("LOCK TABLE ci_builds, pages_deployments IN ACCESS EXCLUSIVE MODE")7021 -> 0.0006s7022-- remove_foreign_key(:pages_deployments, "ci_builds", {:column=>:ci_build_id, :primary_key=>:id, :name=>"fk_rails_c3a90cf29b"})7023 -> 0.0037s7024-- quote_table_name(:pages_deployments)7025 -> 0.0000s7026-- quote_column_name("fk_rails_c3a90cf29b_tmp")7027 -> 0.0000s7028-- quote_column_name("fk_rails_c3a90cf29b")7029 -> 0.0000s7030-- execute("ALTER TABLE \"pages_deployments\"\nRENAME CONSTRAINT \"fk_rails_c3a90cf29b_tmp\" TO \"fk_rails_c3a90cf29b\"\n")7031 -> 0.0006s7032-- foreign_keys(:requirements_management_test_reports)7033 -> 0.0028s7034-- transaction_open?()7035 -> 0.0000s7036-- execute("LOCK TABLE ci_builds, requirements_management_test_reports IN ACCESS EXCLUSIVE MODE")7037 -> 0.0006s7038-- remove_foreign_key(:requirements_management_test_reports, "ci_builds", {:column=>:build_id, :primary_key=>:id, :name=>"fk_rails_e67d085910"})7039 -> 0.0041s7040-- quote_table_name(:requirements_management_test_reports)7041 -> 0.0000s7042-- quote_column_name("fk_rails_e67d085910_tmp")7043 -> 0.0000s7044-- quote_column_name("fk_rails_e67d085910")7045 -> 0.0000s7046-- execute("ALTER TABLE \"requirements_management_test_reports\"\nRENAME CONSTRAINT \"fk_rails_e67d085910_tmp\" TO \"fk_rails_e67d085910\"\n")7047 -> 0.0008s7048-- foreign_keys(:security_scans)7049 -> 0.0028s7050-- transaction_open?()7051 -> 0.0000s7052-- execute("LOCK TABLE ci_builds, security_scans IN ACCESS EXCLUSIVE MODE")7053 -> 0.0006s7054-- remove_foreign_key(:security_scans, "ci_builds", {:column=>:build_id, :primary_key=>:id, :name=>"fk_rails_4ef1e6b4c6"})7055 -> 0.0041s7056-- quote_table_name(:security_scans)7057 -> 0.0000s7058-- quote_column_name("fk_rails_4ef1e6b4c6_tmp")7059 -> 0.0000s7060-- quote_column_name("fk_rails_4ef1e6b4c6")7061 -> 0.0000s7062-- execute("ALTER TABLE \"security_scans\"\nRENAME CONSTRAINT \"fk_rails_4ef1e6b4c6_tmp\" TO \"fk_rails_4ef1e6b4c6\"\n")7063 -> 0.0008s7064-- foreign_keys(:terraform_state_versions)7065 -> 0.0029s7066-- transaction_open?()7067 -> 0.0001s7068-- execute("LOCK TABLE ci_builds, terraform_state_versions IN ACCESS EXCLUSIVE MODE")7069 -> 0.0006s7070-- remove_foreign_key(:terraform_state_versions, "ci_builds", {:column=>:ci_build_id, :primary_key=>:id, :name=>"fk_04b91e4a9f"})7071 -> 0.0038s7072-- quote_table_name(:terraform_state_versions)7073 -> 0.0000s7074-- quote_column_name("fk_04b91e4a9f_tmp")7075 -> 0.0000s7076-- quote_column_name("fk_04b91e4a9f")7077 -> 0.0000s7078-- execute("ALTER TABLE \"terraform_state_versions\"\nRENAME CONSTRAINT \"fk_04b91e4a9f_tmp\" TO \"fk_04b91e4a9f\"\n")7079 -> 0.0007s7080-- transaction_open?()7081 -> 0.0000s7082-- quote_table_name("ci_builds")7083 -> 0.0000s7084-- quote_column_name(:id)7085 -> 0.0000s7086-- quote_column_name("id_tmp")7087 -> 0.0000s7088-- execute("ALTER TABLE \"ci_builds\" RENAME COLUMN \"id\" TO \"id_tmp\"")7089 -> 0.0008s7090-- quote_column_name(:id_convert_to_bigint)7091 -> 0.0000s7092-- quote_column_name(:id)7093 -> 0.0000s7094-- execute("ALTER TABLE \"ci_builds\" RENAME COLUMN \"id_convert_to_bigint\" TO \"id\"")7095 -> 0.0007s7096-- quote_column_name("id_tmp")7097 -> 0.0000s7098-- quote_column_name(:id_convert_to_bigint)7099 -> 0.0000s7100-- execute("ALTER TABLE \"ci_builds\" RENAME COLUMN \"id_tmp\" TO \"id_convert_to_bigint\"")7101 -> 0.0008s7102-- quote_table_name("trigger_3f6129be01d2")7103 -> 0.0000s7104-- execute("ALTER FUNCTION \"trigger_3f6129be01d2\" RESET ALL")7105 -> 0.0006s7106-- execute("ALTER SEQUENCE ci_builds_id_seq OWNED BY ci_builds.id")7107 -> 0.0007s7108-- change_column_default("ci_builds", :id, #<Proc:0x00007f815ac81b20 /builds/gitlab-org/gitlab/db/post_migrate/20210907211557_finalize_ci_builds_bigint_conversion.rb:145 (lambda)>)7109 -> 0.0054s7110-- change_column_default("ci_builds", :id_convert_to_bigint, 0)7111 -> 0.0050s7112-- execute("ALTER TABLE \"ci_builds\" DROP CONSTRAINT ci_builds_pkey")7113 -> 0.0016s7114-- rename_index("ci_builds", "index_ci_builds_on_converted_id", "ci_builds_pkey")7115 -> 0.0007s7116-- execute("ALTER TABLE \"ci_builds\" ADD CONSTRAINT ci_builds_pkey PRIMARY KEY USING INDEX ci_builds_pkey")7117 -> 0.0007s7118-- remove_index("ci_builds", {:name=>:index_ci_builds_on_commit_id_artifacts_expired_at_and_id})7119 -> 0.0008s7120-- rename_index("ci_builds", :index_ci_builds_on_commit_id_expire_at_and_converted_id, :index_ci_builds_on_commit_id_artifacts_expired_at_and_id)7121 -> 0.0007s7122-- remove_index("ci_builds", {:name=>:index_ci_builds_on_project_id_and_id})7123 -> 0.0008s7124-- rename_index("ci_builds", :index_ci_builds_on_project_and_converted_id, :index_ci_builds_on_project_id_and_id)7125 -> 0.0006s7126-- remove_index("ci_builds", {:name=>:index_ci_builds_on_runner_id_and_id_desc})7127 -> 0.0008s7128-- rename_index("ci_builds", :index_ci_builds_on_runner_id_and_converted_id_desc, :index_ci_builds_on_runner_id_and_id_desc)7129 -> 0.0006s7130-- remove_index("ci_builds", {:name=>:index_for_resource_group})7131 -> 0.0007s7132-- rename_index("ci_builds", :index_ci_builds_on_resource_group_and_converted_id, :index_for_resource_group)7133 -> 0.0006s7134-- remove_index("ci_builds", {:name=>:index_security_ci_builds_on_name_and_id_parser_features})7135 -> 0.0008s7136-- rename_index("ci_builds", :index_security_ci_builds_on_name_and_converted_id_parser, :index_security_ci_builds_on_name_and_id_parser_features)7137 -> 0.0006s7138-- remove_index("ci_builds", {:name=>:index_ci_builds_runner_id_pending_covering})7139 -> 0.0007s7140-- rename_index("ci_builds", :index_ci_builds_runner_id_and_converted_id_pending_covering, :index_ci_builds_runner_id_pending_covering)7141 -> 0.0006s7142== 20210907211557 FinalizeCiBuildsBigintConversion: migrated (0.7103s) ========7143== 20210908060951 AddDastSchedulesToPlanLimits: migrating =====================7144-- add_column(:plan_limits, :dast_profile_schedules, :integer, {:default=>1, :null=>false})7145 -> 0.0020s7146== 20210908060951 AddDastSchedulesToPlanLimits: migrated (0.0021s) ============7147== 20210908061132 InsertDastProfileSchedulesPlanLimits: migrating =============7148-- quote_column_name("dast_profile_schedules")7149 -> 0.0000s7150-- quote("default")7151 -> 0.0000s7152-- quote(0)7153 -> 0.0000s7154-- execute("INSERT INTO plan_limits (plan_id, \"dast_profile_schedules\")\nSELECT id, '0' FROM plans WHERE name = 'default' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"dast_profile_schedules\" = EXCLUDED.\"dast_profile_schedules\";\n")7155 -> 0.0016s7156-- quote_column_name("dast_profile_schedules")7157 -> 0.0000s7158-- quote("free")7159 -> 0.0000s7160-- quote(1)7161 -> 0.0000s7162-- execute("INSERT INTO plan_limits (plan_id, \"dast_profile_schedules\")\nSELECT id, '1' FROM plans WHERE name = 'free' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"dast_profile_schedules\" = EXCLUDED.\"dast_profile_schedules\";\n")7163 -> 0.0008s7164-- quote_column_name("dast_profile_schedules")7165 -> 0.0000s7166-- quote("bronze")7167 -> 0.0000s7168-- quote(1)7169 -> 0.0000s7170-- execute("INSERT INTO plan_limits (plan_id, \"dast_profile_schedules\")\nSELECT id, '1' FROM plans WHERE name = 'bronze' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"dast_profile_schedules\" = EXCLUDED.\"dast_profile_schedules\";\n")7171 -> 0.0008s7172-- quote_column_name("dast_profile_schedules")7173 -> 0.0000s7174-- quote("silver")7175 -> 0.0000s7176-- quote(1)7177 -> 0.0001s7178-- execute("INSERT INTO plan_limits (plan_id, \"dast_profile_schedules\")\nSELECT id, '1' FROM plans WHERE name = 'silver' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"dast_profile_schedules\" = EXCLUDED.\"dast_profile_schedules\";\n")7179 -> 0.0009s7180-- quote_column_name("dast_profile_schedules")7181 -> 0.0000s7182-- quote("premium")7183 -> 0.0000s7184-- quote(1)7185 -> 0.0000s7186-- execute("INSERT INTO plan_limits (plan_id, \"dast_profile_schedules\")\nSELECT id, '1' FROM plans WHERE name = 'premium' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"dast_profile_schedules\" = EXCLUDED.\"dast_profile_schedules\";\n")7187 -> 0.0009s7188-- quote_column_name("dast_profile_schedules")7189 -> 0.0000s7190-- quote("premium_trial")7191 -> 0.0000s7192-- quote(1)7193 -> 0.0000s7194-- execute("INSERT INTO plan_limits (plan_id, \"dast_profile_schedules\")\nSELECT id, '1' FROM plans WHERE name = 'premium_trial' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"dast_profile_schedules\" = EXCLUDED.\"dast_profile_schedules\";\n")7195 -> 0.0009s7196-- quote_column_name("dast_profile_schedules")7197 -> 0.0000s7198-- quote("gold")7199 -> 0.0000s7200-- quote(20)7201 -> 0.0001s7202-- execute("INSERT INTO plan_limits (plan_id, \"dast_profile_schedules\")\nSELECT id, '20' FROM plans WHERE name = 'gold' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"dast_profile_schedules\" = EXCLUDED.\"dast_profile_schedules\";\n")7203 -> 0.0008s7204-- quote_column_name("dast_profile_schedules")7205 -> 0.0000s7206-- quote("ultimate")7207 -> 0.0000s7208-- quote(20)7209 -> 0.0000s7210-- execute("INSERT INTO plan_limits (plan_id, \"dast_profile_schedules\")\nSELECT id, '20' FROM plans WHERE name = 'ultimate' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"dast_profile_schedules\" = EXCLUDED.\"dast_profile_schedules\";\n")7211 -> 0.0008s7212-- quote_column_name("dast_profile_schedules")7213 -> 0.0000s7214-- quote("ultimate_trial")7215 -> 0.0000s7216-- quote(20)7217 -> 0.0000s7218-- execute("INSERT INTO plan_limits (plan_id, \"dast_profile_schedules\")\nSELECT id, '20' FROM plans WHERE name = 'ultimate_trial' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"dast_profile_schedules\" = EXCLUDED.\"dast_profile_schedules\";\n")7219 -> 0.0007s7220== 20210908061132 InsertDastProfileSchedulesPlanLimits: migrated (0.0117s) ====7221== 20210908100810 AddJobsPerStagePageSizeToApplicationSettings: migrating =====7222-- add_column(:application_settings, :jobs_per_stage_page_size, :integer, {:default=>200, :null=>false})7223 -> 0.0027s7224== 20210908100810 AddJobsPerStagePageSizeToApplicationSettings: migrated (0.0029s) 7225== 20210908132335 DisableJobTokenScopeWhenUnused: migrating ===================7226== 20210908132335 DisableJobTokenScopeWhenUnused: migrated (0.0045s) ==========7227== 20210908140437 AddSidekiqLimitsToApplicationSettings: migrating ============7228-- transaction_open?()7229 -> 0.0000s7230-- add_column(:application_settings, :sidekiq_job_limiter_mode, :smallint, {:default=>1, :null=>false})7231 -> 0.0025s7232-- add_column(:application_settings, :sidekiq_job_limiter_compression_threshold_bytes, :integer, {:default=>100000, :null=>false})7233 -> 0.0018s7234-- add_column(:application_settings, :sidekiq_job_limiter_limit_bytes, :integer, {:default=>0, :null=>false})7235 -> 0.0020s7236== 20210908140437 AddSidekiqLimitsToApplicationSettings: migrated (0.0102s) ===7237== 20210908185736 AddStatusToDependencyProxyManifests: migrating ==============7238-- add_column(:dependency_proxy_manifests, :status, :smallint, {:default=>0, :null=>false})7239 -> 0.0019s7240== 20210908185736 AddStatusToDependencyProxyManifests: migrated (0.0021s) =====7241== 20210908185754 AddStatusToDependencyProxyBlobs: migrating ==================7242-- add_column(:dependency_proxy_blobs, :status, :smallint, {:default=>0, :null=>false})7243 -> 0.0022s7244== 20210908185754 AddStatusToDependencyProxyBlobs: migrated (0.0024s) =========7245== 20210908195506 AddDataToVulnerabilityFindingEvidence: migrating ============7246-- add_column(:vulnerability_finding_evidences, :data, :jsonb, {:default=>{}, :null=>false})7247 -> 0.0021s7248== 20210908195506 AddDataToVulnerabilityFindingEvidence: migrated (0.0023s) ===7249== 20210909104800 RescheduleExtractProjectTopicsIntoSeparateTable2: migrating =7250-- Scheduled 0 ExtractProjectTopicsIntoSeparateTable jobs with an interval of 240 seconds.7251The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:18 UTC."7252== 20210909104800 RescheduleExtractProjectTopicsIntoSeparateTable2: migrated (0.0027s) 7253== 20210909152027 RemoveContainerRegistryEnabled: migrating ===================7254-- transaction_open?()7255 -> 0.0000s7256-- remove_column(:projects, :container_registry_enabled)7257 -> 0.0014s7258== 20210909152027 RemoveContainerRegistryEnabled: migrated (0.0047s) ==========7259== 20210909184349 AddIndexPackageIdIdOnPackageFiles: migrating ================7260-- indexes(:package_package_files)7261 -> 0.0014s7262-- current_schema()7263 -> 0.0005s7264-- execute("CREATE INDEX CONCURRENTLY index_packages_package_files_on_package_id_id ON packages_package_files (package_id, id)")7265 -> 0.0016s7266== 20210909184349 AddIndexPackageIdIdOnPackageFiles: migrated (0.0063s) =======7267== 20210910014741 AddDependencyProxyTtlGroupPolicyWorkerCapacityToApplicationSettings: migrating 7268-- add_column(:application_settings, :dependency_proxy_ttl_group_policy_worker_capacity, :smallint, {:default=>2, :null=>false})7269 -> 0.0035s7270== 20210910014741 AddDependencyProxyTtlGroupPolicyWorkerCapacityToApplicationSettings: migrated (0.0036s) 7271== 20210910015047 AddAppSettingsDepProxyTtlWorkerCapacityCheckConstraint: migrating 7272-- transaction_open?()7273 -> 0.0000s7274-- current_schema()7275 -> 0.0006s7276-- transaction_open?()7277 -> 0.0000s7278-- execute("ALTER TABLE application_settings\nADD CONSTRAINT app_settings_dep_proxy_ttl_policies_worker_capacity_positive\nCHECK ( dependency_proxy_ttl_group_policy_worker_capacity >= 0 )\nNOT VALID;\n")7279 -> 0.0018s7280-- current_schema()7281 -> 0.0006s7282-- execute("ALTER TABLE application_settings VALIDATE CONSTRAINT app_settings_dep_proxy_ttl_policies_worker_capacity_positive;")7283 -> 0.0017s7284== 20210910015047 AddAppSettingsDepProxyTtlWorkerCapacityCheckConstraint: migrated (0.0125s) 7285== 20210910141043 ChangeCiMinutesAdditionalPackTextLimit: migrating ===========7286-- transaction_open?()7287 -> 0.0000s7288-- transaction_open?()7289 -> 0.0000s7290-- execute("ALTER TABLE ci_minutes_additional_packs\nDROP CONSTRAINT IF EXISTS check_d7ef254af0\n")7291 -> 0.0008s7292-- transaction_open?()7293 -> 0.0000s7294-- current_schema()7295 -> 0.0005s7296-- transaction_open?()7297 -> 0.0000s7298-- execute("ALTER TABLE ci_minutes_additional_packs\nADD CONSTRAINT check_d7ef254af0\nCHECK ( char_length(purchase_xid) <= 50 )\nNOT VALID;\n")7299 -> 0.0010s7300-- current_schema()7301 -> 0.0005s7302-- execute("ALTER TABLE ci_minutes_additional_packs VALIDATE CONSTRAINT check_d7ef254af0;")7303 -> 0.0008s7304== 20210910141043 ChangeCiMinutesAdditionalPackTextLimit: migrated (0.0138s) ==7305== 20210910192921 AddReportTypeIntoApprovalProjectRules: migrating ============7306-- add_column(:approval_project_rules, :report_type, :integer, {:limit=>2})7307 -> 0.0014s7308== 20210910192921 AddReportTypeIntoApprovalProjectRules: migrated (0.0016s) ===7309== 20210910194952 UpdateReportTypeForExistingApprovalProjectRules: migrating ==7310-- execute("UPDATE approval_project_rules\nSET report_type = converted_values.report_type\nFROM\n ( values\n (1, 'Vulnerability-Check'),\n (2, 'License-Check'),\n (3, 'Coverage-Check')\n ) AS converted_values(report_type, name)\nWHERE approval_project_rules.name = converted_values.name\nAND approval_project_rules.rule_type = 2;\n")7311 -> 0.0015s7312== 20210910194952 UpdateReportTypeForExistingApprovalProjectRules: migrated (0.0016s) 7313== 20210912034903 AddRunnerFeaturesToCiBuildsMetadata: migrating ==============7314-- add_column(:ci_builds_metadata, :runner_features, :jsonb, {:default=>{}, :null=>false})7315 -> 0.0014s7316== 20210912034903 AddRunnerFeaturesToCiBuildsMetadata: migrated (0.0015s) =====7317== 20210913010411 CreateAgentProjectAuthorizations: migrating =================7318-- create_table(:agent_project_authorizations, {})7319 -> 0.0042s7320== 20210913010411 CreateAgentProjectAuthorizations: migrated (0.0044s) ========7321== 20210913010432 AddAgentProjectAuthorizationsForeignKeys: migrating =========7322-- transaction_open?()7323 -> 0.0000s7324-- foreign_keys(:agent_project_authorizations)7325 -> 0.0027s7326-- transaction_open?()7327 -> 0.0000s7328-- execute("ALTER TABLE agent_project_authorizations\nADD CONSTRAINT fk_1d30bb4987\nFOREIGN KEY (project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n")7329 -> 0.0017s7330-- execute("ALTER TABLE agent_project_authorizations VALIDATE CONSTRAINT fk_1d30bb4987;")7331 -> 0.0017s7332-- transaction_open?()7333 -> 0.0000s7334-- foreign_keys(:agent_project_authorizations)7335 -> 0.0028s7336-- transaction_open?()7337 -> 0.0000s7338-- execute("ALTER TABLE agent_project_authorizations\nADD CONSTRAINT fk_b7fe9b4777\nFOREIGN KEY (agent_id)\nREFERENCES cluster_agents (id)\nON DELETE CASCADE\nNOT VALID;\n")7339 -> 0.0010s7340-- execute("ALTER TABLE agent_project_authorizations VALIDATE CONSTRAINT fk_b7fe9b4777;")7341 -> 0.0010s7342== 20210913010432 AddAgentProjectAuthorizationsForeignKeys: migrated (0.0187s) 7343== 20210913122457 AddNamespaceTraversalIdsToCiPendingBuilds: migrating ========7344-- add_column(:ci_pending_builds, :namespace_traversal_ids, :integer, {:array=>true, :default=>[]})7345 -> 0.0016s7346== 20210913122457 AddNamespaceTraversalIdsToCiPendingBuilds: migrated (0.0017s) 7347== 20210913224558 UpdateDependencyProxyManifestsUniquenessConstraint: migrating 7348-- transaction_open?()7349 -> 0.0000s7350-- index_exists?(:dependency_proxy_manifests, [:group_id, :file_name, :status], {:unique=>true, :name=>"index_dep_prox_manifests_on_group_id_file_name_and_status", :algorithm=>:concurrently})7351 -> 0.0021s7352-- add_index(:dependency_proxy_manifests, [:group_id, :file_name, :status], {:unique=>true, :name=>"index_dep_prox_manifests_on_group_id_file_name_and_status", :algorithm=>:concurrently})7353 -> 0.0017s7354-- transaction_open?()7355 -> 0.0000s7356-- indexes(:dependency_proxy_manifests)7357 -> 0.0024s7358-- remove_index(:dependency_proxy_manifests, {:algorithm=>:concurrently, :name=>"index_dependency_proxy_manifests_on_group_id_and_file_name"})7359 -> 0.0013s7360== 20210913224558 UpdateDependencyProxyManifestsUniquenessConstraint: migrated (0.0146s) 7361== 20210914094840 AddGinIndexOnPendingBuildsNamespaceTraversalIds: migrating ==7362-- transaction_open?()7363 -> 0.0000s7364-- index_exists?(:ci_pending_builds, :namespace_traversal_ids, {:name=>"index_gin_ci_pending_builds_on_namespace_traversal_ids", :using=>:gin, :algorithm=>:concurrently})7365 -> 0.0039s7366-- add_index(:ci_pending_builds, :namespace_traversal_ids, {:name=>"index_gin_ci_pending_builds_on_namespace_traversal_ids", :using=>:gin, :algorithm=>:concurrently})7367 -> 0.0014s7368== 20210914094840 AddGinIndexOnPendingBuildsNamespaceTraversalIds: migrated (0.0095s) 7369== 20210914095310 CleanupOrphanProjectAccessTokens: migrating =================7370-- transaction_open?()7371 -> 0.0000s7372-- index_exists?(:users, :id, {:name=>"idx_users_on_user_type_project_bots_batched", :where=>"user_type = 6", :algorithm=>:concurrently})7373 -> 0.0146s7374-- add_index(:users, :id, {:name=>"idx_users_on_user_type_project_bots_batched", :where=>"user_type = 6", :algorithm=>:concurrently})7375 -> 0.0022s7376-- transaction_open?()7377 -> 0.0000s7378-- indexes(:users)7379 -> 0.0146s7380-- remove_index(:users, {:algorithm=>:concurrently, :name=>"idx_users_on_user_type_project_bots_batched"})7381 -> 0.0016s7382== 20210914095310 CleanupOrphanProjectAccessTokens: migrated (0.0601s) ========7383== 20210914145810 AddThrottleDeprecatedApiColumns: migrating ==================7384-- add_column(:application_settings, :throttle_unauthenticated_deprecated_api_requests_per_period, :integer, {:default=>3600, :null=>false})7385 -> 0.0030s7386-- add_column(:application_settings, :throttle_unauthenticated_deprecated_api_period_in_seconds, :integer, {:default=>3600, :null=>false})7387 -> 0.0021s7388-- add_column(:application_settings, :throttle_unauthenticated_deprecated_api_enabled, :boolean, {:default=>false, :null=>false})7389 -> 0.0021s7390-- add_column(:application_settings, :throttle_authenticated_deprecated_api_requests_per_period, :integer, {:default=>3600, :null=>false})7391 -> 0.0020s7392-- add_column(:application_settings, :throttle_authenticated_deprecated_api_period_in_seconds, :integer, {:default=>1800, :null=>false})7393 -> 0.0020s7394-- add_column(:application_settings, :throttle_authenticated_deprecated_api_enabled, :boolean, {:default=>false, :null=>false})7395 -> 0.0020s7396== 20210914145810 AddThrottleDeprecatedApiColumns: migrated (0.0141s) =========7397== 20210914172202 AddStatusIndexToDependencyProxyTables: migrating ============7398-- transaction_open?()7399 -> 0.0000s7400-- index_exists?(:dependency_proxy_manifests, :status, {:name=>"index_dependency_proxy_manifests_on_status", :algorithm=>:concurrently})7401 -> 0.0022s7402-- add_index(:dependency_proxy_manifests, :status, {:name=>"index_dependency_proxy_manifests_on_status", :algorithm=>:concurrently})7403 -> 0.0014s7404-- transaction_open?()7405 -> 0.0000s7406-- index_exists?(:dependency_proxy_blobs, :status, {:name=>"index_dependency_proxy_blobs_on_status", :algorithm=>:concurrently})7407 -> 0.0021s7408-- add_index(:dependency_proxy_blobs, :status, {:name=>"index_dependency_proxy_blobs_on_status", :algorithm=>:concurrently})7409 -> 0.0016s7410== 20210914172202 AddStatusIndexToDependencyProxyTables: migrated (0.0149s) ===7411== 20210915000453 AddIndexOnClustersIntegrationPrometheusEnabled: migrating ===7412-- transaction_open?()7413 -> 0.0000s7414-- index_exists?(:clusters_integration_prometheus, [:enabled, :created_at, :cluster_id], {:name=>"index_clusters_integration_prometheus_enabled", :algorithm=>:concurrently})7415 -> 0.0015s7416-- add_index(:clusters_integration_prometheus, [:enabled, :created_at, :cluster_id], {:name=>"index_clusters_integration_prometheus_enabled", :algorithm=>:concurrently})7417 -> 0.0017s7418== 20210915000453 AddIndexOnClustersIntegrationPrometheusEnabled: migrated (0.0070s) 7419== 20210915001242 AddIndexOnClustersIntegrationElasticStackEnabled: migrating =7420-- transaction_open?()7421 -> 0.0000s7422-- index_exists?(:clusters_integration_elasticstack, [:enabled, :created_at, :cluster_id], {:name=>"index_clusters_integration_elasticstack_enabled", :algorithm=>:concurrently})7423 -> 0.0014s7424-- add_index(:clusters_integration_elasticstack, [:enabled, :created_at, :cluster_id], {:name=>"index_clusters_integration_elasticstack_enabled", :algorithm=>:concurrently})7425 -> 0.0016s7426== 20210915001242 AddIndexOnClustersIntegrationElasticStackEnabled: migrated (0.0067s) 7427== 20210915022415 CleanupBigintConversionForCiBuilds: migrating ===============7428-- remove_column(:ci_builds, "id_convert_to_bigint")7429 -> 0.0012s7430-- remove_column(:ci_builds, "stage_id_convert_to_bigint")7431 -> 0.0007s7432== 20210915022415 CleanupBigintConversionForCiBuilds: migrated (0.0035s) ======7433== 20210915070423 AddAvatarAndDescriptionToTopic: migrating ===================7434-- add_column(:topics, :avatar, :text)7435 -> 0.0011s7436-- add_column(:topics, :description, :text)7437 -> 0.0009s7438== 20210915070423 AddAvatarAndDescriptionToTopic: migrated (0.0022s) ==========7439== 20210915202900 PrepareIndexResourceGroupStatusCommitIdForCiBuilds: migrating 7440-- index_exists?(:ci_builds, [:resource_group_id, :status, :commit_id], {:where=>"resource_group_id IS NOT NULL", :name=>"index_ci_builds_on_resource_group_and_status_and_commit_id", :algorithm=>:concurrently})7441 -> 0.0145s7442-- add_index_options(:ci_builds, [:resource_group_id, :status, :commit_id], {:where=>"resource_group_id IS NOT NULL", :name=>"index_ci_builds_on_resource_group_and_status_and_commit_id", :algorithm=>:concurrently})7443 -> 0.0001s7444== 20210915202900 PrepareIndexResourceGroupStatusCommitIdForCiBuilds: migrated (0.0209s) 7445== 20210916132547 AddProcessModeToResourceGroups: migrating ===================7446-- add_column(:ci_resource_groups, :process_mode, :integer, {:default=>0, :null=>false, :limit=>2})7447 -> 0.0015s7448== 20210916132547 AddProcessModeToResourceGroups: migrated (0.0017s) ==========7449== 20210917134321 RemoveTemporaryIndexForProjectTopicsOnTaggings: migrating ===7450-- transaction_open?()7451 -> 0.0000s7452-- indexes(:taggings)7453 -> 0.0040s7454-- remove_index(:taggings, {:algorithm=>:concurrently, :name=>"tmp_index_taggings_on_id_where_taggable_type_project"})7455 -> 0.0012s7456== 20210917134321 RemoveTemporaryIndexForProjectTopicsOnTaggings: migrated (0.0139s) 7457== 20210917153645 RemovePipelineFkFromPackagesBuildInfos: migrating ===========7458-- transaction_open?()7459 -> 0.0000s7460-- foreign_keys(:packages_build_infos)7461 -> 0.0034s7462-- remove_foreign_key(:packages_build_infos, :ci_pipelines)7463 -> 0.0047s7464== 20210917153645 RemovePipelineFkFromPackagesBuildInfos: migrated (0.0109s) ==7465== 20210917153905 RemovePipelineFkFromPackagesPackageFileBuildInfos: migrating 7466-- transaction_open?()7467 -> 0.0000s7468-- foreign_keys(:packages_package_file_build_infos)7469 -> 0.0035s7470-- remove_foreign_key(:packages_package_file_build_infos, :ci_pipelines)7471 -> 0.0050s7472== 20210917153905 RemovePipelineFkFromPackagesPackageFileBuildInfos: migrated (0.0113s) 7473== 20210917224419 AddRegistrationObjectiveToUserDetail: migrating =============7474-- add_column(:user_details, :registration_objective, :smallint)7475 -> 0.0015s7476== 20210917224419 AddRegistrationObjectiveToUserDetail: migrated (0.0016s) ====7477== 20210918201050 RemoveOldPendingJobsForRecalculateVulnerabilitiesOccurrencesUuid: migrating 7478== 20210918201050 RemoveOldPendingJobsForRecalculateVulnerabilitiesOccurrencesUuid: migrated (0.0021s) 7479== 20210918202855 ReschedulePendingJobsForRecalculateVulnerabilitiesOccurrencesUuid: migrating 7480-- Scheduled 0 RecalculateVulnerabilitiesOccurrencesUuid jobs with an interval of 120 seconds.7481The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:18 UTC."7482== 20210918202855 ReschedulePendingJobsForRecalculateVulnerabilitiesOccurrencesUuid: migrated (0.0033s) 7483== 20210920104446 AddTextLimitToTopicsDescriptionAndAvatar: migrating =========7484-- transaction_open?()7485 -> 0.0000s7486-- current_schema()7487 -> 0.0004s7488-- transaction_open?()7489 -> 0.0000s7490-- execute("ALTER TABLE topics\nADD CONSTRAINT check_5d1a07c8c8\nCHECK ( char_length(description) <= 1024 )\nNOT VALID;\n")7491 -> 0.0009s7492-- current_schema()7493 -> 0.0005s7494-- execute("ALTER TABLE topics VALIDATE CONSTRAINT check_5d1a07c8c8;")7495 -> 0.0008s7496-- transaction_open?()7497 -> 0.0000s7498-- current_schema()7499 -> 0.0005s7500-- transaction_open?()7501 -> 0.0000s7502-- execute("ALTER TABLE topics\nADD CONSTRAINT check_26753fb43a\nCHECK ( char_length(avatar) <= 255 )\nNOT VALID;\n")7503 -> 0.0008s7504-- current_schema()7505 -> 0.0004s7506-- execute("ALTER TABLE topics VALIDATE CONSTRAINT check_26753fb43a;")7507 -> 0.0007s7508== 20210920104446 AddTextLimitToTopicsDescriptionAndAvatar: migrated (0.0167s) 7509== 20210920232025 RemoveCiBuildsForeignKeyFromTerraformStateVersions: migrating 7510-- transaction_open?()7511 -> 0.0000s7512-- foreign_keys(:terraform_state_versions)7513 -> 0.0035s7514-- remove_foreign_key(:terraform_state_versions, :ci_builds)7515 -> 0.0045s7516== 20210920232025 RemoveCiBuildsForeignKeyFromTerraformStateVersions: migrated (0.0106s) 7517== 20210921032008 AddSuggestPipelineEnabledToApplicationSettings: migrating ===7518-- add_column(:application_settings, :suggest_pipeline_enabled, :boolean, {:default=>true, :null=>false})7519 -> 0.0030s7520== 20210921032008 AddSuggestPipelineEnabledToApplicationSettings: migrated (0.0031s) 7521== 20210921062820 AddImageLocationIndexToVulnerabilityOccurrences: migrating ==7522-- transaction_open?()7523 -> 0.0000s7524-- index_exists?(:vulnerability_occurrences, "(location -> 'image')", {:using=>"GIN", :where=>"report_type IN (2, 7)", :name=>"index_vulnerability_occurrences_on_location_image", :algorithm=>:concurrently})7525 -> 0.0057s7526-- add_index(:vulnerability_occurrences, "(location -> 'image')", {:using=>"GIN", :where=>"report_type IN (2, 7)", :name=>"index_vulnerability_occurrences_on_location_image", :algorithm=>:concurrently})7527 -> 0.0017s7528== 20210921062820 AddImageLocationIndexToVulnerabilityOccurrences: migrated (0.0109s) 7529== 20210921063924 IndexLabelsUsingVarcharPatternOps: migrating ================7530-- transaction_open?()7531 -> 0.0000s7532-- index_exists?(:labels, :title, {:order=>{:title=>:varchar_pattern_ops}, :name=>"index_labels_on_title_varchar", :algorithm=>:concurrently})7533 -> 0.0046s7534-- add_index(:labels, :title, {:order=>{:title=>:varchar_pattern_ops}, :name=>"index_labels_on_title_varchar", :algorithm=>:concurrently})7535 -> 0.0015s7536-- transaction_open?()7537 -> 0.0000s7538-- index_exists?(:labels, [:project_id, :title], {:where=>"labels.group_id IS NULL", :unique=>true, :order=>{:title=>:varchar_pattern_ops}, :name=>"index_labels_on_project_id_and_title_varchar_unique", :algorithm=>:concurrently})7539 -> 0.0051s7540-- add_index(:labels, [:project_id, :title], {:where=>"labels.group_id IS NULL", :unique=>true, :order=>{:title=>:varchar_pattern_ops}, :name=>"index_labels_on_project_id_and_title_varchar_unique", :algorithm=>:concurrently})7541 -> 0.0015s7542-- transaction_open?()7543 -> 0.0000s7544-- index_exists?(:labels, [:group_id, :title], {:where=>"labels.project_id IS NULL", :unique=>true, :order=>{:title=>:varchar_pattern_ops}, :name=>"index_labels_on_group_id_and_title_varchar_unique", :algorithm=>:concurrently})7545 -> 0.0054s7546-- add_index(:labels, [:group_id, :title], {:where=>"labels.project_id IS NULL", :unique=>true, :order=>{:title=>:varchar_pattern_ops}, :name=>"index_labels_on_group_id_and_title_varchar_unique", :algorithm=>:concurrently})7547 -> 0.0016s7548-- transaction_open?()7549 -> 0.0000s7550-- index_exists?(:labels, :group_id, {:name=>"index_labels_on_group_id", :algorithm=>:concurrently})7551 -> 0.0058s7552-- add_index(:labels, :group_id, {:name=>"index_labels_on_group_id", :algorithm=>:concurrently})7553 -> 0.0015s7554-- transaction_open?()7555 -> 0.0000s7556-- indexes(:labels)7557 -> 0.0062s7558-- remove_index(:labels, {:algorithm=>:concurrently, :name=>"index_labels_on_title"})7559 -> 0.0012s7560-- transaction_open?()7561 -> 0.0000s7562-- indexes(:labels)7563 -> 0.0057s7564-- remove_index(:labels, {:algorithm=>:concurrently, :name=>"index_labels_on_project_id_and_title_unique"})7565 -> 0.0011s7566-- transaction_open?()7567 -> 0.0000s7568-- indexes(:labels)7569 -> 0.0053s7570-- remove_index(:labels, {:algorithm=>:concurrently, :name=>"index_labels_on_group_id_and_title_unique"})7571 -> 0.0011s7572-- transaction_open?()7573 -> 0.0000s7574-- indexes(:labels)7575 -> 0.0050s7576-- remove_index(:labels, {:algorithm=>:concurrently, :name=>"index_labels_on_group_id_and_project_id_and_title"})7577 -> 0.0011s7578== 20210921063924 IndexLabelsUsingVarcharPatternOps: migrated (0.0775s) =======7579== 20210921191010 AddReportTypeIndexIntoApprovalProjectRules: migrating =======7580-- transaction_open?()7581 -> 0.0000s7582-- index_exists?(:approval_project_rules, :report_type, {:name=>"index_approval_project_rules_report_type", :algorithm=>:concurrently})7583 -> 0.0033s7584-- add_index(:approval_project_rules, :report_type, {:name=>"index_approval_project_rules_report_type", :algorithm=>:concurrently})7585 -> 0.0013s7586== 20210921191010 AddReportTypeIndexIntoApprovalProjectRules: migrated (0.0079s) 7587== 20210922021816 DropInt4ColumnsForCiJobArtifacts: migrating =================7588-- remove_column(:ci_job_artifacts, :id_convert_to_bigint, :integer, {:null=>false, :default=>0})7589 -> 0.0010s7590-- remove_column(:ci_job_artifacts, :job_id_convert_to_bigint, :integer, {:null=>false, :default=>0})7591 -> 0.0007s7592== 20210922021816 DropInt4ColumnsForCiJobArtifacts: migrated (0.0019s) ========7593== 20210922025631 DropInt4ColumnForCiSourcesPipelines: migrating ==============7594-- remove_column(:ci_sources_pipelines, :source_job_id_convert_to_bigint, :integer)7595 -> 0.0008s7596== 20210922025631 DropInt4ColumnForCiSourcesPipelines: migrated (0.0009s) =====7597== 20210922082019 DropInt4ColumnForEvents: migrating ==========================7598-- remove_column(:events, :id_convert_to_bigint, :integer, {:null=>false, :default=>0})7599 -> 0.0009s7600== 20210922082019 DropInt4ColumnForEvents: migrated (0.0010s) =================7601== 20210922084115 ConcurrentIndexResourceGroupStatusCommitIdForCiBuilds: migrating 7602-- transaction_open?()7603 -> 0.0000s7604-- index_exists?(:ci_builds, [:resource_group_id, :status, :commit_id], {:where=>"resource_group_id IS NOT NULL", :name=>"index_ci_builds_on_resource_group_and_status_and_commit_id", :algorithm=>:concurrently})7605 -> 0.0149s7606-- add_index(:ci_builds, [:resource_group_id, :status, :commit_id], {:where=>"resource_group_id IS NOT NULL", :name=>"index_ci_builds_on_resource_group_and_status_and_commit_id", :algorithm=>:concurrently})7607 -> 0.0017s7608== 20210922084115 ConcurrentIndexResourceGroupStatusCommitIdForCiBuilds: migrated (0.0215s) 7609== 20210922091402 DropInt4ColumnForPushEventPayloads: migrating ===============7610-- remove_column(:push_event_payloads, :event_id_convert_to_bigint, :integer, {:null=>false, :default=>0})7611 -> 0.0010s7612== 20210922091402 DropInt4ColumnForPushEventPayloads: migrated (0.0011s) ======7613== 20210922172056 AddUniqueNamespacesIndexOnNameParentIdAndType: migrating ====7614-- transaction_open?()7615 -> 0.0000s7616-- index_exists?(:namespaces, [:name, :parent_id, :type], {:unique=>true, :name=>"index_namespaces_name_parent_id_type", :algorithm=>:concurrently})7617 -> 0.0120s7618-- add_index(:namespaces, [:name, :parent_id, :type], {:unique=>true, :name=>"index_namespaces_name_parent_id_type", :algorithm=>:concurrently})7619 -> 0.0022s7620== 20210922172056 AddUniqueNamespacesIndexOnNameParentIdAndType: migrated (0.0178s) 7621== 20210922172156 DropUniqueNamespacesIndexOnNameAndParentId: migrating =======7622-- transaction_open?()7623 -> 0.0000s7624-- indexes(:namespaces)7625 -> 0.0129s7626-- remove_index(:namespaces, {:algorithm=>:concurrently, :name=>"index_namespaces_on_name_and_parent_id"})7627 -> 0.0015s7628== 20210922172156 DropUniqueNamespacesIndexOnNameAndParentId: migrated (0.0172s) 7629== 20210922215740 CreateIssueCustomerRelationsContacts: migrating =============7630-- create_table(:issue_customer_relations_contacts, {})7631 -> 0.0038s7632== 20210922215740 CreateIssueCustomerRelationsContacts: migrated (0.0039s) ====7633== 20210922220104 AddIssueCustomerRelationsContactsForeignKeys: migrating =====7634-- transaction_open?()7635 -> 0.0000s7636-- foreign_keys(:issue_customer_relations_contacts)7637 -> 0.0032s7638-- transaction_open?()7639 -> 0.0000s7640-- execute("ALTER TABLE issue_customer_relations_contacts\nADD CONSTRAINT fk_0c0037f723\nFOREIGN KEY (issue_id)\nREFERENCES issues (id)\nON DELETE CASCADE\nNOT VALID;\n")7641 -> 0.0014s7642-- execute("ALTER TABLE issue_customer_relations_contacts VALIDATE CONSTRAINT fk_0c0037f723;")7643 -> 0.0015s7644-- transaction_open?()7645 -> 0.0000s7646-- foreign_keys(:issue_customer_relations_contacts)7647 -> 0.0035s7648-- transaction_open?()7649 -> 0.0000s7650-- execute("ALTER TABLE issue_customer_relations_contacts\nADD CONSTRAINT fk_7b92f835bb\nFOREIGN KEY (contact_id)\nREFERENCES customer_relations_contacts (id)\nON DELETE CASCADE\nNOT VALID;\n")7651 -> 0.0011s7652-- execute("ALTER TABLE issue_customer_relations_contacts VALIDATE CONSTRAINT fk_7b92f835bb;")7653 -> 0.0011s7654== 20210922220104 AddIssueCustomerRelationsContactsForeignKeys: migrated (0.0183s) 7655== 20210923042323 AddMetaDataToUserCreditCardValidations: migrating ===========7656-- change_table(:user_credit_card_validations)7657 -> 0.0027s7658== 20210923042323 AddMetaDataToUserCreditCardValidations: migrated (0.0028s) ==7659== 20210923042324 LimitHolderNameOnUserCreditCardValidations: migrating =======7660-- transaction_open?()7661 -> 0.0000s7662-- current_schema()7663 -> 0.0004s7664-- transaction_open?()7665 -> 0.0000s7666-- execute("ALTER TABLE user_credit_card_validations\nADD CONSTRAINT check_eafe45d88b\nCHECK ( char_length(holder_name) <= 26 )\nNOT VALID;\n")7667 -> 0.0008s7668-- current_schema()7669 -> 0.0005s7670-- execute("ALTER TABLE user_credit_card_validations VALIDATE CONSTRAINT check_eafe45d88b;")7671 -> 0.0007s7672-- transaction_open?()7673 -> 0.0000s7674-- current_schema()7675 -> 0.0005s7676-- transaction_open?()7677 -> 0.0000s7678-- execute("ALTER TABLE user_credit_card_validations\nADD CONSTRAINT check_3eea080c91\nCHECK ( last_digits BETWEEN 0 AND 9999 )\nNOT VALID;\n")7679 -> 0.0008s7680-- current_schema()7681 -> 0.0004s7682-- execute("ALTER TABLE user_credit_card_validations VALIDATE CONSTRAINT check_3eea080c91;")7683 -> 0.0007s7684== 20210923042324 LimitHolderNameOnUserCreditCardValidations: migrated (0.0163s) 7685== 20210923042325 IndexMetaDataOnUserCreditCardValidations: migrating =========7686-- transaction_open?()7687 -> 0.0000s7688-- index_exists?(:user_credit_card_validations, [:holder_name, :expiration_date, :last_digits, :credit_card_validated_at], {:name=>"index_user_credit_card_validations_meta_data_full_match", :algorithm=>:concurrently})7689 -> 0.0015s7690-- add_index(:user_credit_card_validations, [:holder_name, :expiration_date, :last_digits, :credit_card_validated_at], {:name=>"index_user_credit_card_validations_meta_data_full_match", :algorithm=>:concurrently})7691 -> 0.0017s7692== 20210923042325 IndexMetaDataOnUserCreditCardValidations: migrated (0.0067s) 7693== 20210923133143 RemoveRedundantTaggingsIndex: migrating =====================7694-- transaction_open?()7695 -> 0.0000s7696-- indexes(:taggings)7697 -> 0.0035s7698-- remove_index(:taggings, {:algorithm=>:concurrently, :name=>:index_taggings_on_taggable_id_and_taggable_type})7699 -> 0.0011s7700== 20210923133143 RemoveRedundantTaggingsIndex: migrated (0.0072s) ============7701== 20210923135909 RemoveDelayedProjectRemovalFromNamespaces: migrating ========7702-- transaction_open?()7703 -> 0.0000s7704-- remove_column(:namespaces, :delayed_project_removal)7705 -> 0.0015s7706== 20210923135909 RemoveDelayedProjectRemovalFromNamespaces: migrated (0.0044s) 7707== 20210923151641 ChangeDefaultForIntegratedErrorTracking: migrating ==========7708-- change_column_default(:project_error_tracking_settings, :integrated, {:from=>false, :to=>true})7709 -> 0.0029s7710== 20210923151641 ChangeDefaultForIntegratedErrorTracking: migrated (0.0030s) =7711== 20210927153807 UpdateIssuesRelativePositionIndexes: migrating ==============7712-- transaction_open?()7713 -> 0.0000s7714-- index_exists?(:issues, [:project_id, :relative_position, :id, :state_id], {:name=>"idx_issues_on_project_id_and_rel_position_and_id_and_state_id", :algorithm=>:concurrently})7715 -> 0.0153s7716-- add_index(:issues, [:project_id, :relative_position, :id, :state_id], {:name=>"idx_issues_on_project_id_and_rel_position_and_id_and_state_id", :algorithm=>:concurrently})7717 -> 0.0021s7718-- transaction_open?()7719 -> 0.0000s7720-- indexes(:issues)7721 -> 0.0159s7722-- remove_index(:issues, {:algorithm=>:concurrently, :name=>"idx_issues_on_project_id_and_rel_asc_and_id"})7723 -> 0.0014s7724-- transaction_open?()7725 -> 0.0000s7726-- indexes(:issues)7727 -> 0.0156s7728-- remove_index(:issues, {:algorithm=>:concurrently, :name=>"idx_issues_on_project_id_and_rel_position_and_state_id_and_id"})7729 -> 0.0013s7730== 20210927153807 UpdateIssuesRelativePositionIndexes: migrated (0.0613s) =====7731== 20210928155022 ImproveIndexForErrorTracking: migrating =====================7732-- transaction_open?()7733 -> 0.0000s7734-- index_exists?(:error_tracking_errors, [:project_id, :status, :last_seen_at, :id], {:order=>{:last_seen_at=>:desc, :id=>:desc}, :name=>"index_et_errors_on_project_id_and_status_last_seen_at_id_desc", :algorithm=>:concurrently})7735 -> 0.0040s7736-- add_index(:error_tracking_errors, [:project_id, :status, :last_seen_at, :id], {:order=>{:last_seen_at=>:desc, :id=>:desc}, :name=>"index_et_errors_on_project_id_and_status_last_seen_at_id_desc", :algorithm=>:concurrently})7737 -> 0.0017s7738-- transaction_open?()7739 -> 0.0000s7740-- index_exists?(:error_tracking_errors, [:project_id, :status, :first_seen_at, :id], {:order=>{:first_seen_at=>:desc, :id=>:desc}, :name=>"index_et_errors_on_project_id_and_status_first_seen_at_id_desc", :algorithm=>:concurrently})7741 -> 0.0047s7742-- add_index(:error_tracking_errors, [:project_id, :status, :first_seen_at, :id], {:order=>{:first_seen_at=>:desc, :id=>:desc}, :name=>"index_et_errors_on_project_id_and_status_first_seen_at_id_desc", :algorithm=>:concurrently})7743 -> 0.0019s7744-- transaction_open?()7745 -> 0.0000s7746-- index_exists?(:error_tracking_errors, [:project_id, :status, :events_count, :id], {:order=>{:events_count=>:desc, :id=>:desc}, :name=>"index_et_errors_on_project_id_and_status_events_count_id_desc", :algorithm=>:concurrently})7747 -> 0.0050s7748-- add_index(:error_tracking_errors, [:project_id, :status, :events_count, :id], {:order=>{:events_count=>:desc, :id=>:desc}, :name=>"index_et_errors_on_project_id_and_status_events_count_id_desc", :algorithm=>:concurrently})7749 -> 0.0018s7750-- transaction_open?()7751 -> 0.0000s7752-- index_exists?(:error_tracking_errors, [:project_id, :status, :last_seen_at], {:name=>"index_et_errors_on_project_id_and_status_and_last_seen_at", :algorithm=>:concurrently})7753 -> 0.0054s7754-- remove_index(:error_tracking_errors, {:name=>"index_et_errors_on_project_id_and_status_and_last_seen_at", :algorithm=>:concurrently, :column=>[:project_id, :status, :last_seen_at]})7755 -> 0.0065s7756-- transaction_open?()7757 -> 0.0000s7758-- index_exists?(:error_tracking_errors, [:project_id, :status, :first_seen_at], {:name=>"index_et_errors_on_project_id_and_status_and_first_seen_at", :algorithm=>:concurrently})7759 -> 0.0049s7760-- remove_index(:error_tracking_errors, {:name=>"index_et_errors_on_project_id_and_status_and_first_seen_at", :algorithm=>:concurrently, :column=>[:project_id, :status, :first_seen_at]})7761 -> 0.0060s7762-- transaction_open?()7763 -> 0.0000s7764-- index_exists?(:error_tracking_errors, [:project_id, :status, :events_count], {:name=>"index_et_errors_on_project_id_and_status_and_events_count", :algorithm=>:concurrently})7765 -> 0.0045s7766-- remove_index(:error_tracking_errors, {:name=>"index_et_errors_on_project_id_and_status_and_events_count", :algorithm=>:concurrently, :column=>[:project_id, :status, :events_count]})7767 -> 0.0056s7768== 20210928155022 ImproveIndexForErrorTracking: migrated (0.0735s) ============7769== 20210928171122 AddGroupIdStatusIdIndexToDependencyProxyTables: migrating ===7770-- transaction_open?()7771 -> 0.0000s7772-- index_exists?(:dependency_proxy_manifests, [:group_id, :status, :id], {:name=>"index_dependency_proxy_manifests_on_group_id_status_and_id", :algorithm=>:concurrently})7773 -> 0.0024s7774-- add_index(:dependency_proxy_manifests, [:group_id, :status, :id], {:name=>"index_dependency_proxy_manifests_on_group_id_status_and_id", :algorithm=>:concurrently})7775 -> 0.0014s7776-- transaction_open?()7777 -> 0.0000s7778-- index_exists?(:dependency_proxy_blobs, [:group_id, :status, :id], {:name=>"index_dependency_proxy_blobs_on_group_id_status_and_id", :algorithm=>:concurrently})7779 -> 0.0025s7780-- add_index(:dependency_proxy_blobs, [:group_id, :status, :id], {:name=>"index_dependency_proxy_blobs_on_group_id_status_and_id", :algorithm=>:concurrently})7781 -> 0.0015s7782== 20210928171122 AddGroupIdStatusIdIndexToDependencyProxyTables: migrated (0.0147s) 7783== 20210929025600 AddPhoneToUserDetails: migrating ============================7784-- add_column(:user_details, :phone, :text, {:comment=>"JiHu-specific column"})7785 -> 0.0014s7786== 20210929025600 AddPhoneToUserDetails: migrated (0.0015s) ===================7787== 20210929030834 AddTextLimitToUserDetailsPhone: migrating ===================7788-- transaction_open?()7789 -> 0.0000s7790-- current_schema()7791 -> 0.0005s7792-- transaction_open?()7793 -> 0.0000s7794-- execute("ALTER TABLE user_details\nADD CONSTRAINT check_a73b398c60\nCHECK ( char_length(phone) <= 32 )\nNOT VALID;\n")7795 -> 0.0008s7796-- current_schema()7797 -> 0.0004s7798-- execute("ALTER TABLE user_details VALIDATE CONSTRAINT check_a73b398c60;")7799 -> 0.0008s7800== 20210929030834 AddTextLimitToUserDetailsPhone: migrated (0.0085s) ==========7801== 20210929031049 AddUniqueIndexPhoneOnUserDetails: migrating =================7802-- transaction_open?()7803 -> 0.0000s7804-- index_exists?(:user_details, :phone, {:unique=>true, :where=>"phone IS NOT NULL", :name=>"index_user_details_on_phone", :comment=>"JiHu-specific index", :algorithm=>:concurrently})7805 -> 0.0025s7806-- add_index(:user_details, :phone, {:unique=>true, :where=>"phone IS NOT NULL", :name=>"index_user_details_on_phone", :comment=>"JiHu-specific index", :algorithm=>:concurrently})7807 -> 0.0019s7808== 20210929031049 AddUniqueIndexPhoneOnUserDetails: migrated (0.0078s) ========7809== 20210929032555 CreateVerificationCodes: migrating ==========================7810-- execute("CREATE TABLE verification_codes (\n created_at timestamp with time zone NOT NULL DEFAULT NOW(),\n visitor_id_code text,\n code text,\n phone text,\n PRIMARY KEY (created_at, visitor_id_code, code, phone),\n CONSTRAINT check_ccc542256b CHECK ((char_length(visitor_id_code) <= 64)),\n CONSTRAINT check_9b84e6aaff CHECK ((char_length(code) <= 8)),\n CONSTRAINT check_f5684c195b CHECK ((char_length(phone) <= 32))\n) PARTITION BY RANGE (created_at);\nCOMMENT ON TABLE verification_codes IS 'JiHu-specific table';\n\nCREATE UNIQUE INDEX index_verification_codes_on_phone_and_visitor_id_code ON verification_codes (visitor_id_code, phone, created_at);\nCOMMENT ON INDEX index_verification_codes_on_phone_and_visitor_id_code IS 'JiHu-specific index';\n")7811 -> 0.0027s7812-- table_exists?("gitlab_partitions_dynamic.verification_codes_000000")7813 -> 0.0007s7814-- execute("CREATE TABLE gitlab_partitions_dynamic.verification_codes_000000 PARTITION OF verification_codes\nFOR VALUES FROM (MINVALUE) TO ('2021-09-01')\n")7815 -> 0.0034s7816-- table_exists?("gitlab_partitions_dynamic.verification_codes_202109")7817 -> 0.0009s7818-- execute("CREATE TABLE gitlab_partitions_dynamic.verification_codes_202109 PARTITION OF verification_codes\nFOR VALUES FROM ('2021-09-01') TO ('2021-10-01')\n")7819 -> 0.0034s7820-- table_exists?("gitlab_partitions_dynamic.verification_codes_202110")7821 -> 0.0008s7822-- execute("CREATE TABLE gitlab_partitions_dynamic.verification_codes_202110 PARTITION OF verification_codes\nFOR VALUES FROM ('2021-10-01') TO ('2021-11-01')\n")7823 -> 0.0032s7824-- table_exists?("gitlab_partitions_dynamic.verification_codes_202111")7825 -> 0.0008s7826-- execute("CREATE TABLE gitlab_partitions_dynamic.verification_codes_202111 PARTITION OF verification_codes\nFOR VALUES FROM ('2021-11-01') TO ('2021-12-01')\n")7827 -> 0.0035s7828== 20210929032555 CreateVerificationCodes: migrated (0.0204s) =================7829== 20210929115340 AddSecurityPolicyConfigurationsManagementProjectIdForeignKey: migrating 7830-- transaction_open?()7831 -> 0.0000s7832-- foreign_keys(:security_orchestration_policy_configurations)7833 -> 0.0029s7834-- transaction_open?()7835 -> 0.0000s7836-- execute("ALTER TABLE security_orchestration_policy_configurations\nADD CONSTRAINT fk_security_policy_configurations_management_project_id\nFOREIGN KEY (security_policy_management_project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n")7837 -> 0.0017s7838-- execute("ALTER TABLE security_orchestration_policy_configurations VALIDATE CONSTRAINT fk_security_policy_configurations_management_project_id;")7839 -> 0.0018s7840-- foreign_keys(:security_orchestration_policy_configurations)7841 -> 0.0035s7842-- remove_foreign_key(:security_orchestration_policy_configurations, {:column=>:security_policy_management_project_id, :on_delete=>:restrict, :name=>"fk_rails_42ed6c25ec"})7843 -> 0.0046s7844== 20210929115340 AddSecurityPolicyConfigurationsManagementProjectIdForeignKey: migrated (0.0181s) 7845== 20210929121516 AddReleasesAuthorIdIdCreatedAtIndex: migrating ==============7846-- transaction_open?()7847 -> 0.0000s7848-- index_exists?(:releases, [:author_id, :id, :created_at], {:name=>"index_releases_on_author_id_id_created_at", :algorithm=>:concurrently})7849 -> 0.0030s7850-- add_index(:releases, [:author_id, :id, :created_at], {:name=>"index_releases_on_author_id_id_created_at", :algorithm=>:concurrently})7851 -> 0.0014s7852== 20210929121516 AddReleasesAuthorIdIdCreatedAtIndex: migrated (0.0080s) =====7853== 20210930081208 FixDeprecatedApiThrottleDefaults: migrating =================7854-- change_column_default(:application_settings, :throttle_unauthenticated_deprecated_api_requests_per_period, {:from=>3600, :to=>1800})7855 -> 0.2316s7856-- change_column_default(:application_settings, :throttle_authenticated_deprecated_api_period_in_seconds, {:from=>1800, :to=>3600})7857 -> 0.1252s7858== 20210930081208 FixDeprecatedApiThrottleDefaults: migrated (0.3570s) ========7859== 20211001001222 AddSourceVersionToBulkImports: migrating ====================7860-- add_column(:bulk_imports, :source_version, :text)7861 -> 0.0018s7862== 20211001001222 AddSourceVersionToBulkImports: migrated (0.0021s) ===========7863== 20211004062942 CreateCoverageFuzzingCorpuses: migrating ====================7864-- create_table(:coverage_fuzzing_corpuses, {})7865 -> 0.0050s7866== 20211004062942 CreateCoverageFuzzingCorpuses: migrated (0.0052s) ===========7867== 20211004075629 AddTopicsNameGinIndex: migrating ============================7868-- transaction_open?()7869 -> 0.0000s7870-- index_exists?(:topics, :name, {:name=>"index_topics_on_name_trigram", :using=>:gin, :opclass=>{:name=>:gin_trgm_ops}, :algorithm=>:concurrently})7871 -> 0.0019s7872-- add_index(:topics, :name, {:name=>"index_topics_on_name_trigram", :using=>:gin, :opclass=>{:name=>:gin_trgm_ops}, :algorithm=>:concurrently})7873 -> 0.0014s7874== 20211004075629 AddTopicsNameGinIndex: migrated (0.0072s) ===================7875== 20211004081911 AddExternalEventDestinationLimitToPlanLimits: migrating =====7876-- add_column(:plan_limits, :external_audit_event_destinations, :integer, {:default=>5, :null=>false})7877 -> 0.0021s7878== 20211004081911 AddExternalEventDestinationLimitToPlanLimits: migrated (0.0022s) 7879== 20211004110500 AddTemporaryIndexToIssueMetrics: migrating ==================7880-- transaction_open?()7881 -> 0.0000s7882-- index_exists?(:issue_metrics, :issue_id, {:where=>"EXTRACT(YEAR FROM first_mentioned_in_commit_at) > 2019", :name=>"index_issue_metrics_first_mentioned_in_commit", :algorithm=>:concurrently})7883 -> 0.0025s7884-- add_index(:issue_metrics, :issue_id, {:where=>"EXTRACT(YEAR FROM first_mentioned_in_commit_at) > 2019", :name=>"index_issue_metrics_first_mentioned_in_commit", :algorithm=>:concurrently})7885 -> 0.0016s7886== 20211004110500 AddTemporaryIndexToIssueMetrics: migrated (0.0079s) =========7887== 20211004110927 ScheduleFixFirstMentionedInCommitAtJob: migrating ===========7888-- Scheduled 0 FixFirstMentionedInCommitAt jobs with a maximum of 10000 records per batch and an interval of 120 seconds.7889The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:19 UTC."7890== 20211004110927 ScheduleFixFirstMentionedInCommitAtJob: migrated (0.0038s) ==7891== 20211005010101 RerescheduleDeleteOrphanedDeployments: migrating ============7892-- Scheduled 0 DeleteOrphanedDeployments jobs with an interval of 120 seconds.7893The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:19 UTC."7894== 20211005010101 RerescheduleDeleteOrphanedDeployments: migrated (0.0041s) ===7895== 20211005063519 AddForeignKeyToCorpusesOnProject: migrating =================7896-- transaction_open?()7897 -> 0.0000s7898-- foreign_keys(:coverage_fuzzing_corpuses)7899 -> 0.0029s7900-- transaction_open?()7901 -> 0.0001s7902-- execute("ALTER TABLE coverage_fuzzing_corpuses\nADD CONSTRAINT fk_204d40056a\nFOREIGN KEY (project_id)\nREFERENCES projects (id)\nON DELETE CASCADE\nNOT VALID;\n")7903 -> 0.0020s7904-- execute("ALTER TABLE coverage_fuzzing_corpuses VALIDATE CONSTRAINT fk_204d40056a;")7905 -> 0.0021s7906== 20211005063519 AddForeignKeyToCorpusesOnProject: migrated (0.0120s) ========7907== 20211005063616 AddForeignKeyToCorpusesOnUser: migrating ====================7908-- transaction_open?()7909 -> 0.0000s7910-- foreign_keys(:coverage_fuzzing_corpuses)7911 -> 0.0030s7912-- transaction_open?()7913 -> 0.0000s7914-- execute("ALTER TABLE coverage_fuzzing_corpuses\nADD CONSTRAINT fk_29f6f15f82\nFOREIGN KEY (user_id)\nREFERENCES users (id)\nON DELETE CASCADE\nNOT VALID;\n")7915 -> 0.0015s7916-- execute("ALTER TABLE coverage_fuzzing_corpuses VALIDATE CONSTRAINT fk_29f6f15f82;")7917 -> 0.0014s7918== 20211005063616 AddForeignKeyToCorpusesOnUser: migrated (0.0106s) ===========7919== 20211005063723 AddForeignKeyToCorpusesOnPackage: migrating =================7920-- transaction_open?()7921 -> 0.0000s7922-- foreign_keys(:coverage_fuzzing_corpuses)7923 -> 0.0030s7924-- transaction_open?()7925 -> 0.0000s7926-- execute("ALTER TABLE coverage_fuzzing_corpuses\nADD CONSTRAINT fk_ef5ebf339f\nFOREIGN KEY (package_id)\nREFERENCES packages_packages (id)\nON DELETE CASCADE\nNOT VALID;\n")7927 -> 0.0012s7928-- execute("ALTER TABLE coverage_fuzzing_corpuses VALIDATE CONSTRAINT fk_ef5ebf339f;")7929 -> 0.0014s7930== 20211005063723 AddForeignKeyToCorpusesOnPackage: migrated (0.0104s) ========7931== 20211005083015 RecreateIndexSecurityCiBuildsOnNameAndIdParserFeatures: migrating 7932-- rename_index("ci_builds", "index_security_ci_builds_on_name_and_id_parser_features", "index_security_ci_builds_on_name_and_id_parser_features_broken")7933 -> 0.0008s7934-- index_exists?("ci_builds", [:name, :id], {:name=>"index_security_ci_builds_on_name_and_id_parser_features", :where=>"(name::text = ANY (ARRAY['container_scanning'::character varying::text,\n 'dast'::character varying::text,\n 'dependency_scanning'::character varying::text,\n 'license_management'::character varying::text,\n 'sast'::character varying::text,\n 'secret_detection'::character varying::text,\n 'coverage_fuzzing'::character varying::text,\n 'license_scanning'::character varying::text])\n ) AND type::text = 'Ci::Build'::text", :algorithm=>:concurrently})7935 -> 0.0155s7936-- add_index_options("ci_builds", [:name, :id], {:name=>"index_security_ci_builds_on_name_and_id_parser_features", :where=>"(name::text = ANY (ARRAY['container_scanning'::character varying::text,\n 'dast'::character varying::text,\n 'dependency_scanning'::character varying::text,\n 'license_management'::character varying::text,\n 'sast'::character varying::text,\n 'secret_detection'::character varying::text,\n 'coverage_fuzzing'::character varying::text,\n 'license_scanning'::character varying::text])\n ) AND type::text = 'Ci::Build'::text", :algorithm=>:concurrently})7937 -> 0.0001s7938== 20211005083015 RecreateIndexSecurityCiBuildsOnNameAndIdParserFeatures: migrated (0.0235s) 7939== 20211005092428 DropTimeRangePartitionedLooseFk: migrating ==================7940-- drop_table(:loose_foreign_keys_deleted_records)7941 -> 0.0045s7942== 20211005092428 DropTimeRangePartitionedLooseFk: migrated (0.0046s) =========7943== 20211005093558 AddRangePartitionedLooseFkTable: migrating ==================7944-- execute("CREATE TABLE loose_foreign_keys_deleted_records (\n id BIGSERIAL NOT NULL,\n partition bigint NOT NULL,\n primary_key_value bigint NOT NULL,\n status smallint NOT NULL DEFAULT 1,\n created_at timestamp with time zone NOT NULL DEFAULT NOW(),\n fully_qualified_table_name text NOT NULL,\n PRIMARY KEY (partition, id),\n CONSTRAINT check_1a541f3235 CHECK ((char_length(fully_qualified_table_name) <= 150))\n) PARTITION BY LIST (partition);\n\nCREATE TABLE gitlab_partitions_static.loose_foreign_keys_deleted_records_1\nPARTITION OF loose_foreign_keys_deleted_records\nFOR VALUES IN (1);\n")7945 -> 0.0044s7946== 20211005093558 AddRangePartitionedLooseFkTable: migrated (0.0047s) =========7947== 20211005100112 RecreateLooseFkInsertFunction: migrating ====================7948-- execute("CREATE OR REPLACE FUNCTION insert_into_loose_foreign_keys_deleted_records()\nRETURNS TRIGGER AS\n$$\nBEGIN\n INSERT INTO loose_foreign_keys_deleted_records\n (partition, fully_qualified_table_name, primary_key_value)\n SELECT 1, TG_TABLE_SCHEMA || '.' || TG_TABLE_NAME, old_table.id FROM old_table\n ON CONFLICT DO NOTHING;\n\n RETURN NULL;\nEND\n$$ LANGUAGE PLPGSQL\n")7949 -> 0.0015s7950== 20211005100112 RecreateLooseFkInsertFunction: migrated (0.0017s) ===========7951== 20211006060254 AddTopicsTotalProjectsCountCache: migrating =================7952-- add_column(:topics, :total_projects_count, :bigint, {:null=>false, :default=>0})7953 -> 0.0024s7954== 20211006060254 AddTopicsTotalProjectsCountCache: migrated (0.0025s) ========7955== 20211006060436 SchedulePopulateTopicsTotalProjectsCountCache: migrating ====7956-- Scheduled 0 PopulateTopicsTotalProjectsCountCache jobs with a maximum of 10000 records per batch and an interval of 120 seconds.7957The migration is expected to take at least 0 seconds. Expect all jobs to have completed after 2021-10-13 18:27:19 UTC."7958== 20211006060436 SchedulePopulateTopicsTotalProjectsCountCache: migrated (0.0061s) 7959== 20211006103122 ChangeHelmChannelLength: migrating ==========================7960-- transaction_open?()7961 -> 0.0000s7962-- current_schema()7963 -> 0.0007s7964-- transaction_open?()7965 -> 0.0000s7966-- execute("ALTER TABLE packages_helm_file_metadata\nADD CONSTRAINT check_06e8d100af\nCHECK ( char_length(channel) <= 255 )\nNOT VALID;\n")7967 -> 0.0011s7968-- current_schema()7969 -> 0.0005s7970-- execute("ALTER TABLE packages_helm_file_metadata VALIDATE CONSTRAINT check_06e8d100af;")7971 -> 0.0009s7972-- transaction_open?()7973 -> 0.0000s7974-- transaction_open?()7975 -> 0.0000s7976-- execute("ALTER TABLE packages_helm_file_metadata\nDROP CONSTRAINT IF EXISTS check_c34067922d\n")7977 -> 0.0008s7978== 20211006103122 ChangeHelmChannelLength: migrated (0.0146s) =================7979== 20211006122010 AddTopicsTotalProjectsCountIndex: migrating =================7980-- transaction_open?()7981 -> 0.0000s7982-- index_exists?(:topics, [:total_projects_count, :id], {:order=>{:total_projects_count=>:desc}, :name=>"index_topics_total_projects_count", :algorithm=>:concurrently})7983 -> 0.0027s7984-- add_index(:topics, [:total_projects_count, :id], {:order=>{:total_projects_count=>:desc}, :name=>"index_topics_total_projects_count", :algorithm=>:concurrently})7985 -> 0.0018s7986== 20211006122010 AddTopicsTotalProjectsCountIndex: migrated (0.0086s) ========7987== 20211006145004 FinalizeIndexesForCiJobArtifactsExpireAtUnlocked: migrating =7988-- transaction_open?()7989 -> 0.0000s7990-- index_exists?("ci_job_artifacts", [:expire_at], {:where=>"locked = 0", :name=>"ci_job_artifacts_expire_at_unlocked_idx", :algorithm=>:concurrently})7991 -> 0.0056s7992-- add_index("ci_job_artifacts", [:expire_at], {:where=>"locked = 0", :name=>"ci_job_artifacts_expire_at_unlocked_idx", :algorithm=>:concurrently})7993 -> 0.0018s7994== 20211006145004 FinalizeIndexesForCiJobArtifactsExpireAtUnlocked: migrated (0.0146s) 7995== 20211006174114 AddNamespaceIndexOnTypeSync: migrating ======================7996-- transaction_open?()7997 -> 0.0000s7998-- index_exists?(:namespaces, [:type, :id], {:name=>"index_namespaces_on_type_and_id", :algorithm=>:concurrently})7999 -> 0.0130s8000-- add_index(:namespaces, [:type, :id], {:name=>"index_namespaces_on_type_and_id", :algorithm=>:concurrently})8001 -> 0.0022s8002-- transaction_open?()8003 -> 0.0000s8004-- indexes(:namespaces)8005 -> 0.0137s8006-- remove_index(:namespaces, {:algorithm=>:concurrently, :name=>"index_namespaces_on_type_and_id_partial"})8007 -> 0.0016s8008== 20211006174114 AddNamespaceIndexOnTypeSync: migrated (0.0386s) =============8009== 20211008181451 AddSharedRunnersDurationToCiNamespaceMonthlyUsages: migrating 8010-- add_column(:ci_namespace_monthly_usages, :shared_runners_duration, :integer, {:default=>0, :null=>false})8011 -> 0.0021s8012== 20211008181451 AddSharedRunnersDurationToCiNamespaceMonthlyUsages: migrated (0.0022s) 8013== 20211008182954 AddSharedRunnersDurationToCiProjectMonthlyUsages: migrating =8014-- add_column(:ci_project_monthly_usages, :shared_runners_duration, :integer, {:default=>0, :null=>false})8015 -> 0.0016s8016== 20211008182954 AddSharedRunnersDurationToCiProjectMonthlyUsages: migrated (0.0017s) 8017== 20211011152701 CleanupDeleteOrphanedDeploymentsBackgroundMigration: migrating 8018== 20211011152701 CleanupDeleteOrphanedDeploymentsBackgroundMigration: migrated (0.0083s) 8019== 20211012091822 AddTextLimitToBulkImportsSourceVersion: migrating ===========8020-- transaction_open?()8021 -> 0.0000s8022-- current_schema()8023 -> 0.0006s8024-- transaction_open?()8025 -> 0.0000s8026-- execute("ALTER TABLE bulk_imports\nADD CONSTRAINT check_ea4e58775a\nCHECK ( char_length(source_version) <= 63 )\nNOT VALID;\n")8027 -> 0.0010s8028-- current_schema()8029 -> 0.0005s8030-- execute("ALTER TABLE bulk_imports VALIDATE CONSTRAINT check_ea4e58775a;")8031 -> 0.0011s8032== 20211012091822 AddTextLimitToBulkImportsSourceVersion: migrated (0.0124s) ==8033Databases re-creation done in 52.2713616519999968034Gitlab::BackgroundMigration::FixPromotedEpicsDiscussionIds8035 #perform with batch of discussion ids8036 updates discussion ids8037 skips notes with discussion id not in range8038BackfillAndAddNotNullConstraintToReleasedAtColumnOnReleasesTable8039 fills released_at with the value of created_at8040Gitlab::BackgroundMigration::MigrateFingerprintSha256WithinKeys8041 correctly creates a sha256 fingerprint for a key8042 migrates all keys8043 with invalid keys8044 ignores errors and does not set the fingerprint8045DropBackgroundMigrationJobs8046 #up8047 there are only affected jobs on the queue8048 removes enqueued ActivatePrometheusServicesForSharedClusterApplications background jobs8049 there aren't any affected jobs on the queue8050 skips other enqueued jobs8051 there are multiple types of jobs on the queue8052 skips other enqueued jobs8053 other queues8054 does not modify them8055AddAdminModeProtectedPath8056== 20191125114345 AddAdminModeProtectedPath: migrating ========================8057-- change_column_default(:application_settings, :protected_paths, ["/users/password", "/users/sign_in", "/api/v3/session.json", "/api/v3/session", "/api/v4/session.json", "/api/v4/session", "/users", "/users/confirmation", "/unsubscribes/", "/import/github/personal_access_token", "/admin/session"])8058 -> 0.1680s8059== 20191125114345 AddAdminModeProtectedPath: migrated (0.3139s) ===============8060 appends admin mode endpoint8061== 20191125114345 AddAdminModeProtectedPath: migrating ========================8062-- change_column_default(:application_settings, :protected_paths, ["/users/password", "/users/sign_in", "/api/v3/session.json", "/api/v3/session", "/api/v4/session.json", "/api/v4/session", "/users", "/users/confirmation", "/unsubscribes/", "/import/github/personal_access_token", "/admin/session"])8063 -> 0.0566s8064== 20191125114345 AddAdminModeProtectedPath: migrated (0.2885s) ===============8065 new default includes admin mode endpoint8066 no settings available8067== 20191125114345 AddAdminModeProtectedPath: migrating ========================8068-- change_column_default(:application_settings, :protected_paths, ["/users/password", "/users/sign_in", "/api/v3/session.json", "/api/v3/session", "/api/v4/session.json", "/api/v4/session", "/users", "/users/confirmation", "/unsubscribes/", "/import/github/personal_access_token", "/admin/session"])8069 -> 0.0581s8070== 20191125114345 AddAdminModeProtectedPath: migrated (0.0765s) ===============8071 makes no changes8072 protected_paths is null8073== 20191125114345 AddAdminModeProtectedPath: migrating ========================8074-- change_column_default(:application_settings, :protected_paths, ["/users/password", "/users/sign_in", "/api/v3/session.json", "/api/v3/session", "/api/v4/session.json", "/api/v4/session", "/users", "/users/confirmation", "/unsubscribes/", "/import/github/personal_access_token", "/admin/session"])8075 -> 0.0873s8076== 20191125114345 AddAdminModeProtectedPath: migrated (0.0981s) ===============8077 makes no changes8078The application_settings (main) table has 1234 columns.8079Recreating the database8080Dropped database 'gitlabhq_test'8081Created database 'gitlabhq_test'8082Databases re-creation done in 4.362139391999798083CleanupEmptyCommitUserMentions8084== 20200128133510 CleanupEmptyCommitUserMentions: migrating ===================8085== 20200128133510 CleanupEmptyCommitUserMentions: migrated (0.0147s) ==========8086 cleanups blank user mentions8087Gitlab::BackgroundMigration::BackfillProjectSettings8088 #perform8089 creates settings for all projects in range8090Gitlab::BackgroundMigration::MigrateUsersBioToUserDetails8091 migrates all relevant records8092 migrates `bio`8093 migrates long `bio`8094 does not change existing user detail8095 changes existing user detail when the columns are different8096 does not migrate record8097 does not migrate empty bio8098SchedulePopulateUserHighestRolesTable8099== 20200311130802 SchedulePopulateUserHighestRolesTable: migrating ============8100== 20200311130802 SchedulePopulateUserHighestRolesTable: migrated (0.1012s) ===8101 correctly schedules background migrations8102DeleteTemplateServicesDuplicatedByType8103== 20200304160801 DeleteTemplateServicesDuplicatedByType: migrating ===========8104-- execute("DELETE\nFROM services\nWHERE TEMPLATE = TRUE\n AND id NOT IN\n (SELECT MIN(id)\n FROM services\n WHERE TEMPLATE = TRUE\n GROUP BY TYPE);\n")8105 -> 0.0048s8106== 20200304160801 DeleteTemplateServicesDuplicatedByType: migrated (0.0049s) ==8107 deletes service templates duplicated by type except the one with the lowest ID8108Gitlab::BackgroundMigration::BackfillEnvironmentIdDeploymentMergeRequests8109 correctly backfills environment_id column8110The application_settings (main) table has 1221 columns.8111Recreating the database8112Dropped database 'gitlabhq_test'8113Created database 'gitlabhq_test'8114Databases re-creation done in 4.8174357679999968115Gitlab::BackgroundMigration::BackfillPushRulesIdInProjects8116 #perform8117 creates new project push_rules for all push rules in the range8118CompleteNamespaceSettingsMigration8119 when still legacy artifacts exist8120== 20200907124300 CompleteNamespaceSettingsMigration: migrating ===============8121== 20200907124300 CompleteNamespaceSettingsMigration: migrated (0.0391s) ======8122 steals sidekiq jobs from BackfillNamespaceSettings background migration8123== 20200907124300 CompleteNamespaceSettingsMigration: migrating ===============8124== 20200907124300 CompleteNamespaceSettingsMigration: migrated (0.0623s) ======8125 migrates namespaces without namespace_settings8126AdjustUniqueIndexAlertManagementAlerts8127== 20200706035141 AdjustUniqueIndexAlertManagementAlerts: migrating ===========8128-- transaction_open?()8129 -> 0.0000s8130-- index_exists?(:alert_management_alerts, ["project_id", "fingerprint"], {:where=>"status <> 2", :name=>"index_partial_am_alerts_on_project_id_and_fingerprint", :unique=>true, :using=>:btree, :algorithm=>:concurrently})8131 -> 0.0054s8132-- add_index(:alert_management_alerts, ["project_id", "fingerprint"], {:where=>"status <> 2", :name=>"index_partial_am_alerts_on_project_id_and_fingerprint", :unique=>true, :using=>:btree, :algorithm=>:concurrently})8133 -> 0.0018s8134-- transaction_open?()8135 -> 0.0000s8136-- indexes(:alert_management_alerts)8137 -> 0.0060s8138-- remove_index(:alert_management_alerts, {:algorithm=>:concurrently, :name=>"index_alert_management_alerts_on_project_id_and_fingerprint"})8139 -> 0.0015s8140== 20200706035141 AdjustUniqueIndexAlertManagementAlerts: migrated (0.0194s) ==8141 can reverse the migration8142Gitlab::BackgroundMigration::BackfillArtifactExpiryDate8143 does not touch artifacts with expiry date8144 does not touch artifacts outside id range8145 does not touch artifacts outside date range8146 when current date is before the 22nd8147 backfills the expiry date for old artifacts8148 backfills the expiry date for recent artifacts8149 when current date is after the 22nd8150 backfills the expiry date for old artifacts8151 backfills the expiry date for recent artifacts8152MigrateIncidentIssuesToIncidentType8153 #up8154== 20200723040950 MigrateIncidentIssuesToIncidentType: migrating ==============8155== 20200723040950 MigrateIncidentIssuesToIncidentType: migrated (0.0444s) =====8156 updates the incident issue type8157 #down8158 updates the incident issue type8159DropBackfillJiraTrackerDeploymentTypeJobs8160 #up8161 there are only affected jobs on the queue8162 removes enqueued BackfillJiraTrackerDeploymentType background jobs8163 there are not any affected jobs on the queue8164 skips other enqueued jobs8165 other queues8166 does not modify them8167Gitlab::BackgroundMigration::MigrateU2fWebauthn8168 migrates all records8169Gitlab::BackgroundMigration::BackfillProjectRepositories8170 Gitlab::BackgroundMigration::BackfillProjectRepositories::ShardFinder8171 #find_shard_id8172 creates a new shard when it does not exist yet8173 returns the shard when it exists8174 only queries the database once to retrieve shards8175 Gitlab::BackgroundMigration::BackfillProjectRepositories::Project8176 .on_hashed_storage8177 finds projects with repository on hashed storage8178 .on_legacy_storage8179 finds projects with repository on legacy storage8180 .without_project_repository8181 finds projects which do not have a projects_repositories entry8182 #disk_path8183 for projects on hashed storage8184 returns the correct disk_path8185 for projects on legacy storage8186 returns the correct disk_path8187 returns the correct disk_path using the route entry8188 raises OrphanedNamespaceError when any parent namespace does not exist8189AddEnvironmentScopeToGroupVariables8190 #down8191 group has variables with duplicate keys8192-- column_exists?(:ci_group_variables, :environment_scope)8193 -> 0.0035s8194-- add_column(:ci_group_variables, :environment_scope, :text, {:null=>false, :default=>"*"})8195 -> 0.0022s8196-- transaction_open?()8197 -> 0.0003s8198-- index_exists?(:ci_group_variables, [:group_id, :key, :environment_scope], {:unique=>true, :name=>"index_ci_group_variables_on_group_id_and_key_and_environment", :algorithm=>:concurrently})8199 -> 0.0029s8200-- add_index(:ci_group_variables, [:group_id, :key, :environment_scope], {:unique=>true, :name=>"index_ci_group_variables_on_group_id_and_key_and_environment", :algorithm=>:concurrently})8201 -> 0.0019s8202-- transaction_open?()8203 -> 0.0001s8204-- indexes(:ci_group_variables)8205 -> 0.0035s8206-- remove_index(:ci_group_variables, {:algorithm=>:concurrently, :name=>"index_ci_group_variables_on_group_id_and_key"})8207 -> 0.0019s8208-- execute(" DELETE FROM ci_group_variables\n WHERE id NOT IN (\n SELECT MIN(id)\n FROM ci_group_variables\n GROUP BY group_id, key\n )\n")8209 -> 0.0015s8210-- transaction_open?()8211 -> 0.0002s8212-- index_exists?(:ci_group_variables, [:group_id, :key], {:unique=>true, :name=>"index_ci_group_variables_on_group_id_and_key", :algorithm=>:concurrently})8213 -> 0.0029s8214-- add_index(:ci_group_variables, [:group_id, :key], {:unique=>true, :name=>"index_ci_group_variables_on_group_id_and_key", :algorithm=>:concurrently})8215 -> 0.0021s8216-- transaction_open?()8217 -> 0.0002s8218-- indexes(:ci_group_variables)8219 -> 0.0036s8220-- remove_index(:ci_group_variables, {:algorithm=>:concurrently, :name=>"index_ci_group_variables_on_group_id_and_key_and_environment"})8221 -> 0.0016s8222-- remove_column(:ci_group_variables, :environment_scope)8223 -> 0.0014s8224 deletes all but the first record8225 group does not have variables with duplicate keys8226-- column_exists?(:ci_group_variables, :environment_scope)8227 -> 0.0037s8228-- add_column(:ci_group_variables, :environment_scope, :text, {:null=>false, :default=>"*"})8229 -> 0.0028s8230-- transaction_open?()8231 -> 0.0002s8232-- index_exists?(:ci_group_variables, [:group_id, :key, :environment_scope], {:unique=>true, :name=>"index_ci_group_variables_on_group_id_and_key_and_environment", :algorithm=>:concurrently})8233 -> 0.0032s8234-- add_index(:ci_group_variables, [:group_id, :key, :environment_scope], {:unique=>true, :name=>"index_ci_group_variables_on_group_id_and_key_and_environment", :algorithm=>:concurrently})8235 -> 0.0021s8236-- transaction_open?()8237 -> 0.0002s8238-- indexes(:ci_group_variables)8239 -> 0.0044s8240-- remove_index(:ci_group_variables, {:algorithm=>:concurrently, :name=>"index_ci_group_variables_on_group_id_and_key"})8241 -> 0.0018s8242-- execute(" DELETE FROM ci_group_variables\n WHERE id NOT IN (\n SELECT MIN(id)\n FROM ci_group_variables\n GROUP BY group_id, key\n )\n")8243 -> 0.0019s8244-- transaction_open?()8245 -> 0.0001s8246-- index_exists?(:ci_group_variables, [:group_id, :key], {:unique=>true, :name=>"index_ci_group_variables_on_group_id_and_key", :algorithm=>:concurrently})8247 -> 0.0033s8248-- add_index(:ci_group_variables, [:group_id, :key], {:unique=>true, :name=>"index_ci_group_variables_on_group_id_and_key", :algorithm=>:concurrently})8249 -> 0.0020s8250-- transaction_open?()8251 -> 0.0001s8252-- indexes(:ci_group_variables)8253 -> 0.0037s8254-- remove_index(:ci_group_variables, {:algorithm=>:concurrently, :name=>"index_ci_group_variables_on_group_id_and_key_and_environment"})8255 -> 0.0020s8256-- remove_column(:ci_group_variables, :environment_scope)8257 -> 0.0015s8258 does not delete any records8259Gitlab::BackgroundMigration::PopulateProjectSnippetStatistics8260 with existing user and group snippets8261 creates/updates all snippet_statistics8262 updates associated snippet project statistics8263 forces the project statistics refresh8264 creates/updates the associated namespace statistics8265 when the project statistics does not exists8266 does not raise any error8267 when an error is raised when updating a project statistics8268 logs the error and continue execution8269 when an error is raised when updating a namespace statistics8270 logs the error and continue execution8271 when project snippet is in a subgroup8272 updates the root namespace statistics8273 when a snippet repository is empty8274 logs error and continues execution8275UpdateInternalIdsLastValueForEpicsRenamed8276== 20201208081429 UpdateInternalIdsLastValueForEpicsRenamed: migrating ========8277== 20201208081429 UpdateInternalIdsLastValueForEpicsRenamed: migrated (0.0025s) 8278 updates out of sync internal_ids last_value8279The application_settings (main) table has 1237 columns.8280Recreating the database8281Dropped database 'gitlabhq_test'8282Created database 'gitlabhq_test'8283Databases re-creation done in 4.91819291100000568284RemoveBadDependencyProxyManifests8285== 20210205174154 RemoveBadDependencyProxyManifests: migrating ================8286== 20210205174154 RemoveBadDependencyProxyManifests: migrated (0.0319s) =======8287 removes the dependency_proxy_manifests with a content_type8288MoveContainerRegistryEnabledToProjectFeatures38289== 20210415155043 MoveContainerRegistryEnabledToProjectFeatures3: migrating ===8290-- Scheduled 2 MoveContainerRegistryEnabledToProjectFeature jobs with a maximum of 3 records per batch and an interval of 120 seconds.8291The migration is expected to take at least 240 seconds. Expect all jobs to have completed after 2021-10-13 18:50:15 UTC."8292== 20210415155043 MoveContainerRegistryEnabledToProjectFeatures3: migrated (0.1215s) 8293 schedules jobs for ranges of projects8294== 20210415155043 MoveContainerRegistryEnabledToProjectFeatures3: migrating ===8295-- Scheduled 2 MoveContainerRegistryEnabledToProjectFeature jobs with a maximum of 3 records per batch and an interval of 120 seconds.8296The migration is expected to take at least 240 seconds. Expect all jobs to have completed after 2021-10-13 18:50:18 UTC."8297== 20210415155043 MoveContainerRegistryEnabledToProjectFeatures3: migrated (0.0724s) 8298 schedules jobs according to the configured batch size8299PopulateDismissalInformationForVulnerabilities8300== 20210323155010 PopulateDismissalInformationForVulnerabilities: migrating ===8301== 20210323155010 PopulateDismissalInformationForVulnerabilities: migrated (0.0268s) 8302 updates the dismissal information for vulnerabilities8303InsertCiDailyPipelineScheduleTriggersPlanLimits8304 when on Gitlab.com8305== 20210526190553 InsertCiDailyPipelineScheduleTriggersPlanLimits: migrating ==8306-- quote_column_name("ci_daily_pipeline_schedule_triggers")8307 -> 0.0000s8308-- quote("free")8309 -> 0.0001s8310-- quote(24)8311 -> 0.0000s8312-- execute("INSERT INTO plan_limits (plan_id, \"ci_daily_pipeline_schedule_triggers\")\nSELECT id, '24' FROM plans WHERE name = 'free' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"ci_daily_pipeline_schedule_triggers\" = EXCLUDED.\"ci_daily_pipeline_schedule_triggers\";\n")8313 -> 0.0023s8314-- quote_column_name("ci_daily_pipeline_schedule_triggers")8315 -> 0.0000s8316-- quote("bronze")8317 -> 0.0000s8318-- quote(288)8319 -> 0.0000s8320-- execute("INSERT INTO plan_limits (plan_id, \"ci_daily_pipeline_schedule_triggers\")\nSELECT id, '288' FROM plans WHERE name = 'bronze' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"ci_daily_pipeline_schedule_triggers\" = EXCLUDED.\"ci_daily_pipeline_schedule_triggers\";\n")8321 -> 0.0013s8322-- quote_column_name("ci_daily_pipeline_schedule_triggers")8323 -> 0.0000s8324-- quote("silver")8325 -> 0.0000s8326-- quote(288)8327 -> 0.0000s8328-- execute("INSERT INTO plan_limits (plan_id, \"ci_daily_pipeline_schedule_triggers\")\nSELECT id, '288' FROM plans WHERE name = 'silver' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"ci_daily_pipeline_schedule_triggers\" = EXCLUDED.\"ci_daily_pipeline_schedule_triggers\";\n")8329 -> 0.0014s8330-- quote_column_name("ci_daily_pipeline_schedule_triggers")8331 -> 0.0000s8332-- quote("gold")8333 -> 0.0000s8334-- quote(288)8335 -> 0.0000s8336-- execute("INSERT INTO plan_limits (plan_id, \"ci_daily_pipeline_schedule_triggers\")\nSELECT id, '288' FROM plans WHERE name = 'gold' LIMIT 1\nON CONFLICT (plan_id) DO UPDATE SET \"ci_daily_pipeline_schedule_triggers\" = EXCLUDED.\"ci_daily_pipeline_schedule_triggers\";\n")8337 -> 0.0015s8338== 20210526190553 InsertCiDailyPipelineScheduleTriggersPlanLimits: migrated (0.0081s) 8339 correctly migrates up and down8340 when on self hosted8341== 20210526190553 InsertCiDailyPipelineScheduleTriggersPlanLimits: migrating ==8342== 20210526190553 InsertCiDailyPipelineScheduleTriggersPlanLimits: migrated (0.0003s) 8343 does nothing8344ScheduleDisableExpirationPoliciesLinkedToNoContainerImages8345== 20210518074332 ScheduleDisableExpirationPoliciesLinkedToNoContainerImages: migrating 8346-- Scheduled 3 DisableExpirationPoliciesLinkedToNoContainerImages jobs with a maximum of 2 records per batch and an interval of 120 seconds.8347The migration is expected to take at least 360 seconds. Expect all jobs to have completed after 2021-10-13 18:53:16 UTC."8348== 20210518074332 ScheduleDisableExpirationPoliciesLinkedToNoContainerImages: migrated (0.0447s) 8349 schedules background migrations8350CopyAdoptionSegmentsNamespace8351== 20210430135954 CopyAdoptionSegmentsNamespace: migrating ====================8352-- execute(" UPDATE analytics_devops_adoption_segments SET display_namespace_id = namespace_id\n WHERE display_namespace_id IS NULL\n")8353 -> 0.0026s8354== 20210430135954 CopyAdoptionSegmentsNamespace: migrated (0.0027s) ===========8355 updates all segments without display namespace8356AddUpvotesCountIndexToIssues8357 #up8358-- index_exists?(:issues, [:project_id, :upvotes_count], {:name=>"index_issues_on_project_id_and_upvotes_count"})8359 -> 0.0205s8360== 20210706115312 AddUpvotesCountIndexToIssues: migrating =====================8361-- transaction_open?()8362 -> 0.0000s8363-- index_exists?(:issues, [:project_id, :upvotes_count], {:name=>"index_issues_on_project_id_and_upvotes_count", :algorithm=>:concurrently})8364 -> 0.0201s8365-- add_index(:issues, [:project_id, :upvotes_count], {:name=>"index_issues_on_project_id_and_upvotes_count", :algorithm=>:concurrently})8366 -> 0.0031s8367== 20210706115312 AddUpvotesCountIndexToIssues: migrated (0.0264s) ============8368-- index_exists?(:issues, [:project_id, :upvotes_count], {:name=>"index_issues_on_project_id_and_upvotes_count"})8369 -> 0.0223s8370 adds index8371 #down8372== 20210706115312 AddUpvotesCountIndexToIssues: migrating =====================8373-- transaction_open?()8374 -> 0.0000s8375-- index_exists?(:issues, [:project_id, :upvotes_count], {:name=>"index_issues_on_project_id_and_upvotes_count", :algorithm=>:concurrently})8376 -> 0.0227s8377-- add_index(:issues, [:project_id, :upvotes_count], {:name=>"index_issues_on_project_id_and_upvotes_count", :algorithm=>:concurrently})8378 -> 0.0022s8379== 20210706115312 AddUpvotesCountIndexToIssues: migrated (0.0275s) ============8380-- index_exists?(:issues, [:project_id, :upvotes_count], {:name=>"index_issues_on_project_id_and_upvotes_count"})8381 -> 0.0267s8382-- index_exists?(:issues, [:project_id, :upvotes_count], {:name=>"index_issues_on_project_id_and_upvotes_count"})8383 -> 0.0224s8384 removes index8385BackfillIssuesUpvotesCount8386== 20210701111909 BackfillIssuesUpvotesCount: migrating =======================8387-- Scheduled 2 BackfillUpvotesCountOnIssues jobs with a maximum of 2 records per batch and an interval of 120 seconds.8388The migration is expected to take at least 240 seconds. Expect all jobs to have completed after 2021-10-13 18:52:04 UTC."8389== 20210701111909 BackfillIssuesUpvotesCount: migrated (0.0373s) ==============8390 correctly schedules background migrations8391BackfillStageEventHash8392 #up8393== 20210731132939 BackfillStageEventHash: migrating ===========================8394-- current_schema()8395 -> 0.0006s8396-- transaction_open?()8397 -> 0.0000s8398-- current_schema()8399 -> 0.0005s8400-- execute("ALTER TABLE analytics_cycle_analytics_group_stages\nADD CONSTRAINT check_e6bd4271b5\nCHECK ( stage_event_hash_id IS NOT NULL )\nNOT VALID;\n")8401 -> 0.0011s8402-- current_schema()8403 -> 0.0006s8404-- execute("ALTER TABLE analytics_cycle_analytics_group_stages VALIDATE CONSTRAINT check_e6bd4271b5;")8405 -> 0.0011s8406-- current_schema()8407 -> 0.0004s8408-- transaction_open?()8409 -> 0.0000s8410-- current_schema()8411 -> 0.0007s8412-- execute("ALTER TABLE analytics_cycle_analytics_project_stages\nADD CONSTRAINT check_8f6019de1e\nCHECK ( stage_event_hash_id IS NOT NULL )\nNOT VALID;\n")8413 -> 0.0014s8414-- current_schema()8415 -> 0.0005s8416-- execute("ALTER TABLE analytics_cycle_analytics_project_stages VALIDATE CONSTRAINT check_8f6019de1e;")8417 -> 0.0013s8418== 20210731132939 BackfillStageEventHash: migrated (0.1164s) ==================8419 populates stage_event_hash_id column8420== 20210731132939 BackfillStageEventHash: migrating ===========================8421-- current_schema()8422 -> 0.0006s8423-- transaction_open?()8424 -> 0.0000s8425-- current_schema()8426 -> 0.0006s8427-- execute("ALTER TABLE analytics_cycle_analytics_group_stages\nADD CONSTRAINT check_e6bd4271b5\nCHECK ( stage_event_hash_id IS NOT NULL )\nNOT VALID;\n")8428 -> 0.0014s8429-- current_schema()8430 -> 0.0006s8431-- execute("ALTER TABLE analytics_cycle_analytics_group_stages VALIDATE CONSTRAINT check_e6bd4271b5;")8432 -> 0.0013s8433-- current_schema()8434 -> 0.0006s8435-- transaction_open?()8436 -> 0.0000s8437-- current_schema()8438 -> 0.0008s8439-- execute("ALTER TABLE analytics_cycle_analytics_project_stages\nADD CONSTRAINT check_8f6019de1e\nCHECK ( stage_event_hash_id IS NOT NULL )\nNOT VALID;\n")8440 -> 0.0014s8441-- current_schema()8442 -> 0.0006s8443-- execute("ALTER TABLE analytics_cycle_analytics_project_stages VALIDATE CONSTRAINT check_8f6019de1e;")8444 -> 0.0013s8445== 20210731132939 BackfillStageEventHash: migrated (0.0484s) ==================8446 runs without problem without stages8447 when invalid event identifier is discovered8448== 20210731132939 BackfillStageEventHash: migrating ===========================8449-- current_schema()8450 -> 0.0005s8451-- transaction_open?()8452 -> 0.0000s8453-- current_schema()8454 -> 0.0005s8455-- execute("ALTER TABLE analytics_cycle_analytics_group_stages\nADD CONSTRAINT check_e6bd4271b5\nCHECK ( stage_event_hash_id IS NOT NULL )\nNOT VALID;\n")8456 -> 0.0012s8457-- current_schema()8458 -> 0.0006s8459-- execute("ALTER TABLE analytics_cycle_analytics_group_stages VALIDATE CONSTRAINT check_e6bd4271b5;")8460 -> 0.0012s8461-- current_schema()8462 -> 0.0006s8463-- transaction_open?()8464 -> 0.0000s8465-- current_schema()8466 -> 0.0007s8467-- execute("ALTER TABLE analytics_cycle_analytics_project_stages\nADD CONSTRAINT check_8f6019de1e\nCHECK ( stage_event_hash_id IS NOT NULL )\nNOT VALID;\n")8468 -> 0.0013s8469-- current_schema()8470 -> 0.0006s8471-- execute("ALTER TABLE analytics_cycle_analytics_project_stages VALIDATE CONSTRAINT check_8f6019de1e;")8472 -> 0.0016s8473== 20210731132939 BackfillStageEventHash: migrated (0.0883s) ==================8474 removes the stage8475RemoveDuplicateDastSiteTokens8476 when duplicate dast site tokens exists8477 migration up8478== 20210823132600 RemoveDuplicateDastSiteTokens: migrating ====================8479== 20210823132600 RemoveDuplicateDastSiteTokens: migrated (0.0042s) ===========8480 does remove duplicated dast site tokens8481 when duplicate dast site tokens does not exists8482 migration up8483== 20210823132600 RemoveDuplicateDastSiteTokens: migrating ====================8484== 20210823132600 RemoveDuplicateDastSiteTokens: migrated (0.0053s) ===========8485 does remove duplicated dast site tokens8486CleanupRemainingOrphanInvites8487 #up8488== 20210825150212 CleanupRemainingOrphanInvites: migrating ====================8489-- transaction_open?()8490 -> 0.0000s8491-- index_exists?(:members, :id, {:where=>"invite_token IS NOT NULL AND user_id IS NOT NULL", :name=>"tmp_idx_members_with_orphaned_invites", :algorithm=>:concurrently})8492 -> 0.0122s8493-- add_index(:members, :id, {:where=>"invite_token IS NOT NULL AND user_id IS NOT NULL", :name=>"tmp_idx_members_with_orphaned_invites", :algorithm=>:concurrently})8494 -> 0.0024s8495-- transaction_open?()8496 -> 0.0000s8497-- indexes(:members)8498 -> 0.0102s8499-- remove_index(:members, {:algorithm=>:concurrently, :name=>"tmp_idx_members_with_orphaned_invites"})8500 -> 0.0017s8501== 20210825150212 CleanupRemainingOrphanInvites: migrated (0.0444s) ===========8502 removes invite tokens for accepted records8503Gitlab::BackgroundMigration::FixFirstMentionedInCommitAt8504 marks successful slices as completed8505 when the persisted first_mentioned_in_commit_at is later than the first commit authored_date8506 updates the issue_metrics record8507 when the persisted first_mentioned_in_commit_at is earlier than the first commit authored_date8508 does not update the issue_metrics record8509 when the first_mentioned_in_commit_at is null8510 does nothing8511ReschedulePendingJobsForRecalculateVulnerabilitiesOccurrencesUuid8512 when RecalculateVulnerabilitiesOccurrencesUuid jobs are pending8513== 20210918202855 ReschedulePendingJobsForRecalculateVulnerabilitiesOccurrencesUuid: migrating 8514-- Scheduled 1 RecalculateVulnerabilitiesOccurrencesUuid jobs with an interval of 120 seconds.8515The migration is expected to take at least 120 seconds. Expect all jobs to have completed after 2021-10-13 18:50:58 UTC."8516== 20210918202855 ReschedulePendingJobsForRecalculateVulnerabilitiesOccurrencesUuid: migrated (0.0130s) 8517 queues pending jobs8518Gitlab::BackgroundMigration::MigratePagesToZipStorage8519 #perform8520 when there is project to migrate8521 migrates project to zip storage8522Knapsack report was generated. Preview:8523{8524 "spec/migrations/cleanup_legacy_artifact_migration_spec.rb": 79.53595649199997,8525 "spec/lib/gitlab/background_migration/populate_merge_request_assignees_table_spec.rb": 78.71001022199994,8526 "spec/migrations/add_unique_constraint_to_approvals_user_id_and_merge_request_id_spec.rb": 75.45477842500009,8527 "spec/migrations/backfill_operations_feature_flags_iid_spec.rb": 61.935133525999845,8528 "spec/lib/gitlab/background_migration/fix_promoted_epics_discussion_ids_spec.rb": 66.26247993800007,8529 "spec/migrations/backfill_and_add_not_null_constraint_to_released_at_column_on_releases_table_spec.rb": 67.58228547899989,8530 "spec/lib/gitlab/background_migration/migrate_fingerprint_sha256_within_keys_spec.rb": 64.30071764600007,8531 "spec/migrations/drop_background_migration_jobs_spec.rb": 62.71698113000002,8532 "spec/migrations/20191125114345_add_admin_mode_protected_path_spec.rb": 69.41356182000027,8533 "spec/migrations/cleanup_empty_commit_user_mentions_spec.rb": 56.14541337200035,8534 "spec/lib/gitlab/background_migration/backfill_project_settings_spec.rb": 57.3251068200002,8535 "spec/lib/gitlab/background_migration/migrate_users_bio_to_user_details_spec.rb": 60.241141166000034,8536 "spec/migrations/schedule_populate_user_highest_roles_table_spec.rb": 54.673870607000026,8537 "spec/migrations/delete_template_services_duplicated_by_type_spec.rb": 55.313047045000076,8538 "spec/lib/gitlab/background_migration/backfill_environment_id_deployment_merge_requests_spec.rb": 63.15971958599994,8539 "spec/lib/gitlab/background_migration/backfill_push_rules_id_in_projects_spec.rb": 49.87041895099992,8540 "spec/migrations/complete_namespace_settings_migration_spec.rb": 38.77099882599987,8541 "spec/migrations/20200706035141_adjust_unique_index_alert_management_alerts_spec.rb": 42.30944951399988,8542 "spec/lib/gitlab/background_migration/backfill_artifact_expiry_date_spec.rb": 38.192368674000136,8543 "spec/migrations/migrate_incident_issues_to_incident_type_spec.rb": 42.34226242599971,8544 "spec/migrations/20201014205300_drop_backfill_jira_tracker_deployment_type_jobs_spec.rb": 37.26353881800014,8545 "spec/lib/gitlab/background_migration/migrate_u2f_webauthn_spec.rb": 35.461958701000185,8546 "spec/lib/gitlab/background_migration/backfill_project_repositories_spec.rb": 28.000194960000044,8547 "spec/migrations/20210218040814_add_environment_scope_to_group_variables_spec.rb": 25.785624198999813,8548 "spec/lib/gitlab/background_migration/populate_project_snippet_statistics_spec.rb": 25.530308504999994,8549 "spec/migrations/update_internal_ids_last_value_for_epics_renamed_spec.rb": 28.227215924999655,8550 "spec/migrations/20210205174154_remove_bad_dependency_proxy_manifests_spec.rb": 23.56759930899989,8551 "spec/migrations/move_container_registry_enabled_to_project_features3_spec.rb": 21.164229930000147,8552 "spec/migrations/populate_dismissal_information_for_vulnerabilities_spec.rb": 19.241426030000184,8553 "spec/migrations/insert_ci_daily_pipeline_schedule_triggers_plan_limits_spec.rb": 16.995787931999985,8554 "spec/migrations/schedule_disable_expiration_policies_linked_to_no_container_images_spec.rb": 16.015944482999657,8555 "spec/migrations/20210430135954_copy_adoption_segments_namespace_spec.rb": 16.505480902000272,8556 "spec/migrations/add_upvotes_count_index_to_issues_spec.rb": 14.31317356999989,8557 "spec/migrations/backfill_issues_upvotes_count_spec.rb": 12.683980482999687,8558 "spec/migrations/backfill_stage_event_hash_spec.rb": 13.38590898800021,8559 "spec/migrations/remove_duplicate_dast_site_tokens_spec.rb": 10.777337492000242,8560 "spec/migrations/cleanup_remaining_orphan_invites_spec.rb": 8.032897824999964,8561 "spec/lib/gitlab/background_migration/fix_first_mentioned_in_commit_at_spec.rb": 8.206431935000182,8562 "spec/migrations/20210918202855_reschedule_pending_jobs_for_recalculate_vulnerabilities_occurrences_uuid_spec.rb": 4.930678430000171,8563 "spec/lib/gitlab/background_migration/migrate_pages_to_zip_storage_spec.rb": 3.35379270900011768564}8565Knapsack global time execution for tests: 25m 53s8566Finished in 27 minutes 39 seconds (files took 52.01 seconds to load)856798 examples, 0 failures8568Wed 13 Oct 2021 06:49:19 PM UTC8570Not uploading cache ruby-gems-v1-4 due to policy8571Not uploading cache gitaly-ruby-gems-v1-4 due to policy8573Uploading artifacts...8574coverage/: found 5 matching files and directories 8575WARNING: crystalball/: no matching files 8576WARNING: deprecations/: no matching files 8577knapsack/: found 3 matching files and directories 8578rspec_flaky/: found 4 matching files and directories 8579rspec_profiling/: found 1 matching files and directories 8580WARNING: tmp/capybara/: no matching files 8581tmp/memory_test/: found 2 matching files and directories 8582log/*.log: found 14 matching files and directories 8583Uploading artifacts as "archive" to coordinator... ok id=1677157225 responseStatus=201 Created token=1thHsA348584Uploading artifacts...8585junit_rspec.xml: found 1 matching files and directories 8586Uploading artifacts as "junit" to coordinator... ok id=1677157225 responseStatus=201 Created token=1thHsA348588Job succeeded