Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
abudlong committed Jan 15, 2025
1 parent ed1a170 commit d2e1dca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions migrations/sql/schema/schema_5.0.0.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
def upgrade() -> None:
"""Upgrade 'schema' tree from 4.0.0 to 5.0.0 (ticket DM-48437).
Summary of changes:
- Add empty dipoleFitAttempted column.
- Add empty is_negative column.
"""
ctx = Context()

Expand All @@ -48,12 +48,12 @@ def upgrade() -> None:
def downgrade() -> None:
"""Downgrade 'schema' tree from 5.0.0 to 4.0.0 (ticket DM-48437).
Summary of changes:
- Remove empty dipoleFitAttempted column.
- Remove empty is_negative column.
"""
ctx = Context()

# Alter table schema.
_LOG.info("Dropping column to DiaSource table.")
_LOG.info("Dropping column from DiaSource table.")
try:
summary = ctx.get_table("DiaSource")
with ctx.batch_alter_table("DiaSource", copy_from=summary) as batch_op:
Expand Down

0 comments on commit d2e1dca

Please sign in to comment.