machinomy
Version:
Micropayments powered by Ethereum
22 lines • 730 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const connection_string_1 = require("connection-string");
function migrationsConfig(connectionUrl) {
let c = new connection_string_1.ConnectionString(connectionUrl);
let segments = c.segments || [];
let filename = '/' + segments.join('/');
return {
cmdOptions: {
'migrations-dir': './packages/machinomy/lib/storage/sqlite/migrations/'
},
config: {
defaultEnv: 'defaultSqlite',
defaultSqlite: {
driver: 'sqlite3',
filename: filename
}
}
};
}
exports.default = migrationsConfig;
//# sourceMappingURL=migrationsConfig.js.map