Skip to content

Commit

Permalink
ensure extend existing is set for all models (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
SerRichard authored May 30, 2024
1 parent eb36cbc commit 0262a88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion openeo_fastapi/client/psql/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class JobORM(BASE):
"""ORM for the job table."""

__tablename__ = "jobs"
__table_args__ = {"extend_existing": True}

job_id = Column(UUID(as_uuid=True), primary_key=True)
"""UUID of the job."""
Expand All @@ -50,6 +51,7 @@ class UdpORM(BASE):
"""ORM for the UDPS table."""

__tablename__ = "udps"
__table_args__ = {"extend_existing": True}

id = Column(VARCHAR, primary_key=True, nullable=False)
"""The string name of the UDP. CPK with user_id. Different users can use the same string for id."""
Expand All @@ -64,6 +66,6 @@ class UdpORM(BASE):
returns = Column("returns", JSON)
"""The return types of the UDP."""
summary = Column("summary", VARCHAR)
"""A summary of the UPD."""
"""A summary of the UPD."""
description = Column("description", VARCHAR)
"""A description of what the UDP is intended to do."""
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openeo-fastapi"
version = "2024.5.2"
version = "2024.5.3"
description = "FastApi implementation conforming to the OpenEO Api specification."
authors = ["Sean Hoyal <sean.hoyal@external.eodc.eu>"]
readme = "README.md"
Expand All @@ -23,7 +23,7 @@ uvicorn = "^0.29.0"
fastapi = "^0.95.1"
pydantic = "<2"
attrs = "^23.1.0"
httpx = "^0.24.1"
httpx = "^0.27.0"
aiohttp = ">3.9"
pystac-client = ">=0.7.5"
openeo-pg-parser-networkx = ">=2024.1.1"
Expand Down

0 comments on commit 0262a88

Please sign in to comment.