"""0007 добавил в backups поле is_by_user

Revision ID: 4f3877d7a2b1
Revises: b58238896c0f
Create Date: 2025-07-01 18:54:27.796866

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '4f3877d7a2b1'
down_revision: Union[str, None] = 'b58238896c0f'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('backups', sa.Column('is_by_user', sa.Boolean(), nullable=False))
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('backups', 'is_by_user')
    # ### end Alembic commands ###
