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
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
Commits
490b0518
Commit
490b0518
authored
1 year ago
by
Mohammad Torkashvand
Browse files
Options
Downloads
Patches
Plain Diff
regnerated the PartnerTable migration again
parent
55bf6bab
Branches
main
production
test
uat
No related tags found
1 merge request
!176
added partner model
Pipeline
#85925
failed
1 year ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/migrations/versions/2024-03-18_eaed66b04913_added_partner_table.py
+4
-6
4 additions, 6 deletions
...s/versions/2024-03-18_eaed66b04913_added_partner_table.py
with
4 additions
and
6 deletions
gso/migrations/versions/2024-03-1
4_d6800280b31a
_added_partner_table.py
→
gso/migrations/versions/2024-03-1
8_eaed66b04913
_added_partner_table.py
+
4
−
6
View file @
490b0518
"""
Added Partner table.
Revision ID:
d6800280b31a
Revision ID:
eaed66b04913
Revises: 6e4952687205
Create Date: 2024-03-1
4
1
6:38:55.948838
Create Date: 2024-03-1
8
1
5:03:32.721760
"""
import
sqlalchemy
as
sa
from
alembic
import
op
from
orchestrator.db
import
UtcTimestamp
from
sqlalchemy.dialects
import
postgresql
# revision identifiers, used by Alembic.
revision
=
'
d6800280b31a
'
revision
=
'
eaed66b04913
'
down_revision
=
'
6e4952687205
'
branch_labels
=
None
depends_on
=
None
def
upgrade
()
->
None
:
op
.
create_table
(
'
partners
'
,
sa
.
Column
(
'
partner_id
'
,
sa
.
String
(),
server_default
=
sa
.
text
(
'
uuid_generate_v4()
'
),
nullable
=
False
),
...
...
@@ -66,4 +64,4 @@ def downgrade() -> None:
existing_type
=
sa
.
String
(
length
=
255
),
nullable
=
True
)
op
.
drop_table
(
'
partners
'
)
op
.
drop_table
(
'
partners
'
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment