Add last_cleanup_deleted_tag count column
What does this MR do and why?
This adds a last_cleanup_deleted_tag_count
column to the ContainerRepository
table, this gets updated every time the cleanup policy worker starts and finishes
Migration info
Migrate up
$ bundle exec rails db:migrate
== 20220421180321 AddLastCleanupDeletedTagsCountToContainerRepository: migrating
-- add_column(:container_repositories, :last_cleanup_deleted_tags_count, :integer, {:default=>nil, :null=>true})
-> 0.0042s
Migrate down
bundle exec rails db:rollback
== 20220421180321 AddLastCleanupDeletedTagsCountToContainerRepository: reverting
-- remove_column(:container_repositories, :last_cleanup_deleted_tags_count, :integer, {:default=>nil, :null=>true})
-> 0.0053s
== 20220421180321 AddLastCleanupDeletedTagsCountToContainerRepository: reverted (0.0078s)
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jose Ivan Vargas