Add user cards and badges, Closes #25

This commit is contained in:
Jeremy Zhang
2017-12-07 06:49:32 +00:00
parent 3af5dc703a
commit 204858d011
12 changed files with 293 additions and 10 deletions

View File

@ -0,0 +1,28 @@
"""Added badges column to cosmetics
Revision ID: 66971a97040e
Revises: 16b4fdbbe155
Create Date: 2017-12-07 04:30:25.639794
"""
# revision identifiers, used by Alembic.
revision = '66971a97040e'
down_revision = '16b4fdbbe155'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('cosmetics', sa.Column('badges', sa.String(length=255), server_default='[]', nullable=False))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('cosmetics', 'badges')
# ### end Alembic commands ###