7 lines
		
	
	
		
			241 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			241 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from __future__ import unicode_literals
 | |
| 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() |