Skip to content

Commit

Permalink
Fix some declarations on SQLA Overhead
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Dec 11, 2023
1 parent f014269 commit c47c492
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/sdssdb/sqlalchemy/sdss5db/opsdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# flake8: noqa=E501

import os
from ast import In

from sqlalchemy import (
ARRAY,
Expand Down Expand Up @@ -220,6 +221,8 @@ class Quickred(Base):
class Overhead(Base):
__tablename__ = 'overhead'

pk = Column(Integer, primary_key=True, server_default=text(f"nextval('{Base._schema}.overhead_pk_seq'::regclass)"))
configuration_id = Column(ForeignKey(f'{Base._schema}.configuration.configuration_id', ondelete='CASCADE', onupdate='CASCADE', deferrable=True, initially='DEFERRED'), index=True)
macro_id = Column(Integer)
macro = Column(Text)
stage = Column(Text)
Expand Down

0 comments on commit c47c492

Please sign in to comment.