mirror of
https://github.com/knex/knex.git
synced 2025-07-10 18:41:18 +00:00
19 lines
473 B
JavaScript
19 lines
473 B
JavaScript
'use strict';
|
|
|
|
module.exports = function(client) {
|
|
|
|
var Migrator = require('../../migrate');
|
|
var inherits = require('inherits');
|
|
|
|
// Inherit from the `Migrator` constructor's prototype,
|
|
// so we can add the correct `then` method.
|
|
function Migrator_SQLite3() {
|
|
this.client = client;
|
|
Migrator.apply(this, arguments);
|
|
}
|
|
inherits(Migrator_SQLite3, Migrator);
|
|
|
|
// Assign the newly extended `Migrator` constructor to the client object.
|
|
client.Migrator = Migrator_SQLite3;
|
|
|
|
}; |