Skip to content

Commit

Permalink
Cleanup after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanslade committed Dec 18, 2024
1 parent 0d6658d commit 19a1a72
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions pkg/sql2pgroll/alter_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,24 +565,6 @@ func getQualifiedRelationName(rel *pgq.RangeVar) string {
return fmt.Sprintf("%s.%s", rel.GetSchemaname(), rel.GetRelname())
}

// canConvertColumnDef returns true iff `col` can be converted to a pgroll `Column` definition.
// TODO: Copied from WIP PR
func canConvertColumnDef(col *pgq.ColumnDef) bool {
switch {
// Column storage options are not supported
case col.GetStorageName() != "":
return false
// Column compression options are not supported
case col.GetCompression() != "":
return false
// Column collation options are not supported
case col.GetCollClause() != nil:
return false
default:
return true
}
}

func ptr[T any](x T) *T {
return &x
}

0 comments on commit 19a1a72

Please sign in to comment.