Skip to content

Commit

Permalink
Fix the error that the specified column type is VARCHAR2
Browse files Browse the repository at this point in the history
  • Loading branch information
CengSin committed Jun 1, 2021
1 parent 68fc3aa commit 6307ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (d Dialector) DataTypeOf(field *schema.Field) string {
if val, ok := field.TagSettings["AUTOINCREMENT"]; ok && utils.CheckTruth(val) {
sqlType += " GENERATED BY DEFAULT AS IDENTITY"
}
case schema.String:
case schema.String, "VARCHAR2":
size := field.Size
defaultSize := d.DefaultStringSize

Expand Down

0 comments on commit 6307ba0

Please sign in to comment.