diff mbox

[4/6] Implement test comparison table on tko/models.py

Message ID 1246248177-6108-4-git-send-email-lmr@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lucas Meneghel Rodrigues June 29, 2009, 4:02 a.m. UTC
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(-)
diff mbox

Patch

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)