~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to pybb/migrations/004_profile_language.py

  • Committer: Holger Rapp
  • Date: 2009-02-26 22:38:49 UTC
  • Revision ID: sirver@kallisto.local-20090226223849-1563ij0uuw0lz0zu
First version of widelands online help

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.db import connection
 
2
 
 
3
from pybb.models import Forum, Topic
 
4
 
 
5
DESCRIPTION = 'Change of max_length of Profile.language field.'
 
6
 
 
7
def migrate():
 
8
    cur = connection.cursor()
 
9
 
 
10
    print 'Altering profile table'
 
11
    cur.execute("ALTER TABLE pybb_profile MODIFY language VARCHAR(10) NOT NULL")