Final work on migration, now there is no usage of xorm table sync
This commit is contained in:
@@ -15,6 +15,7 @@ type Dialect interface {
|
||||
EqStr() string
|
||||
ShowCreateNull() bool
|
||||
SqlType(col *Column) string
|
||||
SupportEngine() bool
|
||||
|
||||
CreateIndexSql(tableName string, index *Index) string
|
||||
CreateTableSql(table *Table) string
|
||||
@@ -85,6 +86,10 @@ func (b *BaseDialect) CreateTableSql(table *Table) string {
|
||||
}
|
||||
|
||||
sql = sql[:len(sql)-2] + ")"
|
||||
if b.dialect.SupportEngine() {
|
||||
sql += " ENGINE=InnoDB DEFAULT CHARSET UTF8 "
|
||||
}
|
||||
|
||||
sql += ";"
|
||||
return sql
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user