Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

        def makeNullable(table, column, columnTypeStr):
    print 'SCHEMA UPDATE: changing column %s in table %s to nullable' % (column, table)
    from django.db import connection, transaction
    cursor = connection.cursor()
    sql = 'ALTER TABLE `%s` MODIFY COLUMN `%s` %s NULL;' % (table,column,columnTypeStr)
    cursor.execute(sql)
        


src/i/n/indextank-service-HEAD/storefront/updates/updates.py   indextank-service(Download)
from util import column_exists, safe_add_column, makeNullable, get_column_type
 
def perform_updates():
    enlarge_username()
    add_change_password()