Skip to content
代码片段 群组 项目
提交 3506070c 编辑于 作者: Gregory Havenga's avatar Gregory Havenga
浏览文件

Merge branch '425975-drop-idx_namespaces_on_ldap_sync_last_successful_update_at' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -15,3 +15,6 @@ schema_inconsistencies: ...@@ -15,3 +15,6 @@ schema_inconsistencies:
- type: missing_indexes - type: missing_indexes
object_name: index_namespaces_on_created_at object_name: index_namespaces_on_created_at
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/134948 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/134948
- type: missing_indexes
object_name: index_namespaces_on_ldap_sync_last_successful_update_at
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/135040
# frozen_string_literal: true
class DropIdxNamespacesOnLdapSyncLastSuccessfulUpdateAtForGitlab < Gitlab::Database::Migration[2.2]
milestone '16.6'
disable_ddl_transaction!
TABLE_NAME = :namespaces
INDEX_NAME = :index_namespaces_on_ldap_sync_last_successful_update_at
def up
return unless should_run?
remove_concurrent_index_by_name TABLE_NAME, INDEX_NAME
end
def down
return unless should_run?
add_concurrent_index TABLE_NAME, :ldap_sync_last_successful_update_at, name: INDEX_NAME
end
private
def should_run?
Gitlab.com_except_jh?
end
end
fb17684ac5976811bd08e4a2edb3b3c45baaf293ee3c04e986ae3c197c59c54a
\ No newline at end of file
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册