title: TaskConfigurer does not considering schema name for datasource
body: <p>I have 2 data source. For one data source, I want to use custom schema name. For this reason, I am setting my data source url like
  <code>spring.datasource.url=jdbc:postgresql://192.168.33.10/analytics?currentSchema=bahmni_mart_scdf</code>.
  But it's creating all the tables in <strong>public</strong> schema, instead of <strong>bahmni_mart_scdf</strong> schema.</p>
  
  <p>I already override TaskRepositoryInitializer bean and implements TaskConfigurer.</p>
  
  <p>Here are my implementations</p>
  
  <p><strong>DatabaseConfiguration.class</strong></p>
  
  <pre><code>@Configuration
  public class DatabaseConfiguration {
      @Bean(name = "martDb")
      @ConfigurationProperties(prefix = "spring.ds_mart")
      public DataSource martDataSource() {
          return DataSourceBuilder.create().build();
      }
  
      @Bean(name = "martJdbcTemplate")
      public JdbcTemplate martJdbcTemplate(@Qualifier("martDb") DataSource dsMart) {
          return new JdbcTemplate(dsMart);
      }
  
      @Bean(name = "scdfDb")
      @ConfigurationProperties(prefix = "spring.datasource")
      public DataSource dataSource() {
          return DataSourceBuilder.create().build();
      }
  
      @Bean(name = "scdfJdbcTemplate")
      public JdbcTemplate scdfJdbcTemplate(@Qualifier("scdfDb") DataSource scdfDb) {
          return new JdbcTemplate(scdfDb);
      }
  }
  </code></pre>
  
  <p><strong>DataloadTaskConfigurer.class</strong></p>
  
  <pre><code>@Component
  public class DataloadTaskConfigurer implements TaskConfigurer {
      private DataSource dataSource;
  
      private TaskRepository taskRepository;
  
      private TaskExplorer taskExplorer;
  
      private PlatformTransactionManager transactionManager;
  
      @Autowired
      public DataloadTaskConfigurer(@Qualifier("scdfJdbcTemplate") JdbcTemplate jdbcTemplate) {
  
          this.dataSource = jdbcTemplate.getDataSource();
          TaskExecutionDaoFactoryBean taskExecutionDaoFactoryBean = new TaskExecutionDaoFactoryBean(dataSource);
          this.taskRepository = new SimpleTaskRepository(taskExecutionDaoFactoryBean);
          this.taskExplorer = new SimpleTaskExplorer(taskExecutionDaoFactoryBean);
      }
  
      @Override
      public TaskRepository getTaskRepository() {
          return this.taskRepository;
      }
  
      @Override
      public PlatformTransactionManager getTransactionManager() {
          if (this.transactionManager == null) {
              this.transactionManager = new DataSourceTransactionManager(this.dataSource);
          }
          return this.transactionManager;
      }
  
      @Override
      public TaskExplorer getTaskExplorer() {
          return this.taskExplorer;
      }
  
      public DataSource getTaskDataSource() {
          return this.dataSource;
      }
  }
  </code></pre>
  
  <p><strong>TaskConfiguration.class</strong></p>
  
  <pre><code>@Configuration
  public class TaskConfiguration {
  
      @Bean
      public TaskRepositoryInitializer taskRepositoryInitializerInDataMart(@Qualifier("scdfJdbcTemplate") JdbcTemplate jdbcTemplate) throws Exception {
          TaskRepositoryInitializer taskRepositoryInitializer = new TaskRepositoryInitializer();
          taskRepositoryInitializer.setDataSource(jdbcTemplate.getDataSource());
          taskRepositoryInitializer.afterPropertiesSet();
          return taskRepositoryInitializer;
      }
  }
  </code></pre>
  
  <p><strong>application.properties</strong></p>
  
  <pre><code>spring.datasource.url=jdbc:postgresql://192.168.33.10/analytics?currentSchema=bahmni_mart_scdf
  spring.datasource.username=analytics
  spring.datasource.password=""
  spring.datasource.driver-class-name=org.postgresql.Driver
  
  spring.ds_mart.url=jdbc:postgresql://192.168.33.10/analytics
  spring.ds_mart.username=analytics
  spring.ds_mart.password=""
  spring.ds_mart.driver-class-name=org.postgresql.Driver
  </code></pre>