Skip to content

Commit 07edad5

Browse files
committed
Add time multipliers
1 parent 4ac803b commit 07edad5

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
"""Add time multiplier
2+
3+
Revision ID: 90e9dc716399
4+
Revises: a5e285045629
5+
Create Date: 2025-01-20 18:06:55.299473
6+
7+
"""
8+
from alembic import op
9+
import sqlalchemy as sa
10+
11+
12+
# revision identifiers, used by Alembic.
13+
revision = '90e9dc716399'
14+
down_revision = 'a5e285045629'
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('last_time_clicked', sa.DateTime(), server_default='CURRENT_TIMESTAMP', nullable=False))
23+
batch_op.add_column(sa.Column('time_multiplier', sa.Integer(), server_default='1', nullable=False))
24+
25+
# ### end Alembic commands ###
26+
27+
28+
def downgrade():
29+
# ### commands auto generated by Alembic - please adjust! ###
30+
with op.batch_alter_table('user', schema=None) as batch_op:
31+
batch_op.drop_column('time_multiplier')
32+
batch_op.drop_column('last_time_clicked')
33+
34+
# ### end Alembic commands ###

0 commit comments

Comments
 (0)