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
!312
correcting capability and workflow names post Mark discussion
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
correcting capability and workflow names post Mark discussion
Standard_CMS_Imaging
into
main
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Charlotte Hausman
requested to merge
Standard_CMS_Imaging
into
main
3 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
b19d96cf
Show latest version
1 file
+
45
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
b19d96cf
correcting capability and workflow names post Mark discussion
· b19d96cf
Charlotte Hausman
authored
3 years ago
schema/versions/6ce7b4b8a9ea_correct_standard_imaging_name.py
0 → 100644
+
45
−
0
Options
"""
correct standard imaging name
Revision ID: 6ce7b4b8a9ea
Revises: 78cb60242d23
Create Date: 2021-06-28 15:34:49.558048
"""
from
alembic
import
op
import
sqlalchemy
as
sa
# revision identifiers, used by Alembic.
revision
=
'
6ce7b4b8a9ea
'
down_revision
=
'
78cb60242d23
'
branch_labels
=
None
depends_on
=
None
def
upgrade
():
op
.
execute
(
"""
UPDATE capabilities SET capability_name=
'
std_cms_imaging
'
WHERE capability_name=
'
std_imaging
'
"""
)
op
.
execute
(
"""
UPDATE workflows SET workflow_name=
'
std_cms_imaging
'
WHERE workflow_name=
'
std_imaging
'
"""
)
def
downgrade
():
op
.
execute
(
"""
UPDATE capabilities SET capability_name=
'
std_imaging
'
WHERE capability_name=
'
std_cms_imaging
'
"""
)
op
.
execute
(
"""
UPDATE workflows SET workflow_name=
'
std_imaging
'
WHERE workflow_name=
'
std_cms_imaging
'
"""
)
Loading