This patch creates the Test Comparison Attribute
table on the TKO database.

Signed-off-by: Dror Russo <[email protected]>
---
 new_tko/tko/models.py |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/new_tko/tko/models.py b/new_tko/tko/models.py
index dd02fa8..6412228 100644
--- a/new_tko/tko/models.py
+++ b/new_tko/tko/models.py
@@ -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)
-- 
1.6.2.5

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to