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
!309
WS-269: define standard imaging capability
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
WS-269: define standard imaging capability
standard_imaging
into
main
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Charlotte Hausman
requested to merge
standard_imaging
into
main
3 years ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
add std_imaging capability and workflow to database
0
0
Merge request reports
Compare
main
version 1
0dff03ae
3 years ago
main (base)
and
latest version
latest version
38ee15e6
1 commit,
3 years ago
version 1
0dff03ae
1 commit,
3 years ago
1 file
+
46
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
schema/versions/78cb60242d23_add_standard_imaging_capability.py
0 → 100644
+
46
−
0
Options
"""
add standard imaging capability
Revision ID: 78cb60242d23
Revises: 46dbb53ae77f
Create Date: 2021-06-28 13:04:33.828113
"""
from
alembic
import
op
import
sqlalchemy
as
sa
# revision identifiers, used by Alembic.
revision
=
'
78cb60242d23
'
down_revision
=
'
46dbb53ae77f
'
branch_labels
=
None
depends_on
=
None
def
upgrade
():
op
.
execute
(
"""
INSERT INTO capabilities (capability_name, capability_steps, max_jobs)
VALUES (
'
std_imaging
'
,
'
prepare-and-run-workflow std_imaging
\n
await-workflow
\n
await-qa
'
, 20)
"""
)
op
.
execute
(
"""
INSERT INTO workflows (workflow_name)
VALUES (
'
std_imaging
'
)
"""
)
def
downgrade
():
op
.
execute
(
"""
DELETE FROM capabilities WHERE capability_name=
'
std_imaging
'
"""
)
op
.
execute
(
"""
DELETE FROM workflows WHERE workflow_name=
'
std_imaging
'
"""
)
Loading