Skip to content

Commit

Permalink
Merge pull request #318 from arXiv/be-able-to-write-to-latexmldb
Browse files Browse the repository at this point in the history
postgres enum types require names
  • Loading branch information
kyokukou authored Sep 27, 2024
2 parents d201a13 + 40d6468 commit a36062b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcp/cloud_functions/aggregate_hourly_downloads/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def insert_into_database(aggregated_data: Dict[DownloadKey, DownloadCounts], db_
class HourlyDownloadData(Base):
__tablename__ = 'hourly_download_data'
country = Column(String(255), primary_key=True)
download_type = Column(String(16), Enum('pdf', 'html', 'src'), primary_key=True)
download_type = Column(String(16), Enum('pdf', 'html', 'src', name='download_type_enum'), primary_key=True)
archive = Column(String(16))
category = Column(String(32), primary_key=True)
primary_count = Column(Integer)
Expand Down

0 comments on commit a36062b

Please sign in to comment.