Skip to content

Resolve "Address the Primary Key Overflow risk for the ci_build_needs table - Step 3: Drop temporary columns and triggers"

What does this MR do?

This MR removes the column build_id_convert_to_bigint and the trigger trigger_21e7a2602957 from the ci_build_needs table.

migration up:

== 20210902144144 DropTemporaryColumnsAndTriggersForCiBuildNeeds: migrating ===
-- remove_column("ci_build_needs", "build_id_convert_to_bigint")
   -> 0.0010s
== 20210902144144 DropTemporaryColumnsAndTriggersForCiBuildNeeds: migrated (0.0222s)

migration down:

== 20210902144144 DropTemporaryColumnsAndTriggersForCiBuildNeeds: reverting ===
-- add_column("ci_build_needs", "build_id_convert_to_bigint", :int, {:default=>0, :null=>false})
   -> 0.0038s
== 20210902144144 DropTemporaryColumnsAndTriggersForCiBuildNeeds: reverted (0.0488s)

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #338060 (closed)

Edited by Diogo Frazão

Merge request reports