Skip to content
Snippets Groups Projects

Add Get Web hook events API

2 unresolved threads
Compare and Show latest version
6 files
+ 31
13
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -6,7 +6,6 @@
@@ -6,7 +6,6 @@
class AddWebhookLogIndexOnResponseStatusAndWebHookId < Gitlab::Database::Migration[2.2]
class AddWebhookLogIndexOnResponseStatusAndWebHookId < Gitlab::Database::Migration[2.2]
include Gitlab::Database::PartitioningMigrationHelpers
include Gitlab::Database::PartitioningMigrationHelpers
disable_ddl_transaction!
milestone '17.1'
milestone '17.1'
TABLE_NAME = :web_hook_logs
TABLE_NAME = :web_hook_logs
@@ -14,10 +13,10 @@ class AddWebhookLogIndexOnResponseStatusAndWebHookId < Gitlab::Database::Migrati
@@ -14,10 +13,10 @@ class AddWebhookLogIndexOnResponseStatusAndWebHookId < Gitlab::Database::Migrati
INDEX_NAME = 'web_hook_logs_on_web_hook_id_and_response_status'
INDEX_NAME = 'web_hook_logs_on_web_hook_id_and_response_status'
def up
def up
add_concurrent_partitioned_index(TABLE_NAME, COLUMN_NAMES, name: INDEX_NAME)
prepare_partitioned_async_index(TABLE_NAME, COLUMN_NAMES, name: INDEX_NAME)
end
end
def down
def down
remove_concurrent_partitioned_index_by_name(TABLE_NAME, INDEX_NAME)
unprepare_partitioned_async_index(TABLE_NAME, INDEX_NAME, name: INDEX_NAME)
end
end
end
end
Loading