Commit dce79110 authored by Jason Moiron's avatar Jason Moiron

use text instead of meaningless varchar in sqlite dialect

parent e164a790
......@@ -91,11 +91,8 @@ func (d SqliteDialect) ToSqlType(col *ColumnMap) string {
return "blob"
maxsize := col.MaxSize
if col.MaxSize < 1 {
maxsize = 255
return fmt.Sprintf("varchar(%d)", maxsize)
// sqlite ignores maxsize, so we will do that here too
return fmt.Sprintf("text")
// Returns autoincrement
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment