From patchwork Tue Mar 30 00:04:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 89140 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2U04wmw028968 for ; Tue, 30 Mar 2010 00:04:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753069Ab0C3AE4 (ORCPT ); Mon, 29 Mar 2010 20:04:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18877 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752293Ab0C3AEz (ORCPT ); Mon, 29 Mar 2010 20:04:55 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2U04ord003096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 29 Mar 2010 20:04:51 -0400 Received: from localhost.localdomain (vpn-8-106.rdu.redhat.com [10.11.8.106]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2U04mMX022128; Mon, 29 Mar 2010 20:04:49 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, jamesren@google.com, mgoldish@redhat.com, Lucas Meneghel Rodrigues Subject: [PATCH] Web frontend database: Expand test and subdir fields from tko_tests Date: Mon, 29 Mar 2010 21:04:46 -0300 Message-Id: <1269907486-16716-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 30 Mar 2010 00:04:59 +0000 (UTC) diff --git a/frontend/migrations/052_expand_test_subdir_fields.py b/frontend/migrations/052_expand_test_subdir_fields.py new file mode 100644 index 0000000..d0f7a8b --- /dev/null +++ b/frontend/migrations/052_expand_test_subdir_fields.py @@ -0,0 +1,9 @@ +UP_SQL = """ +ALTER TABLE tko_tests MODIFY test varchar(300) default NULL; +ALTER TABLE tko_tests MODIFY subdir varchar(300) default NULL; +""" + +DOWN_SQL = """ +ALTER TABLE tko_tests MODIFY test varchar(30) default NULL; +ALTER TABLE tko_tests MODIFY subdir varchar(60) default NULL; +""" \ No newline at end of file diff --git a/frontend/tko/models.py b/frontend/tko/models.py index 7348b07..e0215a6 100644 --- a/frontend/tko/models.py +++ b/frontend/tko/models.py @@ -169,8 +169,8 @@ class Test(dbmodels.Model, model_logic.ModelExtensions, model_logic.ModelWithAttributes): test_idx = dbmodels.AutoField(primary_key=True) job = dbmodels.ForeignKey(Job, db_column='job_idx') - test = dbmodels.CharField(max_length=90) - subdir = dbmodels.CharField(blank=True, max_length=180) + test = dbmodels.CharField(max_length=300) + subdir = dbmodels.CharField(blank=True, max_length=300) kernel = dbmodels.ForeignKey(Kernel, db_column='kernel_idx') status = dbmodels.ForeignKey(Status, db_column='status') reason = dbmodels.CharField(blank=True, max_length=3072)