UNPKG

node-flywaydb

Version:
35 lines (34 loc) 1.5 kB
// This can be a function or an object literal. module.exports = function() { return { flywayArgs: { url: 'jdbc:postgresql://localhost/postgres', schemas: 'public', locations: 'filesystem:sample/sql', user: 'postgres', password: 'example', sqlMigrationSuffixes: '.pgsql', baselineOnMigrate: true, }, // Use to configure environment variables used by flyway env: { JAVA_ARGS: '-Djava.util.logging.config.file=./conf/logging.properties', }, version: '6.3.2', // optional, empty or missing will download the latest mavenPlugins: [{ // optional, use to add any plugins (ie. logging) groupId: 'org.slf4j', artifactId: 'slf4j-api', version: '1.7.25', // This can be a specifc url to download that may be different then the auto generated url. downloadUrl: 'https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar', }, { groupId: 'org.slf4j', artifactId: 'slf4j-jdk14', version: '1.7.25' }], downloads: { storageDirectory: '/var/test', // optional, the specific directory to store the flyway downloaded files. The directory must be writable by the node app process' user. expirationTimeInMs: -1, // optional, -1 will never check for updates, defaults to 1 day. } }; };