From 623f1096264d72d116997daeaccda973095eedcb Mon Sep 17 00:00:00 2001
From: Jamalac Orange <14492-x-JaOrang@users.noreply.gitlab.inria.fr>
Date: Wed, 26 Oct 2022 13:48:43 +0200
Subject: [PATCH] feature(flyway): enabled disabled flyway

---
 pom.xml                                | 1 -
 src/main/resources/application-dev.yml | 4 ++++
 src/main/resources/application.yml     | 2 ++
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index be1fa817..93550938 100644
--- a/pom.xml
+++ b/pom.xml
@@ -124,7 +124,6 @@
         <dependency>
             <groupId>org.flywaydb</groupId>
             <artifactId>flyway-core</artifactId>
-            <scope>test</scope>
         </dependency>
     </dependencies>
 
diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml
index 7bf47a33..04113ad5 100644
--- a/src/main/resources/application-dev.yml
+++ b/src/main/resources/application-dev.yml
@@ -1,3 +1,7 @@
 server.error:
   include-message: always
   include-stacktrace: always
+
+spring:
+  flyway:
+    enabled: true
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index fa1bc4a2..3fa395b0 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -3,6 +3,8 @@ spring:
     open-in-view: false
     # database columns are TIMESTAMP WITHOUT TIMEZONE, this make sure we send date-time values with time offset 0
     properties.hibernate.jdbc.time_zone: UTC
+  flyway:
+    enabled: false
 
 submission:
   long-code-lifetime: 10d
-- 
GitLab