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'); + """); } - + }