Skip to content
Snippets Groups Projects
Verified Commit c7cf6d30 authored by Avielle Wolfe's avatar Avielle Wolfe :three: Committed by GitLab
Browse files

Add `spec` column to `catalog_resource_components`

When we add CI steps to the CI Catalog, we'll need to store the entire
`spec` header section in the table. This commit is the first step
towards migrating from the `inputs` field to a new `spec` field that
will support the needs of both steps and components.

Changelog: added
Issue: #443662
parent 594a762a
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
class AddSpecColumnToCatalogResourceComponents < Gitlab::Database::Migration[2.2]
milestone '16.10'
def change
add_column :catalog_resource_components, :spec, :jsonb, default: {}, null: false
end
end
859678748977604a3e7f38be44498049dba5c8f7eee6cb6c46a7e3e0f3895bf0
\ No newline at end of file
......@@ -5610,6 +5610,7 @@ CREATE TABLE catalog_resource_components (
inputs jsonb DEFAULT '{}'::jsonb NOT NULL,
name text NOT NULL,
path text,
spec jsonb DEFAULT '{}'::jsonb NOT NULL,
CONSTRAINT check_a76bfd47fe CHECK ((char_length(path) <= 255)),
CONSTRAINT check_ddca729980 CHECK ((char_length(name) <= 255))
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment