Skip to content

Commit

Permalink
Merge pull request #4690 from NAStool/dev
Browse files Browse the repository at this point in the history
fix #4682
  • Loading branch information
jxxghp authored May 9, 2023
2 parents 3659a66 + 64104c0 commit 7f1dcac
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ class TRANSFERHISTORY(Base):
DEST = Column(Text)
DEST_PATH = Column(Text)
DEST_FILENAME = Column(Text)
DATE = Column(Text)
DATE = Column(Text, index=True)

def as_dict(self):
return {c.name: getattr(self, c.name) for c in self.__table__.columns}
Expand Down
29 changes: 29 additions & 0 deletions scripts/versions/a19a48dbb41b_1_2_7.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"""1.2.7
Revision ID: a19a48dbb41b
Revises: d68a85a8f10d
Create Date: 2023-05-09 14:44:03.251571
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'a19a48dbb41b'
down_revision = 'd68a85a8f10d'
branch_labels = None
depends_on = None


def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
try:
op.create_index(op.f('ix_TRANSFER_HISTORY_DATE'), 'TRANSFER_HISTORY', ['DATE'], unique=False)
except Exception as e:
pass
# ### end Alembic commands ###


def downgrade() -> None:
pass

0 comments on commit 7f1dcac

Please sign in to comment.