alabuga/backend/alembic/versions/20241012_0009_profile_photos.py
2025-09-30 22:45:05 -06:00

23 lines
607 B
Python

"""Добавляем колонку для фото профиля кандидата."""
from __future__ import annotations
from alembic import op
import sqlalchemy as sa
revision = "20241012_0009"
down_revision = "20241010_0008"
branch_labels = None
depends_on = None
def upgrade() -> None:
with op.batch_alter_table("users", schema=None) as batch_op:
batch_op.add_column(sa.Column("profile_photo_path", sa.String(length=512), nullable=True))
def downgrade() -> None:
with op.batch_alter_table("users", schema=None) as batch_op:
batch_op.drop_column("profile_photo_path")