added patch to convert tables to utf8

This commit is contained in:
Rushabh Mehta 2012-01-16 11:58:14 +05:30
parent 610f9728ab
commit cb60ca13a9

View File

@ -0,0 +1,11 @@
import webnotes
def execute():
sql = webnotes.conn.sql
sql("commit")
sql("set foreign_key_checks=0")
for tab in sql("show tables"):
sql("ALTER TABLE `%s` CONVERT TO CHARACTER SET utf8" % tab[0])
sql("set foreign_key_checks=1")