Skip to content

Commit a5af4c0

Browse files
committed
Resolve missing COLUMN keyword when dropping a column
1 parent 8748963 commit a5af4c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oracle/migrator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ func (m Migrator) DropColumn(value interface{}, name string) error {
310310
}
311311

312312
return m.DB.Exec(
313-
"ALTER TABLE ? DROP ?",
313+
"ALTER TABLE ? DROP COLUMN ?",
314314
clause.Table{Name: stmt.Schema.Table},
315315
clause.Column{Name: name},
316316
).Error

0 commit comments

Comments
 (0)