2012-10-01 11:35:49 +05:30
|
|
|
from __future__ import unicode_literals
|
2012-09-19 12:01:01 +05:30
|
|
|
import webnotes
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
webnotes.conn.commit()
|
|
|
|
try:
|
2012-09-19 12:23:35 +05:30
|
|
|
webnotes.conn.sql("""alter table `tabStock Ledger Entry` add index posting_sort_index(posting_date, posting_time, name)""")
|
|
|
|
webnotes.conn.commit()
|
2012-09-19 12:01:01 +05:30
|
|
|
except Exception, e:
|
|
|
|
if e.args[0]!=1061: raise e
|
|
|
|
webnotes.conn.begin()
|
|
|
|
|