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

Support for using alter table #97

Closed
billybonks opened this issue Jul 15, 2017 · 0 comments
Closed

Support for using alter table #97

billybonks opened this issue Jul 15, 2017 · 0 comments

Comments

@billybonks
Copy link

ALTER TABLE the_table ALTER COLUMN col_name TYPE integer USING (col_name::integer)

I tried something like this

exports.up = function(pgm) {
  pgm.alterColumn('pull_request_reviews', 'repo_member_id', {
    type: 'BIGINT',
    using: '(pull_request_reviews::bigint)'
  });
};
@dolezel dolezel mentioned this issue Jul 17, 2017
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

1 participant