-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path03c7124c33e1_target_category_enum.py
More file actions
54 lines (45 loc) · 1.18 KB
/
03c7124c33e1_target_category_enum.py
File metadata and controls
54 lines (45 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""Target category enum
Revision ID: 03c7124c33e1
Revises: 2b6f40ea2fb6
Create Date: 2024-11-01 11:27:03.609116
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "03c7124c33e1"
down_revision = "2b6f40ea2fb6"
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column(
"target_genes",
"category",
type_=sa.Enum(
"protein_coding",
"other_noncoding",
"regulatory",
name="targetcategory",
native_enum=False,
create_constraint=True,
length=32,
),
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column(
"target_genes",
"category",
type_=sa.String(),
existing_type=sa.Enum(
"protein_coding",
"other_noncoding",
"regulatory",
name="targetcategory",
native_enum=False,
create_constraint=True,
length=32,
),
)
# ### end Alembic commands ###