fix:fmt
This commit is contained in:
parent
a9387e5ed0
commit
83937b8695
|
@ -402,9 +402,9 @@ func (db *mysql) AddColumnSQL(tableName string, col *schemas.Column) string {
|
||||||
// ModifyColumnSQL returns a SQL to modify SQL
|
// ModifyColumnSQL returns a SQL to modify SQL
|
||||||
func (db *mysql) ModifyColumnSQL(tableName string, col *schemas.Column) string {
|
func (db *mysql) ModifyColumnSQL(tableName string, col *schemas.Column) string {
|
||||||
s, _ := ColumnString(db.dialect, col, false, true)
|
s, _ := ColumnString(db.dialect, col, false, true)
|
||||||
if col.IsAutoIncrement {
|
/* if col.IsAutoIncrement {
|
||||||
s += " " + db.AutoIncrStr()
|
s += " " + db.AutoIncrStr()
|
||||||
}
|
} */
|
||||||
if col.Comment != "" {
|
if col.Comment != "" {
|
||||||
s += fmt.Sprintf(" COMMENT '%s'", col.Comment)
|
s += fmt.Sprintf(" COMMENT '%s'", col.Comment)
|
||||||
}
|
}
|
||||||
|
|
|
@ -754,7 +754,7 @@ func getKeysFromMap(m map[string]*schemas.Index) []string {
|
||||||
|
|
||||||
|
|
||||||
type SyncTestUser struct {
|
type SyncTestUser struct {
|
||||||
Id int64 `xorm:"pk autoincr 'id' comment('primary key')"`
|
Id int64 `xorm:"pk autoincr 'id' comment('primary key 1')"`
|
||||||
Name string `xorm:"'name' notnull comment('nickname')" json:"name"`
|
Name string `xorm:"'name' notnull comment('nickname')" json:"name"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue