mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
25 lines
866 B
C#
25 lines
866 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
namespace BTCPayServer.Migrations
|
|
{
|
|
public static class MigrationsExtensions
|
|
{
|
|
public static bool SupportDropColumn(this Microsoft.EntityFrameworkCore.Migrations.Migration migration, string activeProvider)
|
|
{
|
|
return activeProvider != "Microsoft.EntityFrameworkCore.Sqlite";
|
|
}
|
|
|
|
public static bool SupportDropForeignKey(this Microsoft.EntityFrameworkCore.Migrations.Migration migration, string activeProvider)
|
|
{
|
|
return activeProvider != "Microsoft.EntityFrameworkCore.Sqlite";
|
|
}
|
|
public static bool SupportDropForeignKey(this DatabaseFacade facade)
|
|
{
|
|
return facade.ProviderName != "Microsoft.EntityFrameworkCore.Sqlite";
|
|
}
|
|
}
|
|
}
|