Skip to content

Add `semver_prefixed` to `catalog_resources_version` table

What does this MR do and why?

🔼 migration:

❯ rails db:migrate:up:main VERSION='20240404115853'
main: == [advisory_lock_connection] object_id: 122180, pg_backend_pid: 73205
main: == 20240404115853 AddPrefixedToCatalogResourceVersions: migrating =============
main: -- add_column(:catalog_resource_versions, :semver_prefixed, :boolean, {:default=>false})
main:    -> 0.0037s
main: == 20240404115853 AddPrefixedToCatalogResourceVersions: migrated (0.0070s) ====

main: == [advisory_lock_connection] object_id: 122180, pg_backend_pid: 73205

🔽 migration:

❯ rails db:migrate:down:main VERSION='20240404115853'
main: == [advisory_lock_connection] object_id: 122200, pg_backend_pid: 72259
main: == 20240404115853 AddPrefixedToCatalogResourceVersions: reverting =============
main: -- remove_column(:catalog_resource_versions, :semver_prefixed, :boolean, {:default=>false})
main:    -> 0.0035s
main: == 20240404115853 AddPrefixedToCatalogResourceVersions: reverted (0.0079s) ====

main: == [advisory_lock_connection] object_id: 122200, pg_backend_pid: 72259

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

MR 2 for issue: #441467 (closed)

Edited by Laura Montemayor

Merge request reports