mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
31 lines
731 B
JavaScript
31 lines
731 B
JavaScript
// TEMPORARY USE OF GRUNT FOR DB MIGRATIONS
|
|
|
|
var dbUrl = process.env.DB_URL || 'postgresql://localhost:5432/unleash';
|
|
|
|
module.exports = function(grunt) {
|
|
grunt.loadNpmTasks('grunt-liquibase');
|
|
|
|
grunt.initConfig({
|
|
liquibase : {
|
|
options: {
|
|
username: '',
|
|
password: '',
|
|
url : 'jdbc:' + dbUrl,
|
|
changeLogFile: 'sql/db_changes/db.changelog-master.xml'
|
|
},
|
|
update: {
|
|
command: 'update'
|
|
},
|
|
dropAll: {
|
|
command: 'dropAll'
|
|
},
|
|
version : {
|
|
command: 'version'
|
|
}
|
|
}
|
|
});
|
|
|
|
grunt.registerTask('default', []);
|
|
};
|
|
|