Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Question: More complex migrations #134

Open
gflarity opened this Issue · 2 comments

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

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@wzrdtales wzrdtales added the feature label
@wzrdtales
Owner

refers to #215

@wzrdtales wzrdtales self-assigned this
@wzrdtales wzrdtales added this to the v0.10.0 milestone
@wzrdtales
Owner

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
Something went wrong with that request. Please try again.