All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: autotest@test.kernel.org
Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues <lmr@redhat.com>,
	Dror Russo <drusso@redhat.com>
Subject: [PATCH 4/6] Implement test comparison table on tko/models.py
Date: Mon, 29 Jun 2009 01:02:55 -0300	[thread overview]
Message-ID: <1246248177-6108-4-git-send-email-lmr@redhat.com> (raw)
In-Reply-To: <1246248177-6108-3-git-send-email-lmr@redhat.com>

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 --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


  reply	other threads:[~2009-06-29  4:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-29  4:02 [PATCH 1/6] New TKO: Changes to html and css code needed for new results comparison Lucas Meneghel Rodrigues
2009-06-29  4:02 ` [PATCH 2/6] New TKO: Implement the Result Analysis UI class Lucas Meneghel Rodrigues
2009-06-29  4:02   ` [PATCH 3/6] Introduce a maximum attribute mismatch parameter on global_config Lucas Meneghel Rodrigues
2009-06-29  4:02     ` Lucas Meneghel Rodrigues [this message]
2009-06-29  4:02       ` [PATCH 5/6] Migration script to add results comparison attributes table Lucas Meneghel Rodrigues
2009-06-29  4:02         ` [PATCH 6/6] Changes to the tko rpc interface Lucas Meneghel Rodrigues

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1246248177-6108-4-git-send-email-lmr@redhat.com \
    --to=lmr@redhat.com \
    --cc=autotest@test.kernel.org \
    --cc=drusso@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.