Skip to content

Commit

Permalink
Add wts as data analysis option (#195) (patch)
Browse files Browse the repository at this point in the history
### Added
- wts as data analysis option
  • Loading branch information
fevac committed Apr 20, 2023
1 parent 137b1e5 commit 97008bd
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions alembic/versions/d1183a4d6d27_add_wts_to_data_analysis.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
"""Add wts to data analysis
Revision ID: d1183a4d6d27
Revises: ae1c26559e9b
Create Date: 2023-04-19 17:54:51.611506
"""

# revision identifiers, used by Alembic.
revision = "d1183a4d6d27"
down_revision = "ae1c26559e9b"
branch_labels = None
depends_on = None

import sqlalchemy as sa
from sqlalchemy import types

from alembic import op

OLD_OPTIONS = ("wes", "wgs", "rna", "tgs", "other")
NEW_OPTIONS = ("wes", "wgs", "rna", "tgs", "other", "wts")


def upgrade():
op.alter_column(
"analysis",
"type",
existing_type=types.Enum(*OLD_OPTIONS),
type_=types.Enum(*NEW_OPTIONS),
)


def downgrade():
op.alter_column(
"analysis",
"type",
existing_type=types.Enum(*NEW_OPTIONS),
type_=types.Enum(*OLD_OPTIONS),
)

0 comments on commit 97008bd

Please sign in to comment.