Skip to content
Snippets Groups Projects
Commit 1f95316a authored by Sam Kagan's avatar Sam Kagan
Browse files

Merge branch 'fix-alembic-head-collision' into '2.8.4-DEVELOPMENT'

Fixed alembic head collision, formatted latest migration

See merge request !1663
parents 2f269998 e432f97c
No related branches found
No related tags found
2 merge requests!1706merge 2.8.4 to main,!1663Fixed alembic head collision, formatted latest migration
Pipeline #15756 passed
"""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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment