diff options
author | Justin Clarke Casey | 2009-01-05 18:04:47 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-01-05 18:04:47 +0000 |
commit | 0d3a99f6bc1c0f291d242407d67239f09cf49a7c (patch) | |
tree | e1361b5f8b2492605578927c6022f22f8067383e /OpenSim/Data/NHibernate/NHibernateManager.cs | |
parent | * Simplify test code by always setting up mock 'in memory' user and inventory... (diff) | |
download | opensim-SC-0d3a99f6bc1c0f291d242407d67239f09cf49a7c.zip opensim-SC-0d3a99f6bc1c0f291d242407d67239f09cf49a7c.tar.gz opensim-SC-0d3a99f6bc1c0f291d242407d67239f09cf49a7c.tar.bz2 opensim-SC-0d3a99f6bc1c0f291d242407d67239f09cf49a7c.tar.xz |
fixes mantis #2950
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateManager.cs')
-rw-r--r-- | OpenSim/Data/NHibernate/NHibernateManager.cs | 6 |
1 files changed, 6 insertions, 0 deletions
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 | |||
151 | return false; | 151 | return false; |
152 | } | 152 | } |
153 | 153 | ||
154 | public void DropSchema() | ||
155 | { | ||
156 | SchemaExport export = new SchemaExport(this.cfg); | ||
157 | export.Drop(true, true); | ||
158 | } | ||
159 | |||
154 | public ISession GetSession() | 160 | public ISession GetSession() |
155 | { | 161 | { |
156 | return session; | 162 | return session; |