We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
5.2.4
Command line
Redshift
Linux
Ran a migration to update a table inside Redshift
ALTER TABLE lorem.my_table_name ALTER COLUMN type type varchar(30);
ERROR: ALTER TABLE ALTER COLUMN cannot run inside a transaction block
https://docs.aws.amazon.com/redshift/latest/dg/r_ALTER_TABLE.html
ALTER COLUMN column_name TYPE new_data_type ... You can't alter columns inside a multi-statement block (BEGIN...END).
ALTER COLUMN column_name TYPE new_data_type ...
https://github.com/flyway/flyway/blob/master/flyway-core/src/main/java/org/flywaydb/core/internal/database/redshift/RedshiftParser.java#L45
ALTER TABLE ALTER COLUMN
Related to: #1879
The text was updated successfully, but these errors were encountered:
2cb826e
Thanks for the bug report, this is fixed and will be released in v6.
Sorry, something went wrong.
@anjo-swe Thanks for the fix! @MikielAgutu When is the v6 planned to release? As our team needs this fix soon.
I'm still seeing this. I get this error in a migration file.
[Amazon](500310) Invalid operation: ALTER TABLE ALTER COLUMN cannot run inside a transaction block;
Fixed flyway#2438: Redshift - Support for ALTER TABLE ALTER COLUMN
0dab751
IDENTITY PROVIDER
No branches or pull requests
Which version and edition of Flyway are you using?
5.2.4
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command line
Which database are you using (type & version)?
Redshift
Which operating system are you using?
Linux
What did you do?
Ran a migration to update a table inside Redshift
What did you expect to see?
What did you see instead?
References
https://docs.aws.amazon.com/redshift/latest/dg/r_ALTER_TABLE.html
https://github.com/flyway/flyway/blob/master/flyway-core/src/main/java/org/flywaydb/core/internal/database/redshift/RedshiftParser.java#L45
ALTER TABLE ALTER COLUMN
as wellRelated to: #1879
The text was updated successfully, but these errors were encountered: