From 0d3a99f6bc1c0f291d242407d67239f09cf49a7c Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Mon, 5 Jan 2009 18:04:47 +0000
Subject: fixes mantis #2950
---
OpenSim/Data/NHibernate/NHibernateAssetData.cs | 2 +-
OpenSim/Data/NHibernate/NHibernateInventoryData.cs | 2 +-
OpenSim/Data/NHibernate/NHibernateManager.cs | 6 +++
OpenSim/Data/NHibernate/NHibernateRegionData.cs | 2 +-
OpenSim/Data/NHibernate/NHibernateUserData.cs | 2 +-
prebuild.xml | 43 +++++++++++++++++++++-
6 files changed, 52 insertions(+), 5 deletions(-)
diff --git a/OpenSim/Data/NHibernate/NHibernateAssetData.cs b/OpenSim/Data/NHibernate/NHibernateAssetData.cs
index e1d074f..fab39b1 100644
--- a/OpenSim/Data/NHibernate/NHibernateAssetData.cs
+++ b/OpenSim/Data/NHibernate/NHibernateAssetData.cs
@@ -45,7 +45,7 @@ namespace OpenSim.Data.NHibernate
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
- private NHibernateManager manager;
+ public NHibernateManager manager;
override public void Dispose() { }
diff --git a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs
index f7de8eb..dc98d11 100644
--- a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs
+++ b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs
@@ -43,7 +43,7 @@ namespace OpenSim.Data.NHibernate
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
- private NHibernateManager manager;
+ public NHibernateManager manager;
public void Initialise()
{
diff --git a/OpenSim/Data/NHibernate/NHibernateManager.cs b/OpenSim/Data/NHibernate/NHibernateManager.cs
index 46840ac..12d8959 100644
--- a/OpenSim/Data/NHibernate/NHibernateManager.cs
+++ b/OpenSim/Data/NHibernate/NHibernateManager.cs
@@ -151,6 +151,12 @@ namespace OpenSim.Data.NHibernate
return false;
}
+ public void DropSchema()
+ {
+ SchemaExport export = new SchemaExport(this.cfg);
+ export.Drop(true, true);
+ }
+
public ISession GetSession()
{
return session;
diff --git a/OpenSim/Data/NHibernate/NHibernateRegionData.cs b/OpenSim/Data/NHibernate/NHibernateRegionData.cs
index 0aba58c..871013b 100644
--- a/OpenSim/Data/NHibernate/NHibernateRegionData.cs
+++ b/OpenSim/Data/NHibernate/NHibernateRegionData.cs
@@ -49,7 +49,7 @@ namespace OpenSim.Data.NHibernate
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
- private NHibernateManager manager;
+ public NHibernateManager manager;
public void Initialise(string connect)
{
diff --git a/OpenSim/Data/NHibernate/NHibernateUserData.cs b/OpenSim/Data/NHibernate/NHibernateUserData.cs
index ee0d2b8..e0f6db7 100644
--- a/OpenSim/Data/NHibernate/NHibernateUserData.cs
+++ b/OpenSim/Data/NHibernate/NHibernateUserData.cs
@@ -46,7 +46,7 @@ namespace OpenSim.Data.NHibernate
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
- private NHibernateManager manager;
+ public NHibernateManager manager;
public override void Initialise()
{
diff --git a/prebuild.xml b/prebuild.xml
index cebb57c..b2e56a6 100644
--- a/prebuild.xml
+++ b/prebuild.xml
@@ -1598,7 +1598,9 @@
-
+
+
+
@@ -2540,6 +2542,45 @@
+
+
+
+ ../../../../bin/
+
+
+
+
+ ../../../../bin/
+
+
+
+ ../../../../bin/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--
cgit v1.1