aggiunto campo causale_reso nella ntb_docr

This commit is contained in:
2024-07-15 17:21:02 +02:00
parent d6d4c3583b
commit 058334fb0b
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package it.integry.ems.migration.model;
import it.integry.ems.migration._base.BaseMigration;
import it.integry.ems.migration._base.MigrationModelInterface;
public class Migration_20240715105345 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
executeStatement("ALTER TABLE ntb_docr\n" +
" ADD causale_reso VARCHAR(5);");
}
@Override
public void down() throws Exception {
}
}

View File

@@ -90,6 +90,9 @@ public class NtbDocr extends EntityBase {
@SqlField(value = "data_ord", nullable = true)
private Date dataOrd;
@SqlField(value = "causale_reso", maxLength = 5, nullable = true)
private String causaleReso;
@ImportFromParent
private String causale;
@@ -337,6 +340,14 @@ public class NtbDocr extends EntityBase {
return this;
}
public String getCausaleReso() {
return causaleReso;
}
public void setCausaleReso(String causaleReso) {
this.causaleReso = causaleReso;
}
@Override
protected void insertChilds() throws Exception {
}