Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gsshapy/orm/evt.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class ProjectFileEventManager(DeclarativeBase, GsshaPyFileObjectBase):

id = Column(Integer, autoincrement=True, primary_key=True) #: PK
project_file_id = Column(Integer, ForeignKey('prj_project_files.id'))
projectFile = relationship('ProjectFile')
fileExtension = Column(String, default='yml')
projectFile = relationship('ProjectFile', back_populates='projectFileEventManager')
events = relationship('ProjectFileEvent',
lazy='dynamic',
cascade="save-update,merge,delete,delete-orphan") #: RELATIONSHIP
Expand Down
3 changes: 2 additions & 1 deletion gsshapy/orm/prj.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ class ProjectFile(DeclarativeBase, GsshaPyFileObjectBase):
linkNodeDatasets = relationship('LinkNodeDatasetFile', back_populates='projectFile') #: RELATIONSHIP
genericFiles = relationship('GenericFile', back_populates='projectFile') #: RELATIONSHIP
wmsDatasets = relationship('WMSDatasetFile', back_populates='projectFile') #: RELATIONSHIP
projectFileEventManager = relationship('ProjectFileEventManager', uselist=False) #: RELATIONSHIP
projectFileEventManager = relationship('ProjectFileEventManager', back_populates='projectFile',
uselist=False) #: RELATIONSHIP

# File Properties
MAP_TYPES_SUPPORTED = (1,)
Expand Down