Add website and donation support
This commit is contained in:
30
migrations/versions/d6ae9682c45f_.py
Normal file
30
migrations/versions/d6ae9682c45f_.py
Normal file
@@ -0,0 +1,30 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: d6ae9682c45f
|
||||
Revises: 7ff57806ffd5
|
||||
Create Date: 2019-07-01 23:27:42.666877
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'd6ae9682c45f'
|
||||
down_revision = '7ff57806ffd5'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('user', sa.Column('donate_url', sa.String(length=255), nullable=True))
|
||||
op.add_column('user', sa.Column('website_url', sa.String(length=255), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('user', 'website_url')
|
||||
op.drop_column('user', 'donate_url')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user