From patchwork Mon Jun 29 04:02:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 32877 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5T43Ggq024486 for ; Mon, 29 Jun 2009 04:03:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753006AbZF2EDL (ORCPT ); Mon, 29 Jun 2009 00:03:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752881AbZF2EDL (ORCPT ); Mon, 29 Jun 2009 00:03:11 -0400 Received: from mx2.redhat.com ([66.187.237.31]:49081 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752733AbZF2EDF (ORCPT ); Mon, 29 Jun 2009 00:03:05 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5T438r0002877; Mon, 29 Jun 2009 00:03:08 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5T435qQ013653; Mon, 29 Jun 2009 00:03:06 -0400 Received: from localhost.localdomain (vpn-10-47.bos.redhat.com [10.16.10.47]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5T42wFI030288; Mon, 29 Jun 2009 00:03:04 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues , Dror Russo Subject: [PATCH 4/6] Implement test comparison table on tko/models.py Date: Mon, 29 Jun 2009 01:02:55 -0300 Message-Id: <1246248177-6108-4-git-send-email-lmr@redhat.com> In-Reply-To: <1246248177-6108-3-git-send-email-lmr@redhat.com> References: <1246248177-6108-1-git-send-email-lmr@redhat.com> <1246248177-6108-2-git-send-email-lmr@redhat.com> <1246248177-6108-3-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This patch creates the Test Comparison Attribute table on the TKO database. Signed-off-by: Dror Russo --- 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)