<NME> MigrateDb.java
<BEF> /**
 * The MIT License (MIT)
 *
 * Copyright (C) 2013-2016 tarent solutions GmbH
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package org.osiam.cli;

import org.osiam.configuration.DatabaseConfiguration;
import org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import({DatabaseConfiguration.class, PropertyPlaceholderAutoConfiguration.class})
public class MigrateDb {
}

<MSG> Merge pull request #279 from tkrille/fix-migrateDb-command

Fix 'migrateDb' command
<DFF> @@ -24,11 +24,14 @@
 package org.osiam.cli;
 
 import org.osiam.configuration.DatabaseConfiguration;
+import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
 import org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration;
+import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
 import org.springframework.context.annotation.Configuration;
 import org.springframework.context.annotation.Import;
 
 @Configuration
-@Import({DatabaseConfiguration.class, PropertyPlaceholderAutoConfiguration.class})
+@Import({DatabaseConfiguration.class})
+@ImportAutoConfiguration({FlywayAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class})
 public class MigrateDb {
 }

{'commit': 'diff --git a/src/main/java/org/osiam/cli/MigrateDb.java b/src/main/java/org/osiam/cli/MigrateDb.java\nindex 9cfa5431..9a264617 100644\n--- a/src/main/java/org/osiam/cli/MigrateDb.java\n+++ b/src/main/java/org/osiam/cli/MigrateDb.java\n@@ -24,11 +24,14 @@\n package org.osiam.cli;\n \n import org.osiam.configuration.DatabaseConfiguration;\n+import org.springframework.boot.autoconfigure.ImportAutoConfiguration;\n import org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration;\n+import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;\n import org.springframework.context.annotation.Configuration;\n import org.springframework.context.annotation.Import;\n \n @Configuration\n-@Import({DatabaseConfiguration.class, PropertyPlaceholderAutoConfiguration.class})\n+@Import({DatabaseConfiguration.class})\n+@ImportAutoConfiguration({FlywayAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class})\n public class MigrateDb {\n }\n', 'commit_subject': 'Merge pull request #279 from tkrille/fix-migrateDb-command', 'repo_name': 'osiam/osiam', 'committer': {'name': 'GitHub', 'email': '1505422b2465e9a84f6fdfaa161078890c593f06@github.com', 'time_sec': '1480932013', 'tz_offset': '60', 'date': {'seconds': '1480932013'}}, 'commit_tree': '552d8ded8f855b21eb70182fbd716b125f0fd928', 'commit_message': "Merge pull request #279 from tkrille/fix-migrateDb-command\n\nFix 'migrateDb' command", 'language_name': 'Java', 'license': 'mit', 'hunks': '@@ -24,11 +24,14 @@\n package org.osiam.cli;\n \n import org.osiam.configuration.DatabaseConfiguration;\n+import org.springframework.boot.autoconfigure.ImportAutoConfiguration;\n import org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration;\n+import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;\n import org.springframework.context.annotation.Configuration;\n import org.springframework.context.annotation.Import;\n \n @Configuration\n-@Import({DatabaseConfiguration.class, PropertyPlaceholderAutoConfiguration.class})\n+@Import({DatabaseConfiguration.class})\n+@ImportAutoConfiguration({FlywayAutoConfiguration.class, PropertyPlaceholderAutoConfiguration.class})\n public class MigrateDb {\n }\n', 'addition_count': 4, 'deletion_count': 1, 'src_file': 'a/src/main/java/org/osiam/cli/MigrateDb.java', 'tgt_file': 'b/src/main/java/org/osiam/cli/MigrateDb.java', 'file_extension': '.java', 'before_file': '/**\n * The MIT License (MIT)\n *\n * Copyright (C) 2013-2016 tarent solutions GmbH\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\npackage org.osiam.cli;\n\nimport org.osiam.configuration.DatabaseConfiguration;\nimport org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration;\nimport org.springframework.context.annotation.Configuration;\nimport org.springframework.context.annotation.Import;\n\n@Configuration\n@Import({DatabaseConfiguration.class, PropertyPlaceholderAutoConfiguration.class})\npublic class MigrateDb {\n}\n', 'message': "Merge pull request #279 from tkrille/fix-migrateDb-command\n\nFix 'migrateDb' command", 'author_name': 'GitHub', 'lang': 'java'}