We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6e5886 commit 5ae6ff7Copy full SHA for 5ae6ff7
1 file changed
migrate.go
@@ -747,11 +747,15 @@ Check https://github.com/go-sql-driver/mysql#parsetime for more info.`)
747
}
748
749
err := dbMap.CreateTablesIfNotExists()
750
- // Oracle database does not support `if not exists`, so use `ORA-00955:` error code
751
- // to check if the table exists.
752
- if err != nil && dialect == "oci8" && !strings.HasPrefix(err.Error(), "ORA-00955:") {
+ if err != nil {
+ // Oracle database does not support `if not exists`, so use `ORA-00955:` error code
+ // to check if the table exists.
753
+ if dialect == "oci8" && strings.HasPrefix(err.Error(), "ORA-00955:") {
754
+ return dbMap, nil
755
+ }
756
return nil, err
757
758
+
759
return dbMap, nil
760
761
0 commit comments