From patchwork Mon Jun 29 04:02:56 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: 32878 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 n5T43KUr024497 for ; Mon, 29 Jun 2009 04:03:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752513AbZF2EDO (ORCPT ); Mon, 29 Jun 2009 00:03:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751549AbZF2EDM (ORCPT ); Mon, 29 Jun 2009 00:03:12 -0400 Received: from mx2.redhat.com ([66.187.237.31]:49084 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751463AbZF2EDH (ORCPT ); Mon, 29 Jun 2009 00:03:07 -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 n5T43At9002888; Mon, 29 Jun 2009 00:03:10 -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 n5T437OR013669; Mon, 29 Jun 2009 00:03:07 -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 n5T42wFJ030288; Mon, 29 Jun 2009 00:03:06 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues , Dror Russo Subject: [PATCH 5/6] Migration script to add results comparison attributes table Date: Mon, 29 Jun 2009 01:02:56 -0300 Message-Id: <1246248177-6108-5-git-send-email-lmr@redhat.com> In-Reply-To: <1246248177-6108-4-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> <1246248177-6108-4-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 A migration script was added to create the tests comparison attributes table Signed-off-by: Dror Russo --- .../029_add_test_comparison_attributes.py | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 tko/migrations/029_add_test_comparison_attributes.py diff --git a/tko/migrations/029_add_test_comparison_attributes.py b/tko/migrations/029_add_test_comparison_attributes.py new file mode 100644 index 0000000..675ade1 --- /dev/null +++ b/tko/migrations/029_add_test_comparison_attributes.py @@ -0,0 +1,20 @@ +UP_SQL = """ +CREATE TABLE `test_comparison_attributes` ( + `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, + `testname` varchar(255) NOT NULL, + `owner` varchar(80) NOT NULL, + `attributes` varchar(1024) NOT NULL, + `testset` varchar(1024) NOT NULL +); +""" + +DOWN_SQL = """ +DROP TABLE IF EXISTS `test_comparison_attributes`; +""" + +def migrate_up(manager): + manager.execute(UP_SQL) + + +def migrate_down(manager): + manager.execute(DOWN_SQL)