diff --git a/core-services/egov-notification-sms/pom.xml b/core-services/egov-notification-sms/pom.xml index 0b85ef8d8..f001c6b98 100644 --- a/core-services/egov-notification-sms/pom.xml +++ b/core-services/egov-notification-sms/pom.xml @@ -35,6 +35,10 @@ spring-kafka 2.4.5.RELEASE + + org.springframework.boot + spring-boot-starter-jdbc + org.springframework.boot spring-boot-starter-web @@ -66,16 +70,22 @@ httpclient 4.5.3 + + org.flywaydb + flyway-core + 6.4.3 + + + org.postgresql + postgresql + 9.4.1212 + runtime + org.springframework.boot spring-boot-starter-test test - - org.springframework - spring-jdbc - 5.3.23 - diff --git a/core-services/egov-notification-sms/src/main/java/org/egov/web/notification/sms/repository/builder/SmsNotificationRepository.java b/core-services/egov-notification-sms/src/main/java/org/egov/web/notification/sms/repository/builder/SmsNotificationRepository.java index 505990986..4d3776372 100644 --- a/core-services/egov-notification-sms/src/main/java/org/egov/web/notification/sms/repository/builder/SmsNotificationRepository.java +++ b/core-services/egov-notification-sms/src/main/java/org/egov/web/notification/sms/repository/builder/SmsNotificationRepository.java @@ -1,6 +1,7 @@ package org.egov.web.notification.sms.repository.builder; import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.stereotype.Repository; import org.springframework.jdbc.core.JdbcTemplate; @@ -10,6 +11,7 @@ @Repository public class SmsNotificationRepository { + @Autowired private JdbcTemplate jdbcTemplate; public static final String SELECT_NEXT_SEQUENCE_USER = "select nextval('seq_eg_notification_sms')"; diff --git a/core-services/egov-notification-sms/src/main/resources/db/migration.main/V20231005150835_notification_sms_ddl.sql b/core-services/egov-notification-sms/src/main/resources/db/migration/main/V20231006150836__notification_sms_ddl.sql similarity index 100% rename from core-services/egov-notification-sms/src/main/resources/db/migration.main/V20231005150835_notification_sms_ddl.sql rename to core-services/egov-notification-sms/src/main/resources/db/migration/main/V20231006150836__notification_sms_ddl.sql