Skip to content

Commit befa651

Browse files
committed
Remove the check of 'restrict' tag
1 parent 71b193d commit befa651

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

oracle/oracle.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,6 @@ func (d Dialector) Migrator(db *gorm.DB) gorm.Migrator {
133133

134134
// Determines the data type for a schema field
135135
func (d Dialector) DataTypeOf(field *schema.Field) string {
136-
// TODO : Not sure why this is added in the reference implementation
137-
if _, found := field.TagSettings["RESTRICT"]; found {
138-
delete(field.TagSettings, "RESTRICT")
139-
}
140-
141136
switch field.DataType {
142137
case schema.Bool:
143138
return d.getBooleanType()

0 commit comments

Comments
 (0)