aggiunte migration

This commit is contained in:
2024-08-13 17:31:29 +02:00
parent 23beff9772
commit 46a4ef3f05
2 changed files with 23 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ public class Migration_20240812170055 extends BaseMigration implements Migration
"CREATE TABLE jtb_fasi_imp_mesi (id bigint not null identity, cod_jfas varchar (5) NOT NULL, anno int NOT NULL, mese int NOT NULL, \n" +
"voce_costo_ricavo varchar(40) NOT NULL, importo_unitario decimal (20, 5) NULL default 0,\n" +
"importo_mensile decimal(20, 5) NULL default 0, costo_budget decimal(20, 5) NULL,\n" +
"importo_mensile decimal(20, 5) NULL default 0, costo_budget decimal(20, 5) NOT NULL DEFAULT 0,\n" +
"CONSTRAINT pk_jtb_fasi_imp_mesi PRIMARY KEY CLUSTERED (id asc),\n" +
"FOREIGN KEY (cod_jfas) REFERENCES jtb_fasi(cod_jfas))",

View File

@@ -0,0 +1,22 @@
package it.integry.ems.migration.model;
import it.integry.ems.migration._base.BaseMigration;
import it.integry.ems.migration._base.MigrationModelInterface;
public class Migration_20240813160842 extends BaseMigration implements MigrationModelInterface {
@Override
public void up() throws Exception {
if (isHistoryDB())
return;
createSetup("PVM", "ANALISI_COSTI", "ASSOCIAZIONE_CDC", null, "Associazione centri di costo con linee di produzione, inserire i codici delle linee padri separati da |", false, null, false, false, false, false, false, "jtb_fasi", true, null);
}
@Override
public void down() throws Exception {
}
}