machinomy
Version:
Micropayments powered by Ethereum
23 lines • 766 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);
return {
cmdOptions: {
'migrations-dir': './packages/machinomy/lib/storage/postgresql/migrations/'
},
config: {
defaultEnv: 'defaultPg',
defaultPg: {
driver: 'pg',
user: `${c.user}`,
password: `${c.password}`,
host: `${c.hostname}`,
database: `${c.segments[0]}`
}
}
};
}
exports.default = migrationsConfig;
//# sourceMappingURL=migrationsConfig.js.map