add unique constraint to tabSeries name column
This commit is contained in:
parent
7d1e8f218b
commit
3878b2a1ac
6
erpnext/patches/june_2012/series_unique_patch.py
Normal file
6
erpnext/patches/june_2012/series_unique_patch.py
Normal file
@ -0,0 +1,6 @@
|
||||
def execute():
|
||||
"""add unique constraint to series table's name column"""
|
||||
import webnotes
|
||||
webnotes.conn.commit()
|
||||
webnotes.conn.sql("alter table `tabSeries` add unique (name)")
|
||||
webnotes.conn.begin()
|
@ -437,4 +437,9 @@ patch_list = [
|
||||
'patch_file': 'support_ticket_autoreply',
|
||||
'description': 'New Send Autoreply checkbox in Email Settings'
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.june_2012',
|
||||
'patch_file': 'series_unique_patch',
|
||||
'description': "add unique constraint to series table's name column"
|
||||
},
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user