bugfix fetching transactions to make use of db cache
This commit is contained in:
parent
9b2653ce91
commit
296a4e7603
5 changed files with 71 additions and 586656 deletions
|
|
@ -0,0 +1,38 @@
|
|||
"""add more fields to tables
|
||||
|
||||
Revision ID: 042751f52538
|
||||
Revises: 72b7410ff3e6
|
||||
Create Date: 2025-06-08 17:49:25.347510
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.dialects import sqlite
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = '042751f52538'
|
||||
down_revision: Union[str, None] = '72b7410ff3e6'
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
"""Upgrade schema."""
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('buylisting', sa.Column('price_history_json', sa.String(), nullable=False))
|
||||
op.drop_column('buylisting', 'price_history')
|
||||
op.add_column('rentlisting', sa.Column('price_history_json', sa.String(), nullable=False))
|
||||
op.drop_column('rentlisting', 'price_history')
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
"""Downgrade schema."""
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('rentlisting', sa.Column('price_history', sqlite.JSON(), nullable=False))
|
||||
op.drop_column('rentlisting', 'price_history_json')
|
||||
op.add_column('buylisting', sa.Column('price_history', sqlite.JSON(), nullable=False))
|
||||
op.drop_column('buylisting', 'price_history_json')
|
||||
# ### end Alembic commands ###
|
||||
Loading…
Add table
Add a link
Reference in a new issue