mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-12 17:23:38 +00:00
added patch to convert tables to utf8
This commit is contained in:
11
erpnext/patches/jan_mar_2012/convert_tables_to_utf8.py
Normal file
11
erpnext/patches/jan_mar_2012/convert_tables_to_utf8.py
Normal 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")
|
||||
Reference in New Issue
Block a user