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

Invalid Postgres downgrade SQL generated #32

Closed
robrwo opened this issue Jan 22, 2015 · 2 comments
Closed

Invalid Postgres downgrade SQL generated #32

robrwo opened this issue Jan 22, 2015 · 2 comments

Comments

@robrwo
Copy link

robrwo commented Jan 22, 2015

An upgrade changed a column from integer to text.

The corresponding downgrade SQL was something like:

ALTER TABLE mytable ALTER COLUMN mycol TYPE integer;

In Postgres, tt should be:

ALTER TABLE mytable ALTER COLUMN mycol TYPE integer USING (my_col::integer);

Is this an SQL::Translator issue or a DBICDH issue?

@frioux
Copy link
Owner

frioux commented Jan 22, 2015

Yeah that's a SQL::Translator issue, sorry!

@frioux frioux closed this as completed Jan 22, 2015
@robrwo
Copy link
Author

robrwo commented Jan 23, 2015

Reported in SQLT at https://rt.cpan.org/Ticket/Display.html?id=101704

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