Commit ddda876c authored by Daniel Eggert's avatar Daniel Eggert
Browse files

Merge branch 'dev' of gitext.gfz-potsdam.de:geomultisens/gms-aux into dev

parents 352fe8f7 88c23d5c
......@@ -59,7 +59,6 @@ public class DbUtils {
if (cli.hasOption(OP_TRANSFER_CONFIG)) {
transferConfig();
} else if (cli.hasOption(OP_SCENE_STATE)) {
System.err.println("not yet implemented");
transferSceneState();
} else {
printHelp(options);
......@@ -105,9 +104,10 @@ public class DbUtils {
Connection dstDb = getDstDb();
// reset proc_level to metadata for all scenes in dst db
dstDb.prepareStatement("update scenes set proc_level='METADATA'::proc_level;").executeUpdate();
PreparedStatement updateScene = dstDb.prepareStatement("update scenes set proc_level='DOWNLOADED'::proc_level, filename=? where entityid=? and datasetid=?;");
dstDb.prepareStatement("update scenes set proc_level='METADATA'::proc_level where id in (select id from scenes where proc_level!='METADATA'::proc_level);").executeUpdate();
dstDb.commit();
PreparedStatement updateScene = dstDb.prepareStatement("update scenes set proc_level='DOWNLOADED'::proc_level, filename=? where id in (select id from scenes where entityid=? and datasetid=? limit 1);");
PreparedStatement updateSentinelScene = dstDb.prepareStatement("update scenes set proc_level='DOWNLOADED'::proc_level, entityid=? where filename=? and datasetid=?;");
// get list of downloaded scenes from src database
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment