@@ -1985,17 +1985,17 @@ func TestOracleTypeCreateDrop(t *testing.T) {
19851985 t .Skip ("Skipping: current dialect migrator is not Oracle-specific" )
19861986 }
19871987
1988- // 1️⃣ Drop type if it exists
1988+ // Drop type if it exists
19891989 t .Run ("drop_existing_type_if_any" , func (t * testing.T ) {
1990- err := m .Droptype (typeName )
1990+ err := m .DropType (typeName )
19911991 if err != nil && ! strings .Contains (err .Error (), "ORA-04043" ) {
19921992 t .Fatalf ("Unexpected error dropping type: %v" , err )
19931993 }
19941994 })
19951995
1996- // 2️⃣ Create new VARRAY type
1996+ // Create new VARRAY type
19971997 t .Run ("create_varray_type" , func (t * testing.T ) {
1998- err := m .CreateType (typeName , "VARRAY(10) OF VARCHAR2(80 )" )
1998+ err := m .CreateType (typeName , "VARRAY(10)" , " VARCHAR2(60 )" )
19991999 if err != nil {
20002000 t .Fatalf ("Failed to create Oracle type: %v" , err )
20012001 }
@@ -2010,7 +2010,7 @@ func TestOracleTypeCreateDrop(t *testing.T) {
20102010 }
20112011 })
20122012
2013- // 3️⃣ Create table using the custom type
2013+ // Create table using the custom type
20142014 t .Run ("create_table_using_custom_type" , func (t * testing.T ) {
20152015 createTableSQL := fmt .Sprintf (`
20162016 CREATE TABLE "%s" (
@@ -2028,13 +2028,13 @@ func TestOracleTypeCreateDrop(t *testing.T) {
20282028 }
20292029 })
20302030
2031- // 4️⃣ Drop table and type
2031+ // Drop table and type
20322032 t .Run ("drop_table_and_type" , func (t * testing.T ) {
20332033 if err := m .DropTable (tableName ); err != nil {
20342034 t .Fatalf ("Failed to drop table %s: %v" , tableName , err )
20352035 }
20362036
2037- if err := m .Droptype (typeName ); err != nil {
2037+ if err := m .DropType (typeName ); err != nil {
20382038 t .Fatalf ("Failed to drop type %s: %v" , typeName , err )
20392039 }
20402040
0 commit comments