From cf1a7261987b806ac8004ac6cd7247cd0115e1da Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 22 Oct 2020 07:35:25 +0200 Subject: [PATCH] Rename table to be inline with other table naming --- freqtrade/persistence/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/persistence/models.py b/freqtrade/persistence/models.py index f1f9a4e67..477a94bad 100644 --- a/freqtrade/persistence/models.py +++ b/freqtrade/persistence/models.py @@ -664,7 +664,7 @@ class PairLock(_DECL_BASE): """ Pair Locks database model. """ - __tablename__ = 'pair_lock' + __tablename__ = 'pairlocks' id = Column(Integer, primary_key=True) @@ -673,7 +673,7 @@ class PairLock(_DECL_BASE): # Time the pair was locked (start time) lock_time = Column(DateTime, nullable=False) # Time until the pair is locked (end time) - lock_end_time = Column(DateTime, nullable=False) + lock_end_time = Column(DateTime, nullable=False, index=True) active = Column(Boolean, nullable=False, default=True, index=True)