diff --git a/trunk/SIPRPSoft/src/siprp/update/UpdateList.java b/trunk/SIPRPSoft/src/siprp/update/UpdateList.java index cee4e815..3f1b4260 100644 --- a/trunk/SIPRPSoft/src/siprp/update/UpdateList.java +++ b/trunk/SIPRPSoft/src/siprp/update/UpdateList.java @@ -17,6 +17,7 @@ import siprp.update.updates.V10_2_To_V10_3; import siprp.update.updates.V10_3_To_V10_4; import siprp.update.updates.V10_4_To_V10_5; import siprp.update.updates.V10_5_To_V10_6; +import siprp.update.updates.V10_6_To_V10_7; import siprp.update.updates.V6_1_To_V7_0; import siprp.update.updates.V7_0_To_V7_2; import siprp.update.updates.V7_2_To_V7_4; @@ -82,7 +83,7 @@ public class UpdateList new V9_9_To_V10_0(), new V10_0_To_V10_1(), new V10_1_To_V10_2(), new V10_2_To_V10_3(), new V10_3_To_V10_4(), new V10_4_To_V10_5(), - new V10_5_To_V10_6() + new V10_5_To_V10_6(), new V10_6_To_V10_7() }; protected static Executer EXECUTER; diff --git a/trunk/SIPRPSoft/src/siprp/update/updates/V10_6_To_V10_7.java b/trunk/SIPRPSoft/src/siprp/update/updates/V10_6_To_V10_7.java new file mode 100644 index 00000000..a00998ea --- /dev/null +++ b/trunk/SIPRPSoft/src/siprp/update/updates/V10_6_To_V10_7.java @@ -0,0 +1,57 @@ +package siprp.update.updates; + +import com.evolute.utils.Singleton; +import com.evolute.utils.db.DBManager; +import com.evolute.utils.db.Executer; + +public class V10_6_To_V10_7 + implements siprp.update.Update +{ + + public V10_6_To_V10_7() + { + } + + public String []listChanges() + { + return new String[]{ + "alteracao de tamanho maximo em campos de descricao" + }; + } + + public double getStartVersion() + { + return 10.6; + } + + public double getEndVersion() + { + return 10.7; + } + + public void doUpdate() + throws Exception + { + DBManager dbm = ( DBManager ) Singleton.getInstance( Singleton.DEFAULT_DBMANAGER ); + Executer executer = dbm.getSharedExecuter(); + com.evolute.utils.sql.Update update = + new com.evolute.utils.sql.Update( + "alter table hs_risco alter column description type varchar(8192); " + + "alter table hs_relatorio_risco alter column description type varchar(8192); " + + "alter table hs_normalizacao alter column descricao type varchar(8192); " + + "alter table hs_relatorio_normalizacao alter column descricao type varchar(8192); " + + "alter table hs_legislacao alter column description type varchar(8192); " + + "alter table hs_relatorio_legislacao alter column descricao type varchar(8192); " + + "alter table hs_area alter column description type varchar(1024); " + + "alter table hs_relatorio_area alter column description type varchar(1024); " + + "alter table hs_posto alter column description type varchar(1024); " + + "alter table hs_relatorio_posto alter column description type varchar(1024); " + ); + executer.executeQuery( update ); + } + + public String toString() + { + return "v" + getStartVersion() + " para v" + getEndVersion(); + } +} diff --git a/trunk/common/src/SIPRPMap.map.xml b/trunk/common/src/SIPRPMap.map.xml index d923514f..d8837824 100644 --- a/trunk/common/src/SIPRPMap.map.xml +++ b/trunk/common/src/SIPRPMap.map.xml @@ -183,7 +183,7 @@ - + @@ -224,7 +224,7 @@ - + ORACLE @@ -252,9 +252,9 @@ - + - + ORACLE hs_medida_id_seq @@ -264,7 +264,7 @@ - + @@ -284,7 +284,7 @@ - + ORACLE @@ -329,7 +329,7 @@ - + @@ -353,7 +353,7 @@ - + @@ -365,9 +365,9 @@ - + - + ORACLE @@ -377,7 +377,7 @@ - + @@ -391,7 +391,7 @@ - + ORACLE @@ -413,7 +413,7 @@ - + @@ -428,7 +428,7 @@ - +