File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ """Add streak column
2+
3+ Revision ID: df154647d001
4+ Revises: 868a910249be
5+ Create Date: 2025-01-04 18:48:09.868863
6+
7+ """
8+ from alembic import op
9+ import sqlalchemy as sa
10+
11+
12+ # revision identifiers, used by Alembic.
13+ revision = 'df154647d001'
14+ down_revision = '868a910249be'
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 ('task' , schema = None ) as batch_op :
22+ batch_op .add_column (sa .Column ('streak' , 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 ('task' , schema = None ) as batch_op :
30+ batch_op .drop_column ('streak' )
31+
32+ # ### end Alembic commands ###
You can’t perform that action at this time.
0 commit comments