2020-12-08 14:43:39 +09:00
|
|
|
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)
|
|
|
|
{
|
2024-04-15 19:08:25 +09:00
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
|
|
name: "OrderId",
|
|
|
|
table: "Invoices",
|
|
|
|
maxLength: 100,
|
|
|
|
nullable: true,
|
|
|
|
oldClrType: typeof(string));
|
2021-02-07 20:57:48 +01:00
|
|
|
|
2021-12-31 16:59:02 +09:00
|
|
|
migrationBuilder.CreateIndex(
|
2020-12-08 14:43:39 +09:00
|
|
|
name: "IX_Invoices_OrderId",
|
|
|
|
table: "Invoices",
|
|
|
|
column: "OrderId");
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
{
|
|
|
|
migrationBuilder.DropIndex(
|
|
|
|
name: "IX_Invoices_OrderId",
|
|
|
|
table: "Invoices");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|