mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-24 07:38:13 +02:00
Add files via upload
This commit is contained in:
72 files changed
+12339
No files matched your search
@@ -0,0 +1,37 @@
|
||||
"""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 ###
|
||||
Reference in new issue
Block a user