remove unique constraint

This commit is contained in:
ZhengYang 2014-08-13 16:44:45 +08:00
parent cf86f6af78
commit 83dd1e256a
1 changed files with 2 additions and 3 deletions

View File

@ -312,7 +312,7 @@ const (
import(
"os"
"github.com/astaxie/beego/orm"
"github.com/astaxie/beego/migration"
@ -354,8 +354,7 @@ CREATE TABLE migrations (
statements longtext COMMENT 'SQL statements for this migration',
rollback_statements longtext COMMENT 'SQL statment for rolling back migration',
status ENUM('update', 'rollback') COMMENT 'update indicates it is a normal migration while rollback means this migration is rolled back',
PRIMARY KEY (id_migration),
UNIQUE KEY (name)
PRIMARY KEY (id_migration)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
`
)