[FIX] test unit and style

This commit is contained in:
Edouard DUPIN 2023-11-28 23:54:42 +01:00
parent 9f337db62c
commit 659f9ca306
3 changed files with 8 additions and 2 deletions

View File

@ -66,7 +66,7 @@ release:
========
```
export PATH=/usr/lib/jvm/java-19-openjdk/bin:$PATH
export PATH=$(ls -d --color=never /usr/lib/jvm/java-2*-openjdk)/bin:$PATH
mvn install
mvn deploy
```

View File

@ -129,7 +129,7 @@
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.44.1.0</version>
<version>3.40.0.0</version>
</dependency>
<!-- Interface for JWT token -->
<dependency>

View File

@ -3,6 +3,7 @@ package org.kar.archidata.migration.model;
import org.kar.archidata.annotation.DataComment;
import org.kar.archidata.annotation.DataDefault;
import org.kar.archidata.annotation.DataIfNotExists;
import org.kar.archidata.annotation.DataNotRead;
import org.kar.archidata.model.GenericDataSoftDelete;
import com.fasterxml.jackson.annotation.JsonInclude;
@ -17,9 +18,14 @@ import jakarta.persistence.Table;
@DataIfNotExists
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Migration extends GenericDataSoftDelete {
final static int VERSION_MIGRATION = 2;
@DataComment("Name of the migration")
@Column(length = 256)
public String name;
@DataNotRead
@DataDefault("'2'")
@DataComment("Version of the migration engine")
public Integer version;
@Column(nullable = false)
@DataDefault("'0'")
@DataComment("if the migration is well terminated or not")