Skip to content

Commit b011fd0

Browse files
Update ISPyB ORM schema to database schema v4.9.0
Generated with sqlacodegen 3.0.0rc5 SQLAlchemy 2.0.43
1 parent 8b710a4 commit b011fd0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/ispyb/sqlalchemy/_auto_db_schema.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__schema_version__ = "4.8.0"
1+
__schema_version__ = "4.9.0"
22
import datetime
33
import decimal
44
from typing import List, Optional
@@ -2235,6 +2235,12 @@ class Proposal(Base):
22352235
state: Mapped[Optional[str]] = mapped_column(
22362236
Enum("Open", "Closed", "Cancelled"), server_default=text("'Open'")
22372237
)
2238+
startDate: Mapped[Optional[datetime.datetime]] = mapped_column(
2239+
DateTime, comment="Start of the allocation period"
2240+
)
2241+
endDate: Mapped[Optional[datetime.datetime]] = mapped_column(
2242+
DateTime, comment="End of the allocation period"
2243+
)
22382244

22392245
Person: Mapped["Person"] = relationship("Person", back_populates="Proposal")
22402246
BLSampleGroup: Mapped[List["BLSampleGroup"]] = relationship(
@@ -4507,6 +4513,10 @@ class Container(Base):
45074513
source: Mapped[Optional[str]] = mapped_column(
45084514
String(50), server_default=text("current_user()")
45094515
)
4516+
parentContainerLocation: Mapped[Optional[int]] = mapped_column(
4517+
INTEGER(10),
4518+
comment="Indicates where inside the parent container this container is located",
4519+
)
45104520

45114521
ContainerRegistry: Mapped["ContainerRegistry"] = relationship(
45124522
"ContainerRegistry", back_populates="Container"

0 commit comments

Comments
 (0)