33 lines
794 B
Python
33 lines
794 B
Python
"""user avatar path
|
|
|
|
Revision ID: a403e38c1c2e
|
|
Revises: b94b21ec5fa9
|
|
Create Date: 2026-03-17 12:50:50.122814
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'a403e38c1c2e'
|
|
down_revision = 'b94b21ec5fa9'
|
|
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_path', sa.Text(), 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_path')
|
|
|
|
# ### end Alembic commands ###
|