diff --git a/.drone.yml b/.drone.yml index 23b7f90..528337b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -57,7 +57,7 @@ steps: - cd /home/ubuntu/courses-jar - mv target/* ./ - sudo chown ubuntu:ubuntu ./* - - sudo mv ./liste-de-courses-1.4-SNAPSHOT-jar-with-dependencies.jar /usr/local/bin/ #todo change file to variable + - sudo mv -f ./liste-de-courses-1.4-SNAPSHOT-jar-with-dependencies.jar /usr/local/bin/ #todo change file to variable - cd /usr/local/bin/ - sudo rm ldc.jar - sudo ln -s liste-de-courses-1.4-SNAPSHOT-jar-with-dependencies.jar ldc.jar #todo change file to variable diff --git a/src/main/kotlin/server.kt b/src/main/kotlin/server.kt index aa78f08..76f0b38 100644 --- a/src/main/kotlin/server.kt +++ b/src/main/kotlin/server.kt @@ -36,7 +36,7 @@ fun main() { transaction { addLogger(StdOutSqlLogger) SchemaUtils.create (Lists) - SchemaUtils.create (Items) + SchemaUtils.drop (Items) SchemaUtils.create (ItemsV2) SchemaUtils.create (Keys) SchemaUtils.create (Migrations)