diff options
| author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-12 03:13:21 +0000 |
|---|---|---|
| committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-12 03:13:21 +0000 |
| commit | 0466f3a162f33e45866a5f4d76545b3f1cd4ab18 (patch) | |
| tree | 8911bf2d2c1e525f7641ac73d43f15713656b83b /db | |
| parent | 4e65fc3589914bc328539943f1164f4aff2b8d58 (diff) | |
| download | gitlab-ce-0466f3a162f33e45866a5f4d76545b3f1cd4ab18.tar.gz | |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20230509144234_delete_drop_older_deployments_worker_queues.rb | 16 | ||||
| -rw-r--r-- | db/schema_migrations/20230509144234 | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20230509144234_delete_drop_older_deployments_worker_queues.rb b/db/migrate/20230509144234_delete_drop_older_deployments_worker_queues.rb new file mode 100644 index 00000000000..b6e3046e446 --- /dev/null +++ b/db/migrate/20230509144234_delete_drop_older_deployments_worker_queues.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +class DeleteDropOlderDeploymentsWorkerQueues < Gitlab::Database::Migration[2.1] + DEPRECATED_JOB_CLASSES = %w[ + Deployments::DropOlderDeploymentsWorker + ] + + 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/20230509144234 b/db/schema_migrations/20230509144234 new file mode 100644 index 00000000000..0116d971e38 --- /dev/null +++ b/db/schema_migrations/20230509144234 @@ -0,0 +1 @@ +8c6d6a8d77dac3291f8af00e61c5ce0124c0742d0009f84b0d5bab7b43024bbe
\ No newline at end of file |
