2014-04-08 16:25:57 -04:00
|
|
|
module.exports = function(client) {
|
|
|
|
|
2014-04-16 03:22:47 -04:00
|
|
|
var Migrator = require('../../migrate');
|
2014-04-08 16:25:57 -04:00
|
|
|
var inherits = require('inherits');
|
|
|
|
|
|
|
|
// Inherit from the `Migrator` constructor's prototype,
|
|
|
|
// so we can add the correct `then` method.
|
|
|
|
function Migrator_PG() {
|
2014-05-08 17:58:07 -04:00
|
|
|
this.client = client;
|
2014-04-08 16:25:57 -04:00
|
|
|
Migrator.apply(this, arguments);
|
|
|
|
}
|
|
|
|
inherits(Migrator_PG, Migrator);
|
|
|
|
|
|
|
|
// Assign the newly extended `Migrator` constructor to the client object.
|
|
|
|
client.Migrator = Migrator_PG;
|
|
|
|
|
|
|
|
};
|