33 lines
804 B
Python
33 lines
804 B
Python
"""empty message
|
|
|
|
Revision ID: f5bf87849ce2
|
|
Revises: f7a9296b6817
|
|
Create Date: 2023-04-04 09:59:40.714568
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'f5bf87849ce2'
|
|
down_revision = 'f7a9296b6817'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('users', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('avatar_color', sa.String(length=10), nullable=True))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('users', schema=None) as batch_op:
|
|
batch_op.drop_column('avatar_color')
|
|
|
|
# ### end Alembic commands ###
|