Skip to content

Commit

Permalink
Remove unused operation names (#503)
Browse files Browse the repository at this point in the history
These are not standalone operations anymore, they are part of the
`alter_column` operation.
  • Loading branch information
andrew-farries authored Dec 3, 2024
1 parent 1f6f49b commit f85bca4
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pkg/migrations/op_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,6 @@ const (
OpNameDropMultiColumnConstraint OpName = "drop_multicolumn_constraint"
OpRawSQLName OpName = "sql"
OpCreateConstraintName OpName = "create_constraint"

// Internal operation types used by `alter_column`

OpNameRenameColumn OpName = "rename_column"
OpNameSetUnique OpName = "set_unique"
OpNameSetNotNull OpName = "set_not_null"
OpNameSetForeignKey OpName = "set_foreign_key"
OpNameSetCheckConstraint OpName = "set_check_constraint"
OpNameChangeType OpName = "change_type"
)

const temporaryPrefix = "_pgroll_new_"
Expand Down Expand Up @@ -121,9 +112,6 @@ func (v *Operations) UnmarshalJSON(data []byte) error {
case OpNameDropIndex:
item = &OpDropIndex{}

case OpNameSetUnique:
item = &OpSetUnique{}

case OpRawSQLName:
item = &OpRawSQL{}

Expand Down Expand Up @@ -213,9 +201,6 @@ func OperationName(op Operation) OpName {
case *OpDropIndex:
return OpNameDropIndex

case *OpSetUnique:
return OpNameSetUnique

case *OpRawSQL:
return OpRawSQLName

Expand Down

0 comments on commit f85bca4

Please sign in to comment.