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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Dror Russo <drusso@xxxxxxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux