From 86096ff0b4a47ec2a567e70227fae8d2855dae0c Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 19 Sep 2012 12:23:35 +0530 Subject: [PATCH] syntax error fix --- erpnext/patches/september_2012/add_stock_ledger_entry_index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/patches/september_2012/add_stock_ledger_entry_index.py b/erpnext/patches/september_2012/add_stock_ledger_entry_index.py index bac9a086df7..7153a7c3305 100644 --- a/erpnext/patches/september_2012/add_stock_ledger_entry_index.py +++ b/erpnext/patches/september_2012/add_stock_ledger_entry_index.py @@ -3,7 +3,8 @@ import webnotes def execute(): webnotes.conn.commit() try: - webnotes.conn.sql("""alter table `tabStock Ledger Entry` add index posting_sort_index(posting_date, posting_time, name)""")webnotes.conn.commit() + webnotes.conn.sql("""alter table `tabStock Ledger Entry` add index posting_sort_index(posting_date, posting_time, name)""") + webnotes.conn.commit() except Exception, e: if e.args[0]!=1061: raise e webnotes.conn.begin()