Skip to content

Commit 1dc86ce

Browse files
authored
OCC-436: Remove SQL Server assumption from StripeMigrations (#724)
1 parent fa368cb commit 1dc86ce

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Modules/OrchardCore.Commerce.Payment.Stripe/Migrations/StripeMigrations.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
using Lombiq.HelpfulLibraries.OrchardCore.Data;
2-
using Microsoft.Data.SqlClient;
32
using Microsoft.Extensions.Logging;
43
using OrchardCore.Commerce.Payment.Stripe.Indexes;
54
using OrchardCore.Commerce.Payment.Stripe.Models;
65
using OrchardCore.ContentManagement.Metadata;
76
using OrchardCore.ContentManagement.Metadata.Settings;
87
using OrchardCore.Data.Migration;
9-
using System;
8+
using System.Data.Common;
109
using System.Threading.Tasks;
1110
using YesSql.Sql;
1211
using static OrchardCore.Commerce.Abstractions.Constants.ContentTypes;
@@ -40,7 +39,7 @@ await _contentDefinitionManager
4039
{
4140
await SchemaBuilder.DropMapIndexTableAsync(typeof(OrderPaymentIndex));
4241
}
43-
catch (Exception exception) when (exception is SqlException)
42+
catch (DbException exception)
4443
{
4544
// This is fine, it just means that the table didn't exist.
4645
_logger.LogInformation(

0 commit comments

Comments
 (0)