Skip to content

Commit a9736f5

Browse files
Merge pull request #10 from oracle-samples/tinglwan-remove-restrict-check
Remove the check of 'restrict' tag
2 parents 1eb2896 + f6bdd94 commit a9736f5

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)