From befa65147e3a7d791a6fc8d14de8e26b6e4fe380 Mon Sep 17 00:00:00 2001 From: Ting-Lan Wang Date: Wed, 13 Aug 2025 09:35:19 -0400 Subject: [PATCH] Remove the check of 'restrict' tag --- oracle/oracle.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/oracle/oracle.go b/oracle/oracle.go index 74fbe35..fa36955 100644 --- a/oracle/oracle.go +++ b/oracle/oracle.go @@ -133,11 +133,6 @@ func (d Dialector) Migrator(db *gorm.DB) gorm.Migrator { // Determines the data type for a schema field func (d Dialector) DataTypeOf(field *schema.Field) string { - // TODO : Not sure why this is added in the reference implementation - if _, found := field.TagSettings["RESTRICT"]; found { - delete(field.TagSettings, "RESTRICT") - } - switch field.DataType { case schema.Bool: return d.getBooleanType()