mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
34 lines
1021 B
C#
34 lines
1021 B
C#
using BTCPayServer.Data;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace BTCPayServer.Migrations
|
|
{
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
[Migration("20201208054211_invoicesorderindex")]
|
|
public partial class invoicesorderindex : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "OrderId",
|
|
table: "Invoices",
|
|
maxLength: 100,
|
|
nullable: true,
|
|
oldClrType: typeof(string));
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Invoices_OrderId",
|
|
table: "Invoices",
|
|
column: "OrderId");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Invoices_OrderId",
|
|
table: "Invoices");
|
|
}
|
|
}
|
|
}
|