mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
moved directory structure
This commit is contained in:
11
patches/september_2012/add_stock_ledger_entry_index.py
Normal file
11
patches/september_2012/add_stock_ledger_entry_index.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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()
|
||||
except Exception, e:
|
||||
if e.args[0]!=1061: raise e
|
||||
webnotes.conn.begin()
|
||||
|
||||
Reference in New Issue
Block a user