Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions collectoss/application/db/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
)

from collectoss.application.db.models.augur_operations import (
Settings,
WorkerHistory,
WorkerJob,
WorkerOauth,
Expand Down
20 changes: 20 additions & 0 deletions collectoss/application/db/models/augur_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,26 @@ def retrieve_owner_repos(session, owner: str) -> List[str]:
)


class Settings(Base):
__tablename__ = "augur_settings"
__table_args__ = {
"schema": "augur_operations",
"comment": "CollectOSS settings include the schema version, and the CollectOSS API Key as of 10/25/2020. Future augur settings may be stored in this table, which has the basic structure of a name-value pair. ",
}

id = Column(
BigInteger,
Sequence("augur_settings_id_seq", start=1, schema="augur_operations"),
primary_key=True,
server_default=text(
"nextval('augur_operations.augur_settings_id_seq'::regclass)"
),
)
setting = Column(String)
value = Column(String)
last_modified = Column(TIMESTAMP(precision=0), server_default=text("CURRENT_DATE"))


t_repos_fetch_log = Table(
"repos_fetch_log",
metadata,
Expand Down
Loading