Final work on migration, now there is no usage of xorm table sync

This commit is contained in:
Torkel Ödegaard
2015-01-20 14:44:37 +01:00
parent afb847acc8
commit 0a695ba17a
7 changed files with 37 additions and 6 deletions
@@ -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
}