From 6dea8f34350d03b94ba6f52d8634598cc2de7503 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 18 Jun 2008 21:14:19 +0000 Subject: clean up the nhibernate definitions to work with mysql integrate migration support into nhibernate --- OpenSim/Data/NHibernate/NHibernateAssetData.cs | 27 -------------------------- 1 file changed, 27 deletions(-) (limited to 'OpenSim/Data/NHibernate/NHibernateAssetData.cs') diff --git a/OpenSim/Data/NHibernate/NHibernateAssetData.cs b/OpenSim/Data/NHibernate/NHibernateAssetData.cs index bb5a3f3..5c691a7 100644 --- a/OpenSim/Data/NHibernate/NHibernateAssetData.cs +++ b/OpenSim/Data/NHibernate/NHibernateAssetData.cs @@ -93,33 +93,6 @@ namespace OpenSim.Data.NHibernate Assembly assem = GetType().Assembly; Migration m = new Migration((System.Data.Common.DbConnection)factory.ConnectionProvider.GetConnection(), assem, dialect, "AssetStore"); m.Update(); - - } - - private void InitDB() - { - string regex = @"no such table: Assets"; - Regex RE = new Regex(regex, RegexOptions.Multiline); - try - { - using (ISession session = factory.OpenSession()) - { - session.Load(typeof(AssetBase), LLUUID.Zero); - } - } - catch (ObjectNotFoundException) - { - // yes, we know it's not there, but that's ok - } - catch (ADOException e) - { - Match m = RE.Match(e.ToString()); - if (m.Success) - { - // We don't have this table, so create it. - new SchemaExport(cfg).Create(true, true); - } - } } override public AssetBase FetchAsset(LLUUID uuid) -- cgit v1.1