mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-04 01:53:52 +01:00
fix for sqlite
This commit is contained in:
parent
93d1ded4c2
commit
1fed7fb5af
1 changed files with 10 additions and 7 deletions
|
@ -9,6 +9,8 @@ namespace BTCPayServer.Migrations
|
||||||
public partial class invoicesorderindex : Migration
|
public partial class invoicesorderindex : Migration
|
||||||
{
|
{
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
if (!migrationBuilder.IsSqlite())
|
||||||
{
|
{
|
||||||
migrationBuilder.AlterColumn<string>(
|
migrationBuilder.AlterColumn<string>(
|
||||||
name: "OrderId",
|
name: "OrderId",
|
||||||
|
@ -16,6 +18,7 @@ namespace BTCPayServer.Migrations
|
||||||
maxLength: 100,
|
maxLength: 100,
|
||||||
nullable: true,
|
nullable: true,
|
||||||
oldClrType: typeof(string));
|
oldClrType: typeof(string));
|
||||||
|
}
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Invoices_OrderId",
|
name: "IX_Invoices_OrderId",
|
||||||
|
|
Loading…
Add table
Reference in a new issue