Skip to content

Commit 99242cc

Browse files
add migration db add user email col
1 parent c1e21d3 commit 99242cc

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
"""add user email col to purchases
2+
3+
Revision ID: 5f88b513cd4c
4+
Revises: ecd4eadaa781
5+
Create Date: 2025-01-22 15:08:17.729337+00:00
6+
7+
"""
8+
import sqlalchemy as sa
9+
from alembic import op
10+
11+
# revision identifiers, used by Alembic.
12+
revision = "5f88b513cd4c"
13+
down_revision = "ecd4eadaa781"
14+
branch_labels = None
15+
depends_on = None
16+
17+
18+
def upgrade():
19+
# ### commands auto generated by Alembic - please adjust! ###
20+
op.add_column(
21+
"resource_tracker_licensed_items_purchases",
22+
sa.Column("user_email", sa.String(), nullable=True),
23+
)
24+
# ### end Alembic commands ###
25+
26+
27+
def downgrade():
28+
# ### commands auto generated by Alembic - please adjust! ###
29+
op.drop_column("resource_tracker_licensed_items_purchases", "user_email")
30+
# ### end Alembic commands ###

0 commit comments

Comments
 (0)