Skip to content
Snippets Groups Projects

BG migration to fix incorrect job artifacts expire_at on self-managed

Merged Albert requested to merge 355833-migration-to-fix-incorrect-expire-at into master
6 unresolved threads
Compare and Show latest version
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -15,7 +15,7 @@ class AddTmpIndexJobArtifactsIdAndExpireAt < Gitlab::Database::Migration[2.0]
def up
# return if Gitlab.com?
add_concurrent_index :ci_job_artifacts, [:id, :expire_at, :file_type],
add_concurrent_index :ci_job_artifacts, :id,
where: EXPIRE_AT_ON_22_MIDNIGHT_IN_TIMEZONE_OR_TRACE, name: INDEX_NAME
end
Loading