changeset 5:7f0e00d17946

removal of test code
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 13 Feb 2015 15:57:39 +0100
parents 20517acfd599
children 24739359102e
files IndexPlugin/Plugin.cpp StoragePlugin/Plugin.cpp
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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<OrthancPlugins::PostgreSQLConnection> 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);
--- 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<OrthancPlugins::PostgreSQLConnection> pg(OrthancPlugins::CreateConnection(context_));
       pg->Open();
-    
+      //pg->ClearAll();   // Reset the database
+
       /* Create the storage area back-end */
       storage_ = new OrthancPlugins::PostgreSQLStorageArea(pg.release(), allowUnlock);