Implement server webhook icons as cosmetics & fixes

This commit is contained in:
Jeremy Zhang
2017-09-13 05:55:51 +00:00
parent d9edf7e8ef
commit c23b71d050
14 changed files with 186 additions and 18 deletions

View File

@ -0,0 +1,30 @@
"""Added webhook icon column to guilds and cosmetics
Revision ID: 39815dfbcccb
Revises: d1b89c41bf16
Create Date: 2017-09-13 04:31:35.532918
"""
# revision identifiers, used by Alembic.
revision = '39815dfbcccb'
down_revision = 'd1b89c41bf16'
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('webhook_icon', sa.Boolean(), server_default=sa.text('false'), nullable=False))
op.add_column('guilds', sa.Column('webhook_icon', sa.String(length=255), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('guilds', 'webhook_icon')
op.drop_column('cosmetics', 'webhook_icon')
# ### end Alembic commands ###