Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-04 21:11:05 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-04 21:11:05 +0300
commitbbc241ab7fff1f6854a70eb56ee70b0dad2b6144 (patch)
tree2f3bb5bafed00cdc9a11ea9b5233b7dd6fded70b /db
parent714e16b260e01dd316574ab7baf0a73f61547d80 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20230404132544_prepare_async_index_for_override_uuids_logic.rb15
-rw-r--r--db/schema_migrations/202304041325441
2 files changed, 16 insertions, 0 deletions
diff --git a/db/post_migrate/20230404132544_prepare_async_index_for_override_uuids_logic.rb b/db/post_migrate/20230404132544_prepare_async_index_for_override_uuids_logic.rb
new file mode 100644
index 00000000000..59c2bdf9470
--- /dev/null
+++ b/db/post_migrate/20230404132544_prepare_async_index_for_override_uuids_logic.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class PrepareAsyncIndexForOverrideUuidsLogic < Gitlab::Database::Migration[2.1]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'index_vulnerability_occurrences_for_override_uuids_logic'
+
+ def up
+ prepare_async_index :vulnerability_occurrences, [:project_id, :report_type, :location_fingerprint], name: INDEX_NAME
+ end
+
+ def down
+ unprepare_async_index_by_name :vulnerability_occurrences, INDEX_NAME
+ end
+end
diff --git a/db/schema_migrations/20230404132544 b/db/schema_migrations/20230404132544
new file mode 100644
index 00000000000..ed8abfc31ec
--- /dev/null
+++ b/db/schema_migrations/20230404132544
@@ -0,0 +1 @@
+c2547b24345eb71c4b23d03a2b90150e0cb0fc89adaa92696fe72e038b71a6dd \ No newline at end of file