Skip to content

Question: More complex migrations #134

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

Closed
gflarity opened this issue Oct 30, 2013 · 2 comments
Closed

Question: More complex migrations #134

gflarity opened this issue Oct 30, 2013 · 2 comments
Assignees
Labels
Milestone

Comments

@gflarity
Copy link

Thanks for the this module, use it all the time and it's always been very reliable.

Question:

I find myself wanting access to the actual Postgres driver from within a migration transaction. This is to programatically select specific values to be inserted into a new column I'm adding before setting it not null. Is there a cannonical way to do this or should just create a multiple step migration and run my own script in between?

Here's a high level overview of what I'm trying to do:

  • create a column
  • perform somewhat complex logic to populate a column correctly (in node.js not pure sql)
  • make that column not null

Thanks,
GF

@wzrdtales
Copy link
Member

refers to #215

@wzrdtales wzrdtales self-assigned this Feb 26, 2015
@wzrdtales wzrdtales added this to the v0.10.0 milestone Feb 26, 2015
@wzrdtales
Copy link
Member

also runSql already delivers all functionality needed

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

No branches or pull requests

2 participants