From e1eb52609e86544688dfb0d7b93d7a8c1f4f925b Mon Sep 17 00:00:00 2001 From: Guilherme de Freitas Date: Mon, 13 Jul 2026 11:21:21 +0100 Subject: [PATCH 1/2] Bump ORM version --- .github/workflows/test-and-publish.yml | 2 +- HISTORY.rst | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-and-publish.yml b/.github/workflows/test-and-publish.yml index 4484db9..6e31dca 100644 --- a/.github/workflows/test-and-publish.yml +++ b/.github/workflows/test-and-publish.yml @@ -4,7 +4,7 @@ on: push: env: - DATABASE_SCHEMA: 5.1.0 + DATABASE_SCHEMA: 5.2.0 permissions: contents: read diff --git a/HISTORY.rst b/HISTORY.rst index 3211754..d077f6b 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -5,6 +5,11 @@ History Unreleased / main ------------------- +12.0.2 (2026-07-13) +------------------- + +* Update database schema to v5.2.0 + 12.0.1 (2026-05-18) ------------------- From a02bd00946218b9da968ae64a737655be27227ff Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 11:25:42 +0100 Subject: [PATCH 2/2] Update ISPyB ORM schema to database schema v5.2.0 (#255) Generated with sqlacodegen 3.0.0rc5 SQLAlchemy 2.0.51 Co-authored-by: ISPyB-API Azure build --- src/ispyb/sqlalchemy/_auto_db_schema.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ispyb/sqlalchemy/_auto_db_schema.py b/src/ispyb/sqlalchemy/_auto_db_schema.py index be8917a..c418b90 100644 --- a/src/ispyb/sqlalchemy/_auto_db_schema.py +++ b/src/ispyb/sqlalchemy/_auto_db_schema.py @@ -1,4 +1,4 @@ -__schema_version__ = "5.1.0" +__schema_version__ = "5.2.0" import datetime import decimal from typing import List, Optional @@ -6917,6 +6917,10 @@ class AutoProcProgram(Base): processingJobId: Mapped[Optional[int]] = mapped_column(INTEGER(11)) processingPipelineId: Mapped[Optional[int]] = mapped_column(INTEGER(11)) parentAutoProcProgramId: Mapped[Optional[int]] = mapped_column(INTEGER(10)) + jobUuid: Mapped[Optional[bytes]] = mapped_column( + BINARY(16), + comment="External UUID for the job as described by the Zocalo service", + ) AutoProcProgram: Mapped["AutoProcProgram"] = relationship( "AutoProcProgram", @@ -7658,6 +7662,7 @@ class Tomogram(Base): pixelLocationY: Mapped[Optional[int]] = mapped_column( INTEGER(11), comment="pixel location of tomogram centre on search map image (y)" ) + thickness: Mapped[Optional[float]] = mapped_column(Float, comment="Unit: nm") AutoProcProgram: Mapped["AutoProcProgram"] = relationship( "AutoProcProgram", back_populates="Tomogram"