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
!1663
Fixed alembic head collision, formatted latest migration
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fixed alembic head collision, formatted latest migration
fix-alembic-head-collision
into
2.8.4-DEVELOPMENT
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Sam Kagan
requested to merge
fix-alembic-head-collision
into
2.8.4-DEVELOPMENT
10 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
2.8.4-DEVELOPMENT
2.8.4-DEVELOPMENT (base)
and
latest version
latest version
e432f97c
1 commit,
10 months ago
1 file
+
29
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
shared/workspaces/alembic/versions/4cd2d7009346_add_casa_home_for_casa_envoy.py
+
29
−
7
Options
"""
description of database changes
# Copyright (C) 2023 Associated Universities, Inc. Washington DC, USA.
#
# This file is part of NRAO Workspaces.
#
# Workspaces is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Workspaces is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Workspaces. If not, see <https://www.gnu.org/licenses/>.
#
"""
Add CASA home for casa_envoy
Revision ID: 4cd2d7009346
Revises:
96477a05695d
Revises:
d822cf6844bb
Create Date: 2024-05-13 09:55:18.903527
"""
from
alembic
import
op
from
pathlib
import
Path
from
alembic
import
op
# revision identifiers, used by Alembic.
revision
=
'
4cd2d7009346
'
down_revision
=
'
96477a05695d
'
revision
=
"
4cd2d7009346
"
down_revision
=
"
d822cf6844bb
"
branch_labels
=
None
depends_on
=
None
restore_cms_manifest_old_content
=
(
Path
.
cwd
()
/
"
versions
"
/
"
templates
"
/
"
restore_cms
"
/
"
metadata_2.8.3.txt
"
).
read_text
()
restore_cms_manifest_new_content
=
(
Path
.
cwd
()
/
"
versions
"
/
"
templates
"
/
"
restore_cms
"
/
"
metadata_2.8.4.txt
"
).
read_text
()
restore_cms_manifest_old_content
=
(
Path
.
cwd
()
/
"
versions
"
/
"
templates
"
/
"
restore_cms
"
/
"
metadata_2.8.3.txt
"
).
read_text
()
restore_cms_manifest_new_content
=
(
Path
.
cwd
()
/
"
versions
"
/
"
templates
"
/
"
restore_cms
"
/
"
metadata_2.8.4.txt
"
).
read_text
()
def
upgrade
():
op
.
execute
(
Loading