Skip to content

Commit

Permalink
Added fix for sqlite testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjacovich committed Nov 20, 2023
1 parent 20d09c6 commit 185d3a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adsmp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from adsputils import get_date
from datetime import datetime
from dateutil.tz import tzutc
from sqlalchemy import Column, Integer, String, Text, TIMESTAMP, Boolean, DateTime
from sqlalchemy import Column, Integer, BigInteger, String, Text, TIMESTAMP, Boolean, DateTime
from sqlalchemy import types
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.types import Enum
Expand Down Expand Up @@ -118,7 +118,7 @@ def toJSON(self, for_solr=False, load_only=None):

class ChangeLog(Base):
__tablename__ = 'change_log'
id = Column(Integer, primary_key=True)
id = Column(BigInteger().with_variant(Integer, "sqlite"), primary_key=True)
created = Column(UTCDateTime, default=get_date)
key = Column(String(255))
type = Column(String(255))
Expand Down

0 comments on commit 185d3a0

Please sign in to comment.