Skip to content

Commit f0fb901

Browse files
committed
Add number of days completed column
1 parent 7715659 commit f0fb901

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
"""Add number of days completed column
2+
3+
Revision ID: fa5ff0ea7eab
4+
Revises: 5da7b534611d
5+
Create Date: 2025-01-04 18:53:18.570172
6+
7+
"""
8+
from alembic import op
9+
import sqlalchemy as sa
10+
11+
12+
# revision identifiers, used by Alembic.
13+
revision = 'fa5ff0ea7eab'
14+
down_revision = '5da7b534611d'
15+
branch_labels = None
16+
depends_on = None
17+
18+
19+
def upgrade():
20+
# ### commands auto generated by Alembic - please adjust! ###
21+
with op.batch_alter_table('user', schema=None) as batch_op:
22+
batch_op.add_column(sa.Column('days_completed', sa.Integer(), nullable=False))
23+
24+
# ### end Alembic commands ###
25+
26+
27+
def downgrade():
28+
# ### commands auto generated by Alembic - please adjust! ###
29+
with op.batch_alter_table('user', schema=None) as batch_op:
30+
batch_op.drop_column('days_completed')
31+
32+
# ### end Alembic commands ###

0 commit comments

Comments
 (0)