xataio / pgroll

PostgreSQL zero-downtime migrations made easy
https://www.xata.io
Apache License 2.0
2.97k stars 54 forks source link

Export `OpAlterColumn.IsRenameOnly` method #357

Closed andrew-farries closed 3 months ago

andrew-farries commented 3 months ago

Export OpAlterColumn.IsRenameOnly method and add a test for it.

Applications using pgroll as a module may need to test if an alter column operation is only a column rename operation without having to duplicate the logic of checking the fields of the OpAlterColumn struct.