From f32201798289f2630463532a3e6a0ae3ad7cc0ff Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Sun, 17 Jul 2016 00:11:13 -0400 Subject: [PATCH] Koji build states are actually integers. --- rida/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rida/database.py b/rida/database.py index 12c71652..be24c26c 100644 --- a/rida/database.py +++ b/rida/database.py @@ -234,7 +234,7 @@ class ComponentBuild(Base): format = Column(String, nullable=False) build_id = Column(Integer) # This is the id of the build in koji # XXX: Consider making this a proper ENUM (or an int) - state = Column(String) + state = Column(Integer) module_id = Column(Integer, ForeignKey('module_builds.id'), nullable=False) module_build = relationship('ModuleBuild', backref='component_builds', lazy=False)