From d05556526efc43ff049f4504045129e92466f59f Mon Sep 17 00:00:00 2001 From: bfresnel <5629642+bfresnel@users.noreply.github.com> Date: Fri, 3 Jun 2022 19:27:26 +0200 Subject: [PATCH] [2.0.1] Fixing startup when using jar --- .run/dockerfile.run.xml | 1 + build.gradle.kts | 2 +- .../resources/db/scripts/init-database.sql | 21 ++++++++++--------- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.run/dockerfile.run.xml b/.run/dockerfile.run.xml index 29eef91..cd0152a 100644 --- a/.run/dockerfile.run.xml +++ b/.run/dockerfile.run.xml @@ -3,6 +3,7 @@ diff --git a/build.gradle.kts b/build.gradle.kts index 6121cb3..bd19567 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } group = "fr.bfr" -version = "2.0.0" +version = "2.0.1" java.sourceCompatibility = JavaVersion.VERSION_16 diff --git a/src/main/resources/db/scripts/init-database.sql b/src/main/resources/db/scripts/init-database.sql index 541b9d8..46c415f 100644 --- a/src/main/resources/db/scripts/init-database.sql +++ b/src/main/resources/db/scripts/init-database.sql @@ -1,11 +1,12 @@ -CREATE TABLE t_character( - id int, - name varchar(255), - rarity integer); +CREATE TABLE public.t_character ( + id int8 NOT NULL GENERATED BY DEFAULT AS IDENTITY, + "name" varchar(255) NULL, + rarity int4 NULL, + CONSTRAINT t_character_pkey PRIMARY KEY (id) +); -CREATE UNIQUE INDEX t_character_id_index -ON t_character(id); - -CREATE TABLE t_drop( - rarity varchar(255), - chance integer); +CREATE TABLE public.t_drop ( + rarity int4 NOT NULL, + chance float8 NULL, + CONSTRAINT t_drop_pkey PRIMARY KEY (rarity) +);