syntax error fix
This commit is contained in:
parent
bb6d06f64a
commit
86096ff0b4
@ -3,7 +3,8 @@ import webnotes
|
|||||||
def execute():
|
def execute():
|
||||||
webnotes.conn.commit()
|
webnotes.conn.commit()
|
||||||
try:
|
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:
|
except Exception, e:
|
||||||
if e.args[0]!=1061: raise e
|
if e.args[0]!=1061: raise e
|
||||||
webnotes.conn.begin()
|
webnotes.conn.begin()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user