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