# HG changeset patch # User Sebastien Jodogne # Date 1423839459 -3600 # Node ID 7f0e00d17946c919f74dabb7ece449d9590300d1 # Parent 20517acfd5992afeb6d52a135a16edcc599ffc3c removal of test code diff -r 20517acfd599 -r 7f0e00d17946 IndexPlugin/Plugin.cpp --- a/IndexPlugin/Plugin.cpp Fri Feb 13 15:53:29 2015 +0100 +++ b/IndexPlugin/Plugin.cpp Fri Feb 13 15:57:39 2015 +0100 @@ -58,7 +58,7 @@ /* Create the connection to PostgreSQL */ std::auto_ptr pg(OrthancPlugins::CreateConnection(context_)); pg->Open(); - pg->ClearAll(); + //pg->ClearAll(); // Reset the database /* Create the database back-end */ backend_ = new OrthancPlugins::PostgreSQLWrapper(pg.release(), allowUnlock); diff -r 20517acfd599 -r 7f0e00d17946 StoragePlugin/Plugin.cpp --- a/StoragePlugin/Plugin.cpp Fri Feb 13 15:53:29 2015 +0100 +++ b/StoragePlugin/Plugin.cpp Fri Feb 13 15:57:39 2015 +0100 @@ -113,7 +113,8 @@ /* Create the connection to PostgreSQL */ std::auto_ptr pg(OrthancPlugins::CreateConnection(context_)); pg->Open(); - + //pg->ClearAll(); // Reset the database + /* Create the storage area back-end */ storage_ = new OrthancPlugins::PostgreSQLStorageArea(pg.release(), allowUnlock);