Remove treasure rewards for comments.

Given that coins are not visible in many contexts, the conspicuous
appearance of treasure chests (random coin rewards on 1% of comments)
seems out of place. This removes the logic which rewards treasure,
the visible display of treasure, and drops the column containing
treasure information which has already been awarded to at least one
comment on prod.
This commit is contained in:
TLSM 2022-09-04 17:55:45 -04:00 committed by Ben Rog-Wilhelm
parent cccb26cb3f
commit e12b0eea1a
7 changed files with 28 additions and 47 deletions

View file

@ -0,0 +1,28 @@
"""Remove treasure_amount from comments.
Revision ID: c217c608d86c
Revises: c5bbdae9a233
Create Date: 2022-09-04 21:49:42.471406+00:00
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c217c608d86c'
down_revision = 'c5bbdae9a233'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('comments', 'treasure_amount')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('comments', sa.Column('treasure_amount', sa.VARCHAR(length=10), autoincrement=False, nullable=True))
# ### end Alembic commands ###