From 13999c46baa162f673d16aae9a2dc0dd9be8cdb7 Mon Sep 17 00:00:00 2001 From: Cannon Lock Date: Wed, 14 Feb 2024 11:37:36 -0600 Subject: [PATCH] Add Map ID Column to Ingest Table --- api/schemas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/schemas.py b/api/schemas.py index 84ca985..99735b9 100644 --- a/api/schemas.py +++ b/api/schemas.py @@ -141,10 +141,11 @@ class IngestState(enum.Enum): class IngestProcess(Base): __tablename__ = "ingest_process" __table_args__ = {'schema': 'macrostrat'} - id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True) + id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True) state: Mapped[str] = mapped_column(Enum(IngestState, name="ingest_state"), nullable=True) comments: Mapped[str] = mapped_column(TEXT, nullable=True) + map_id: Mapped[str] = mapped_column(TEXT, nullable=True) source_id: Mapped[int] = mapped_column(ForeignKey("maps.sources.source_id"), nullable=True) access_group_id: Mapped[int] = mapped_column(ForeignKey("macrostrat_auth.group.id"), nullable=True) object_group_id: Mapped[ObjectGroup] = mapped_column(ForeignKey("storage.object_group.id"))