mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-16 11:47:42 +02:00
38 lines
991 B
Python
38 lines
991 B
Python
"""Add refresh fields
|
|
|
|
Revision ID: 6ecb6f39fd8c
|
|
Revises: initial_migration
|
|
Create Date: 2025-11-19 12:53:09.412700
|
|
|
|
"""
|
|
|
|
from collections.abc import Sequence
|
|
|
|
import sqlalchemy as sa
|
|
|
|
from alembic import op
|
|
from app.models import Base
|
|
|
|
target_metadata = Base.metadata
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = "6ecb6f39fd8c"
|
|
down_revision: str | None = "initial_migration"
|
|
branch_labels: str | Sequence[str] | None = None
|
|
depends_on: str | Sequence[str] | None = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column("items", sa.Column("is_refreshing", sa.Boolean(), nullable=True))
|
|
op.add_column("items", sa.Column("last_error", sa.String(), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column("items", "last_error")
|
|
op.drop_column("items", "is_refreshing")
|
|
# ### end Alembic commands ###
|