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

Bug during migration 14 -> 15: ERROR: 42804: column "progress" cannot be cast automatically to type integer #20140

Closed
WimpyMan opened this issue Feb 21, 2022 · 2 comments

Comments

@WimpyMan
Copy link
Contributor

When running the upgrade script, I get this error message:

Error DB_ERROR_42804: ALTER TABLE llx_ticket MODIFY COLUMN progress integer;
ERROR: 42804: column "progress" cannot be cast automatically to type integer HINT: You might need to specify "USING progress::integer". LOCATION: ATPrepAlterColumnType, tablecmds.c:9803

I run Postgresql obviously.

@vbueb
Copy link

vbueb commented Mar 21, 2022

I get the exact same issue with Postgresql as well.

@vbueb
Copy link

vbueb commented Mar 21, 2022

You can run this SQL update prior to migration :

ALTER TABLE llx_ticket ALTER COLUMN progress TYPE integer USING progress::integer;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants