diff mbox

Web frontend database: Expand test and subdir fields from tko_tests

Message ID 1269907486-16716-1-git-send-email-lmr@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lucas Meneghel Rodrigues March 30, 2010, 12:04 a.m. UTC
None
diff mbox

Patch

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)