File tree Expand file tree Collapse file tree
src/Modules/OrchardCore.Commerce.Payment.Stripe/Migrations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using Lombiq . HelpfulLibraries . OrchardCore . Data ;
2- using Microsoft . Data . SqlClient ;
32using Microsoft . Extensions . Logging ;
43using OrchardCore . Commerce . Payment . Stripe . Indexes ;
54using OrchardCore . Commerce . Payment . Stripe . Models ;
65using OrchardCore . ContentManagement . Metadata ;
76using OrchardCore . ContentManagement . Metadata . Settings ;
87using OrchardCore . Data . Migration ;
9- using System ;
8+ using System . Data . Common ;
109using System . Threading . Tasks ;
1110using YesSql . Sql ;
1211using 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 (
You can’t perform that action at this time.
0 commit comments