@@ -211,6 +211,17 @@ class IterationAttribute(dbmodels.Model, model_logic.ModelExtensions):
db_table = 'iteration_attributes'
+class TestComparisonAttribute(dbmodels.Model, model_logic.ModelExtensions):
+ testname = dbmodels.CharField(maxlength=90)
+ # TODO: change this to foreign key once DBs are merged
+ owner = dbmodels.CharField(maxlength=80)
+ attributes = dbmodels.CharField(maxlength=1024)
+ testset = dbmodels.CharField(maxlength=1024)
+
+ class Meta:
+ db_table = 'test_comparison_attributes'
+
+
class IterationResult(dbmodels.Model, model_logic.ModelExtensions):
# see comment on IterationAttribute regarding primary_key=True
test = dbmodels.ForeignKey(Test, db_column='test_idx', primary_key=True)
This patch creates the Test Comparison Attribute table on the TKO database. Signed-off-by: Dror Russo <drusso@redhat.com> --- new_tko/tko/models.py | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)