diff options
author | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2009-04-15 20:53:26 +0000 |
---|---|---|
committer | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2009-04-15 20:53:26 +0000 |
commit | d629c98b4713a5123d71d2888b858aedddb2b18f (patch) | |
tree | ffed8116216ad69172567a8fd46243e694d1ed8d /tko/migrations | |
parent | 0fff092cffe4627e2b1ee220f1073f3625e041f4 (diff) |
Several of out attributes (like bootnum and boot_times) that are standard test_attributes are
signifigantly longer than 100 char. So extended value column to 1K.
Signed-off-by: Travis Miller <raphtee@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@2987 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/migrations')
-rw-r--r-- | tko/migrations/022_widen_attribute_value_field.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tko/migrations/022_widen_attribute_value_field.py b/tko/migrations/022_widen_attribute_value_field.py new file mode 100644 index 00000000..e970a530 --- /dev/null +++ b/tko/migrations/022_widen_attribute_value_field.py @@ -0,0 +1,7 @@ +def migrate_up(mgr): + mgr.execute("alter table test_attributes modify column value varchar(1024);") + mgr.execute("alter table iteration_attributes modify column value varchar(1024);") + +def migrate_down(mgr): + mgr.execute("alter table test_attributes modify column value varchar(100);") + mgr.execute("alter table iteration_attributes modify column value varchar(100);") |