summaryrefslogtreecommitdiff
path: root/tko/migrations
diff options
context:
space:
mode:
authorjadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4>2009-02-27 16:09:15 +0000
committerjadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4>2009-02-27 16:09:15 +0000
commit57a099eb2dfe81da2c4f9626b854a022ef2c42fc (patch)
treee0ada79393aa7803cc11b9616a9e70d1c8cbefff /tko/migrations
parent7413d409618036c8c447374eeab13be3821eef03 (diff)
Apparently depending on what keys & db version and engines you have,
this may fail because varchar(1000) is too large. Change it to 700 instead; this should work on all systems. Normally I would release a new migration to fix an old one, but this error will prevent you from running a 021 migration so that's not an option. Obviously, the underscores the "this appraoch doesn't scale". Risk: Low Visibility: Fixes a broken db migration Signed-off-by: John Admanski <jadmanski@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@2838 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/migrations')
-rw-r--r--tko/migrations/020_widen_hostname_field.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tko/migrations/020_widen_hostname_field.py b/tko/migrations/020_widen_hostname_field.py
index ffb2418d..ccdec846 100644
--- a/tko/migrations/020_widen_hostname_field.py
+++ b/tko/migrations/020_widen_hostname_field.py
@@ -1,5 +1,5 @@
def migrate_up(mgr):
- mgr.execute("alter table machines modify column hostname varchar(1000);")
+ mgr.execute("alter table machines modify column hostname varchar(700);")
def migrate_down(mgr):
mgr.execute("alter table machines modify column hostname varchar(100);")