diff --git a/pkg/sql2pgroll/create_table.go b/pkg/sql2pgroll/create_table.go index 53cdbe165..2eac0a885 100644 --- a/pkg/sql2pgroll/create_table.go +++ b/pkg/sql2pgroll/create_table.go @@ -126,9 +126,12 @@ func canConvertColumnDef(col *pgq.ColumnDef) bool { // Column storage options are not supported case col.GetStorageName() != "": return false - // Column compression options are not supported + // 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 } diff --git a/pkg/sql2pgroll/create_table_test.go b/pkg/sql2pgroll/create_table_test.go index d98209f1c..325a786ab 100644 --- a/pkg/sql2pgroll/create_table_test.go +++ b/pkg/sql2pgroll/create_table_test.go @@ -118,6 +118,9 @@ func TestUnconvertableCreateTableStatements(t *testing.T) { // Column compression options are not supported "CREATE TABLE foo(a text COMPRESSION pglz)", + + // Column collation is not supported + "CREATE TABLE foo(a text COLLATE en_US)", } for _, sql := range tests {