# NHibernate Persistence Upgrade Version 8 to 9 ## Gateway deduplication storage Starting with NServiceBus.NHibernate version 8.3.0, the built-in gateway API is obsolete and using it will produce the following message: > NHibernate gateway persistence is deprecated. Use the new NServiceBus.Gateway.Sql dedicated package. Will be treated as an error from version 9.0.0. Will be removed in version 10.0.0. To migrate to the new gateway API: - Add a reference to the [NServiceBus.Gateway.Sql](https://www.nuget.org/packages/NServiceBus.Gateway.Sql) NuGet package and configure the gateway feature following the instructions available in the [SQL Gateway Storage documentation](/nservicebus/gateway/sql/index.md). - Remove any configuration that uses the legacy gateway API. ## Timeout storage The [timeout manager is removed from core](/nservicebus/upgrades/7to8/index.md#timeout-manager-removed) which makes timeout storage obsolete. - Any configuration APIs can safely be removed. - Database tables must be manually removed from storage. > [!NOTE] > There is no automatic migration of timeout data. See [Timeout manager removed - Data migration](/nservicebus/upgrades/7to8/index.md#timeout-manager-removed-data-migration).