From ac3b137e5315e9d6bb8a6938170047e0fd0e9a7e Mon Sep 17 00:00:00 2001 From: aminecmi Date: Fri, 12 Aug 2022 22:47:19 +0200 Subject: [PATCH] Droping items table. --- .drone.yml | 2 +- src/main/kotlin/server.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)