2012-07-19 08:10:31 +00:00
|
|
|
from __future__ import unicode_literals
|
2012-06-28 15:16:46 +00:00
|
|
|
def execute():
|
|
|
|
"""drop and create __CacheItem table again"""
|
|
|
|
import webnotes
|
|
|
|
webnotes.conn.commit()
|
|
|
|
webnotes.conn.sql("drop table __CacheItem")
|
|
|
|
webnotes.conn.sql("""create table __CacheItem(
|
|
|
|
`key` VARCHAR(180) NOT NULL PRIMARY KEY,
|
|
|
|
`value` LONGTEXT,
|
|
|
|
`expires_on` DATETIME
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8""")
|
|
|
|
webnotes.conn.begin()
|