2013-08-05 09:29:54 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2012-07-19 08:10:31 +00:00
|
|
|
from __future__ import unicode_literals
|
2012-06-14 12:58:29 +00:00
|
|
|
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()
|