Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused operation names #503

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading