2013-11-20 07:29:58 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2013-01-17 12:52:22 +00:00
|
|
|
import webnotes
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
webnotes.reload_doc("core", "doctype", "patch_log")
|
2013-01-19 05:24:03 +00:00
|
|
|
if webnotes.conn.table_exists("__PatchLog"):
|
|
|
|
for d in webnotes.conn.sql("""select patch from __PatchLog"""):
|
|
|
|
webnotes.doc({
|
|
|
|
"doctype": "Patch Log",
|
|
|
|
"patch": d[0]
|
|
|
|
}).insert()
|
2013-01-17 12:52:22 +00:00
|
|
|
|
2013-01-19 05:24:03 +00:00
|
|
|
webnotes.conn.commit()
|
|
|
|
webnotes.conn.sql("drop table __PatchLog")
|