add unique constraint to tabSeries name column
This commit is contained in:
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',
|
'patch_file': 'support_ticket_autoreply',
|
||||||
'description': 'New Send Autoreply checkbox in Email Settings'
|
'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"
|
||||||
|
},
|
||||||
]
|
]
|
||||||
Reference in New Issue
Block a user