Skip to content

Commit

Permalink
Add oncall_shortname to issue table
Browse files Browse the repository at this point in the history
Summary: Make sure new column is materialized when writing to an empty database.

Reviewed By: alambert

Differential Revision: D51162093

fbshipit-source-id: 253e524c669e1bca24075f0661cf054ab1c16606
  • Loading branch information
Manuel Fahndrich authored and facebook-github-bot committed Nov 10, 2023
1 parent 5c0c4ee commit 0ff79a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sapp/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,10 @@ class Issue(Base, PrepareMixin, MutableRecordMixin):
server_default=None,
)

oncall_shortname: Column[Optional[str]] = Column(
String(length=100), doc="responsible for code where issue found", nullable=True
)

@classmethod
def _take(cls, n, iterable):
"Return first n items of the iterable as a list"
Expand Down

0 comments on commit 0ff79a5

Please sign in to comment.