Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Merge requests
!500
WS-648: alembic script to add column to capability_versions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
WS-648: alembic script to add column to capability_versions
WS-648-ws-json-metadata-capab-version
into
main
Overview
1
Commits
4
Pipelines
3
Changes
1
All threads resolved!
Hide all comments
Merged
Janet Goldstein
requested to merge
WS-648-ws-json-metadata-capab-version
into
main
3 years ago
Overview
1
Commits
4
Pipelines
3
Changes
1
All threads resolved!
Hide all comments
Expand
Adds
workflow_metadata
column of type
json
to archive.capability_versions
Edited
3 years ago
by
Janet Goldstein
0
0
Merge request reports
Viewing commit
46830c07
Prev
Next
Show latest version
1 file
+
24
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
46830c07
WS-648: alembic script to add column to capability_versions
· 46830c07
Janet Goldstein
authored
3 years ago
schema/versions/af3e4a4e7ede_add_ws_json_metadata_column_to_capab_.py
0 → 100644
+
24
−
0
Options
"""
add ws_metadata JSON column to capability_versions
Revision ID: af3e4a4e7ede
Revises: 42723a9dd85c
Create Date: 2021-09-13 17:17:36.743665
"""
from
alembic
import
op
import
sqlalchemy
as
sa
# revision identifiers, used by Alembic.
revision
=
'
af3e4a4e7ede
'
down_revision
=
'
42723a9dd85c
'
branch_labels
=
None
depends_on
=
None
def
upgrade
():
op
.
execute
(
"
ALTER TABLE capability_versions ADD COLUMN IF NOT EXISTS ws_metadata JSON DEFAULT NULL
"
)
def
downgrade
():
op
.
execute
(
"
ALTER TABLE capability_versions DROP COLUMN IF EXISTS ws_metadata
"
)
Loading