Skip to content

Commit dfa4ed6

Browse files
committed
update the Drop Type method
1 parent c667681 commit dfa4ed6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

oracle/migrator.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,7 @@ func (m Migrator) DropType(typeName string) error {
500500
return fmt.Errorf("DropOracleType: typeName is required")
501501
}
502502

503-
sql := fmt.Sprintf(`DROP TYPE "%s"`, strings.ToLower(typeName))
504-
503+
sql := fmt.Sprintf(`DROP TYPE "%s" FORCE`, strings.ToLower(typeName))
505504
return m.DB.Exec(sql).Error
506505
}
507506

0 commit comments

Comments
 (0)