bug fixed
This commit is contained in:
parent
004974d44d
commit
6147651a6e
4
table.go
4
table.go
|
@ -298,6 +298,8 @@ func (col *Column) String(d dialect) string {
|
|||
|
||||
if col.Default != "" {
|
||||
sql += "DEFAULT " + col.Default + " "
|
||||
} else if col.IsVersion {
|
||||
sql += "DEFAULT 1 "
|
||||
}
|
||||
|
||||
return sql
|
||||
|
@ -316,6 +318,8 @@ func (col *Column) stringNoPk(d dialect) string {
|
|||
|
||||
if col.Default != "" {
|
||||
sql += "DEFAULT " + col.Default + " "
|
||||
} else if col.IsVersion {
|
||||
sql += "DEFAULT 1 "
|
||||
}
|
||||
|
||||
return sql
|
||||
|
|
Loading…
Reference in New Issue