These are chat archives for db-migrate/node-db-migrate

20th
Aug 2016
Nicholas Iannone
@nickiannone
Aug 20 2016 16:34
Hey @wzrdtales, DefinitelyTyped accepted my Typescript defs for db-migrate-base and db-migrate-pg, which we're trying to integrate into our workflow.
I'm looking into two more things: Integrating db-migrate as a component in gulp (which might be another short github project on my end), and getting db-migrate binary to spit out a Typescript file. That one might just be an experimental branch on our end, since there'd be a bit more involved than taking the db-migrate create command and modifying its output. For one, it'd need to know what driver the DB uses so it can load the appropriate plugin
ie. if the database.json file indicates a driver type of "pg", then it'd have to slap in a import * as DbMigratePg from 'db-migrate-pg' into the migration file.
Nicholas Iannone
@nickiannone
Aug 20 2016 16:40
and then modify the type of db in export function up(db) and export function down(db) to match