[FIX] test unit and style
This commit is contained in:
parent
9f337db62c
commit
659f9ca306
@ -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 install
|
||||||
mvn deploy
|
mvn deploy
|
||||||
```
|
```
|
||||||
|
2
pom.xml
2
pom.xml
@ -129,7 +129,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.xerial</groupId>
|
<groupId>org.xerial</groupId>
|
||||||
<artifactId>sqlite-jdbc</artifactId>
|
<artifactId>sqlite-jdbc</artifactId>
|
||||||
<version>3.44.1.0</version>
|
<version>3.40.0.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- Interface for JWT token -->
|
<!-- Interface for JWT token -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -3,6 +3,7 @@ package org.kar.archidata.migration.model;
|
|||||||
import org.kar.archidata.annotation.DataComment;
|
import org.kar.archidata.annotation.DataComment;
|
||||||
import org.kar.archidata.annotation.DataDefault;
|
import org.kar.archidata.annotation.DataDefault;
|
||||||
import org.kar.archidata.annotation.DataIfNotExists;
|
import org.kar.archidata.annotation.DataIfNotExists;
|
||||||
|
import org.kar.archidata.annotation.DataNotRead;
|
||||||
import org.kar.archidata.model.GenericDataSoftDelete;
|
import org.kar.archidata.model.GenericDataSoftDelete;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
@ -17,9 +18,14 @@ import jakarta.persistence.Table;
|
|||||||
@DataIfNotExists
|
@DataIfNotExists
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
public class Migration extends GenericDataSoftDelete {
|
public class Migration extends GenericDataSoftDelete {
|
||||||
|
final static int VERSION_MIGRATION = 2;
|
||||||
@DataComment("Name of the migration")
|
@DataComment("Name of the migration")
|
||||||
@Column(length = 256)
|
@Column(length = 256)
|
||||||
public String name;
|
public String name;
|
||||||
|
@DataNotRead
|
||||||
|
@DataDefault("'2'")
|
||||||
|
@DataComment("Version of the migration engine")
|
||||||
|
public Integer version;
|
||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
@DataDefault("'0'")
|
@DataDefault("'0'")
|
||||||
@DataComment("if the migration is well terminated or not")
|
@DataComment("if the migration is well terminated or not")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user