identifier = Column(String(255), unique=True, nullable=False)
last_version = Column(Integer, nullable=False)
branch_name = Column(String(255), nullable=False)
- pb_modules = Column(String(255))
+ pb_modules = Column(String(255), nullable=True)
def __init__(self, identifier, last_version, branch_name, pb_modules):
self.identifier = identifier
try:
answ = session.query(KernelVersion).filter(
KernelVersion.identifier == persistence_identifier).one()
- except NoResultFound:
+ except:
session.add(KernelVersion(persistence_identifier, 0, branch, ''))
session.commit()
answ = session.query(KernelVersion).filter(