Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Merge requests
!59
Feature/refactor device to router
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/refactor device to router
feature/refactor-device-to-router
into
develop
Overview
0
Commits
2
Pipelines
2
Changes
31
Merged
Karel van Klink
requested to merge
feature/refactor-device-to-router
into
develop
1 year ago
Overview
0
Commits
2
Pipelines
2
Changes
31
Expand
0
0
Merge request reports
Compare
develop
version 1
dd1f15dd
1 year ago
develop (base)
and
latest version
latest version
6c1b1db8
2 commits,
1 year ago
version 1
dd1f15dd
2 commits,
1 year ago
31 files
+
859
−
1047
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Some changes are not shown
For a faster browsing experience, some files are collapsed by default.
Expand all files
Files
31
Search (e.g. *.vue) (Ctrl+P)
gso/migrations/versions/2023-04-05_857225661207_add_device_workflows.py deleted
100644 → 0
+
0
−
39
Options
"""
add Device workflows.
Revision ID: 857225661207
Revises: f4959f32c866
Create Date: 2023-04-05 09:16:03.725750
"""
import
sqlalchemy
as
sa
from
alembic
import
op
# revision identifiers, used by Alembic.
revision
=
'
857225661207
'
down_revision
=
'
d52256e7d715
'
branch_labels
=
None
depends_on
=
None
from
orchestrator.migrations.helpers
import
create_workflow
,
delete_workflow
new_workflows
=
[
{
"
name
"
:
"
create_device
"
,
"
target
"
:
"
CREATE
"
,
"
description
"
:
"
Create Device
"
,
"
product_type
"
:
"
Device
"
}
]
def
upgrade
()
->
None
:
conn
=
op
.
get_bind
()
for
workflow
in
new_workflows
:
create_workflow
(
conn
,
workflow
)
def
downgrade
()
->
None
:
conn
=
op
.
get_bind
()
for
workflow
in
new_workflows
:
delete_workflow
(
conn
,
workflow
[
"
name
"
])
Loading