mirror of
https://github.com/knex/knex.git
synced 2025-07-09 01:51:05 +00:00
16 lines
429 B
JavaScript
16 lines
429 B
JavaScript
![]() |
module.exports = function(client) {
|
||
|
|
||
|
var Migrator = require('../../migrator');
|
||
|
var inherits = require('inherits');
|
||
|
|
||
|
// Inherit from the `Migrator` constructor's prototype,
|
||
|
// so we can add the correct `then` method.
|
||
|
function Migrator_MySQL() {
|
||
|
Migrator.apply(this, arguments);
|
||
|
}
|
||
|
inherits(Migrator_MySQL, Migrator);
|
||
|
|
||
|
// Assign the newly extended `Migrator` constructor to the client object.
|
||
|
client.Migrator = Migrator_MySQL;
|
||
|
|
||
|
};
|