From 02abb5dcba3eabf2087ef4c7189006f939e0c212 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Fri, 24 Nov 2023 00:05:49 +0100 Subject: [PATCH] [DEV] clean --- .../karanage/migration/Initialization.java | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/back/src/org/kar/karanage/migration/Initialization.java b/back/src/org/kar/karanage/migration/Initialization.java index 88fea81..eec2a8a 100644 --- a/back/src/org/kar/karanage/migration/Initialization.java +++ b/back/src/org/kar/karanage/migration/Initialization.java @@ -7,25 +7,29 @@ import org.kar.karanage.model.StateHistory; import org.kar.karanage.model.StateInstant; public class Initialization extends MigrationSqlStep { - - public static final int KARSO_INITIALISATION_ID = 1; + + public static final int KARSO_INITIALISATION_ID = 1; @Override public String getName() { return "Initialization"; } - public Initialization() throws Exception { + public Initialization() { + + } + + public void generateStep() throws Exception { addClass(StateInstant.class); addClass(StateHistory.class); addClass(Group.class); addClass(DataLog.class); - + addAction(""" - INSERT INTO `group` (`id`, `name`, `description`) VALUES - (1, 'test', 'Basic test interface'); - """); + INSERT INTO `group` (`id`, `name`, `description`) VALUES + (1, 'test', 'Basic test interface'); + """); } - + }