]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
work in progress
authorHolger Levsen <holger@layer-acht.org>
Wed, 2 Nov 2011 11:39:49 +0000 (12:39 +0100)
committerHolger Levsen <holger@layer-acht.org>
Wed, 2 Nov 2011 11:39:49 +0000 (12:39 +0100)
kernel_persistence.py

index 7165676b5a70b7375a3297c6cb1c55aa00898ebe..197147443c2c24ea452506a3cd366415dae6f5cb 100644 (file)
@@ -30,10 +30,10 @@ logger.addHandler(stream_handler)
 
 class KernelVersion(Base):
     __tablename__ = 'branch_kernel_version'
-    id = Column(Integer, Sequence('branch_id'), primary_key=True)
+    id = Column(Integer, Sequence('identifier_id'), primary_key=True)
     identifier = Column(String(255), unique=True, nullable=False)
-    branch_name = Column(String(255), unique=True, nullable=False)
     last_version = Column(Integer, nullable=False)
+    branch_name = Column(String(255), unique=True, nullable=False)
     pb_modules = Column(String(255), unique=True, nullable=False)
 
     def __init__(self, identifier, last_version, branch_name, pb_modules):