Add basic support for DEFAULT values

This commit is contained in:
Chris Aumann 2014-07-21 23:33:41 +02:00
parent 40c16f3c29
commit 4772acb1c4
1 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,11 @@ func parseSqlTag(str string) (typ string, addational_typ string, size int) {
}
addational_typ = m["NOT NULL"] + " " + m["UNIQUE"]
if len(m["DEFAULT"]) > 0 {
addational_typ = addational_typ + "DEFAULT " + m["DEFAULT"]
}
}
return
}