Skip to content

Commit f85bca4

Browse files
Remove unused operation names (#503)
These are not standalone operations anymore, they are part of the `alter_column` operation.
1 parent 1f6f49b commit f85bca4

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

pkg/migrations/op_common.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@ const (
2626
OpNameDropMultiColumnConstraint OpName = "drop_multicolumn_constraint"
2727
OpRawSQLName OpName = "sql"
2828
OpCreateConstraintName OpName = "create_constraint"
29-
30-
// Internal operation types used by `alter_column`
31-
32-
OpNameRenameColumn OpName = "rename_column"
33-
OpNameSetUnique OpName = "set_unique"
34-
OpNameSetNotNull OpName = "set_not_null"
35-
OpNameSetForeignKey OpName = "set_foreign_key"
36-
OpNameSetCheckConstraint OpName = "set_check_constraint"
37-
OpNameChangeType OpName = "change_type"
3829
)
3930

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

124-
case OpNameSetUnique:
125-
item = &OpSetUnique{}
126-
127115
case OpRawSQLName:
128116
item = &OpRawSQL{}
129117

@@ -213,9 +201,6 @@ func OperationName(op Operation) OpName {
213201
case *OpDropIndex:
214202
return OpNameDropIndex
215203

216-
case *OpSetUnique:
217-
return OpNameSetUnique
218-
219204
case *OpRawSQL:
220205
return OpRawSQLName
221206

0 commit comments

Comments
 (0)