From 9052c43319ab69f57b80e363d965780be625b0e2 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 2 Jul 2008 16:20:54 +0000 Subject: * Drop InvType from the assets table since it is no longer used * Migration should be automatic on sqlite and mysql * Migration is not automatic on mssql, you will need to drop the invType column manually * Migration should be fine, but as for any db change, I would recommend making sure you have backups before moving past this revision --- OpenSim/Framework/AssetBase.cs | 9 --------- OpenSim/Framework/Communications/Cache/AssetCache.cs | 2 -- OpenSim/Framework/Communications/Capabilities/Caps.cs | 1 - 3 files changed, 12 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/AssetBase.cs b/OpenSim/Framework/AssetBase.cs index 2b37daa..c3e4095 100644 --- a/OpenSim/Framework/AssetBase.cs +++ b/OpenSim/Framework/AssetBase.cs @@ -76,15 +76,6 @@ namespace OpenSim.Framework set { _type = value; } } - /// - /// PLEASE DON'T USE ME. I'm probably going away soon. - /// - public virtual sbyte InvType - { - get { return _invtype; } - set { _invtype = value; } - } - public virtual string Name { get { return _name; } diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index 95af28b..f160ce4 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs @@ -701,7 +701,6 @@ namespace OpenSim.Framework.Communications.Cache Data = aBase.Data; FullID = aBase.FullID; Type = aBase.Type; - InvType = aBase.InvType; Name = aBase.Name; Description = aBase.Description; } @@ -718,7 +717,6 @@ namespace OpenSim.Framework.Communications.Cache Data = aBase.Data; FullID = aBase.FullID; Type = aBase.Type; - InvType = aBase.InvType; Name = aBase.Name; Description = aBase.Description; } diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index 5aba086..7350d4d 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs @@ -670,7 +670,6 @@ namespace OpenSim.Framework.Communications.Capabilities asset = new AssetBase(); asset.FullID = assetID; asset.Type = assType; - asset.InvType = inType; asset.Name = assetName; asset.Data = data; m_assetCache.AddAsset(asset); -- cgit v1.1