Question: More complex migrations #134

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

Comments

Projects
None yet
2 participants
@gflarity

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 wzrdtales added the feature label Feb 26, 2015

@wzrdtales

This comment has been minimized.

Show comment Hide comment
@wzrdtales

wzrdtales Feb 26, 2015

Owner

refers to #215

Owner

wzrdtales commented Feb 26, 2015

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

This comment has been minimized.

Show comment Hide comment
@wzrdtales

wzrdtales Feb 26, 2015

Owner

also runSql already delivers all functionality needed

Owner

wzrdtales commented Feb 26, 2015

also runSql already delivers all functionality needed

@wzrdtales wzrdtales closed this Oct 17, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment