forked from Coded/SIPRP
git-svn-id: https://svn.coded.pt/svn/SIPRP@1107 bb69d46d-e84e-40c8-a05a-06db0d633741
parent
24a8213517
commit
77911b3ab0
@ -0,0 +1,50 @@
|
|||||||
|
package siprp.update.updates;
|
||||||
|
|
||||||
|
import siprp.higiene.gestao.importacao.Importador;
|
||||||
|
|
||||||
|
import com.evolute.utils.Singleton;
|
||||||
|
import com.evolute.utils.db.DBManager;
|
||||||
|
import com.evolute.utils.db.Executer;
|
||||||
|
|
||||||
|
public class V11_4_To_V11_5 implements siprp.update.Update
|
||||||
|
{
|
||||||
|
|
||||||
|
public V11_4_To_V11_5()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public String []listChanges()
|
||||||
|
{
|
||||||
|
return new String[]{
|
||||||
|
"Correc\u00e7\u00e3o de submiss\u00f5es"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getStartVersion()
|
||||||
|
{
|
||||||
|
return 11.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getEndVersion()
|
||||||
|
{
|
||||||
|
return 11.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
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(
|
||||||
|
"update hs_relatorio set is_submetido = '2009-09-17 15:21:35.208' where marcacao_id in (2006, 1911,2174);"
|
||||||
|
);
|
||||||
|
executer.executeQuery( update );
|
||||||
|
new Importador( executer ).importar();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
return "v" + getStartVersion() + " para v" + getEndVersion();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in new issue