summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-05 12:09:00 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-05 12:09:00 +0000
commiteb3f624622331c74198ba299af90bd1e431a330f (patch)
tree4ce2444b78c690afa00e96259ab86b28ad211c0b /db
parent2a134be97dafb4743eee8fc908463136ddf23b1f (diff)
downloadgitlab-ce-eb3f624622331c74198ba299af90bd1e431a330f.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20230428134334_delete_create_cross_project_pipeline_worker_job_instances.rb16
-rw-r--r--db/schema_migrations/202304281343341
2 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20230428134334_delete_create_cross_project_pipeline_worker_job_instances.rb b/db/migrate/20230428134334_delete_create_cross_project_pipeline_worker_job_instances.rb
new file mode 100644
index 00000000000..517f85c0c1f
--- /dev/null
+++ b/db/migrate/20230428134334_delete_create_cross_project_pipeline_worker_job_instances.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+class DeleteCreateCrossProjectPipelineWorkerJobInstances < Gitlab::Database::Migration[2.1]
+ DEPRECATED_JOB_CLASSES = %w[
+ CreateCrossProjectPipelineWorker
+ ]
+
+ disable_ddl_transaction!
+ def up
+ sidekiq_remove_jobs(job_klasses: DEPRECATED_JOB_CLASSES)
+ end
+
+ def down
+ # This migration removes any instances of deprecated workers and cannot be undone.
+ end
+end
diff --git a/db/schema_migrations/20230428134334 b/db/schema_migrations/20230428134334
new file mode 100644
index 00000000000..96e5841736f
--- /dev/null
+++ b/db/schema_migrations/20230428134334
@@ -0,0 +1 @@
+43d27869d87ec93da96fbc9ea23f50b7588d5f491b1d5c53beeed7a529003e09 \ No newline at end of file